Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #93849 > unrolled thread

Improve usage of Python 3

Started byMarcos <bugshideout@gmail.com>
First post2015-07-14 18:28 +0200
Last post2015-07-14 18:28 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Improve usage of Python 3 Marcos <bugshideout@gmail.com> - 2015-07-14 18:28 +0200

#93849 — Improve usage of Python 3

FromMarcos <bugshideout@gmail.com>
Date2015-07-14 18:28 +0200
SubjectImprove usage of Python 3
Message-ID<mailman.524.1436945205.3674.python-list@python.org>
Hi!

Just like many, I want the projects in which I work on to move to Python 3.

And incredibly, there are a few users on the same project who refuse to 
use python 3 simply because of the print statement.

That has probably already been discussed, but since I actually couldn't 
find anything relevant about, I decided to ask here anyway.

What are the changes of something like

from __past__ import print_statement

or to make both

print

and

print()

work on Python 3 ?

Sorry for the dumb question, but although it's not a very pure solution, 
it might be one that would be very well accepted.


Some reference:
http://stackoverflow.com/questions/20250130/from-past-import-print-statement
https://news.ycombinator.com/item?id=6990481
https://news.ycombinator.com/item?id=6987309
https://news.ycombinator.com/item?id=6985792
http://code.activestate.com/lists/python-dev/101111/
http://code.activestate.com/lists/python-dev/101115/



Thanks

Marcos

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web