Deutsch English Français Italiano |
<va9s8b$t4c7$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.nobody.at!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: David Brown <david.brown@hesbynett.no> Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc Subject: Re: Python (was Re: I did not inhale) Date: Fri, 23 Aug 2024 13:36:43 +0200 Organization: A noiseless patient Spider Lines: 50 Message-ID: <va9s8b$t4c7$1@dont-email.me> References: <uu54la$3su5b$6@dont-email.me> <uvbfii$3mom0$1@news.xmission.com> <20240412094809.811@kylheku.com> <87il0mm94y.fsf@tudado.org> <way-20240413091747@ram.dialup.fu-berlin.de> <87il0lldf8.fsf@tudado.org> <choices-20240413123957@ram.dialup.fu-berlin.de> <v9lm2k$12qhv$1@dont-email.me> <v9m4gd$14scu$1@dont-email.me> <20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me> <v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me> <va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me> <va44rh$3p1l6$1@dont-email.me> <va45eq$3pkt9$1@dont-email.me> <va4aut$3q4g0$1@dont-email.me> <va4fbr$3qvij$1@dont-email.me> <va5108$3tmmd$1@dont-email.me> <va51ok$3tqr9$1@dont-email.me> <va5ec2$3vluh$1@dont-email.me> <va6q4g$c1a7$1@dont-email.me> <va6rpa$c6bg$1@dont-email.me> <va6uqg$clga$1@dont-email.me> <va74vk$dfb0$1@dont-email.me> <va8kim$ka4q$2@dont-email.me> <va9d5a$qobt$1@dont-email.me> <va9h9k$rlrn$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 23 Aug 2024 13:36:43 +0200 (CEST) Injection-Info: dont-email.me; posting-host="edca87e576d404b60d06ae6a1baeda30"; logging-data="954759"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Hv9wSS03ovJXnKYY32Dpdso49VpmGF3Y=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Cancel-Lock: sha1:1vntOqzeVHhh1Tj5NUZjBy6Bx7Y= Content-Language: en-GB In-Reply-To: <va9h9k$rlrn$1@dont-email.me> Bytes: 4049 On 23/08/2024 10:29, Lawrence D'Oliveiro wrote: > On Fri, 23 Aug 2024 09:19:06 +0200, David Brown wrote: > >> On 23/08/2024 02:19, Lawrence D'Oliveiro wrote: >> >>> 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. > > I understood you to mean that different mixtures of tabs and spaces would > work, so long as they were equivalent to the same indentation under the 8- > spaces = 1 tab rule that you cited. That is what I was thinking, but I was not very clear or accurate. > > In fact there is no such equivalence rule. Tabs are tabs, and spaces are > spaces, and never the twain shall be interconvertible. There /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. > >> (The incompatibilities between Python 2 and Python 3 are another pain in >> Python. > > The fundamental problem was that Unicode was a mess in Python 2 that > 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. That's one thing - arguably quite a bit thing, but only one of many differences. Basically, there were lots of aspects of Python that they felt could be improved or done in better ways, but would break compatibility. Python has always had the philosophy that major version numbers did not need maximal compatibility - similar things happened between Python 1 and Python 2. The difference is that Python was massively more popular by the 2 to 3 change than it was at the 1 to 2 change, and there is still vast amounts of Python 2 code and libraries that are not available or easily convertible to Python 3.