Liste des Groupes | Revenir à cu shell |
On Fri, 23 Aug 2024 09:19:06 +0200, David Brown wrote:That is what I was thinking, but I was not very clear or accurate.
On 23/08/2024 02:19, Lawrence D'Oliveiro wrote:I understood you to mean that different mixtures of tabs and spaces would
>On Thu, 22 Aug 2024 12:47:16 +0200, David Brown wrote:>
>But it is quite happy with
mixtures of tabs and spaces as long as the result after tab-to-space
conversion is consistent with Python syntax.
Mixtures of tabs and spaces are accepted without complaint.
work, so long as they were equivalent to the same indentation under the 8-
spaces = 1 tab rule that you cited.
In fact there is no such equivalence rule. Tabs are tabs, and spaces areThere /was/ such an equivalence rule in Python 2 - but it has been more restrictive in Python 3. I was not aware of the extent of the difference until recently.
spaces, and never the twain shall be interconvertible.
That's one thing - arguably quite a bit thing, but only one of many differences.(The incompatibilities between Python 2 and Python 3 are another pain inThe fundamental problem was that Unicode was a mess in Python 2 that
Python.
needed to be cleaned up. Since they had no choice but to break backward
compatibility in that regard, they figured they would fix a few other
things while they were at it.
Les messages affichés proviennent d'usenet.