evaluation question

Rob Cliffe rob.cliffe at btinternet.com
Fri Feb 3 10:44:16 EST 2023



On 02/02/2023 09:31, Muttley at dastardlyhq.com wrote:
> On Wed, 1 Feb 2023 18:28:04 +0100
> "Peter J. Holzer" <hjp-python at hjp.at> wrote:
>> --b2nljkb3mdefsdhx
>> Content-Type: text/plain; charset=us-ascii
>> Content-Disposition: inline
>> Content-Transfer-Encoding: quoted-printable
>>
>> On 2023-02-01 09:00:39 -0000, Muttley at dastardlyhq.com wrote:
>>> Its not evolution, its revolution. Evolution retains old functionality.
>> Tell a penguin that it can fly :-)
> Yeah ok :) But the ancestors of penguins didn't wake up one morning, flap
> their wings and fall out the tree, it happened gradually. Python2 syntax
> could have been retained for X versions of 3 just as C++ keeps old stuff
> until its eventually deprecated them removed.
Yeah?  So what would this do:
     print ()
In Python 2 this prints an empty tuple.
In Python 3 this is a call to the print function with no arguments, 
which prints a blank line.
You can't have it both ways.
In any case, supporting two different syntaxes simultaneously would be 
messy and difficult to maintain.
Better a clean break, with Python 2 support continuing for a long time 
(as it was).
Best wishes
Rob Cliffe


More information about the Python-list mailing list