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


Groups > comp.lang.python > #93849

Improve usage of Python 3

From Marcos <bugshideout@gmail.com>
Subject Improve usage of Python 3
Date 2015-07-14 18:28 +0200
Newsgroups comp.lang.python
Message-ID <mailman.524.1436945205.3674.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web