[Python-ideas] A suggestion for Python 3 vs Python 2
Mark Lawrence
breamoreboy at yahoo.co.uk
Wed Nov 13 21:12:33 CET 2013
On 13/11/2013 18:58, anatoly techtonik wrote:
> On Wed, Nov 13, 2013 at 6:12 AM, Stephen J. Turnbull <stephen at xemacs.org> wrote:
>> anatoly techtonik writes:
>>
>> > the User eXperience - don't you think that fast-typing "print var" is more
>> > convenient than "print(var)"?
>>
>> Sure, but I don't type either: I typically type "pr<TAB>v<CLOVERLEAF+/>".
>
> I presume this is some kind of IDE you're running. I can't install and use
> IDEs in every shell / os / embed system / translated language where I have
> to debug my Python code.
>
>> Why complain about Python syntax when upgrading development tools
>> could gives the same improvements without complicating Python?
>
> This wisdom is absent from Python install instruction, so until it is there,
> we may discuss alternatives.
>
>
> So, what's wrong with supporting both:
> 1. print xxx - as a statement (which maps to function call)
> 2. print(xxx) - as an expression (which is a function call)
>
> ?
>
Nothing. All that's needed is for somebody to write and champion a PEP,
write the code, unit tests and documentation and away we go. Are you
volunteering?
--
Python is the second best programming language in the world.
But the best has yet to be invented. Christian Tismer
Mark Lawrence
More information about the Python-ideas
mailing list