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


Groups > comp.lang.python > #93849

Improve usage of Python 3

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <bugshideout@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.144
X-Spam-Level *
X-Spam-Evidence '*H*': 0.74; '*S*': 0.03; 'anyway.': 0.04; 'subject:Python': 0.05; 'reference:': 0.09; 'python': 0.10; 'statement.': 0.16; 'subject:usage': 0.16; 'changes': 0.20; 'accepted.': 0.20; 'import': 0.24; 'header:User-Agent:1': 0.26; 'solution,': 0.29; 'url:activestate': 0.29; 'print': 0.30; 'probably': 0.31; 'message-id:@gmail.com': 0.34; 'url:code': 0.34; 'received:google.com': 0.35; 'question,': 0.35; 'something': 0.35; 'but': 0.36; 'project': 0.36; 'there': 0.36; 'to:addr:python- list': 0.36; 'thanks': 0.37; 'anything': 0.38; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'url:lists': 0.66; 'here': 0.66; 'decided': 0.66; 'about,': 0.84; 'dumb': 0.84; 'from:name:marcos': 0.84; 'url:item': 0.84; 'url:python-dev': 0.84; 'many,': 0.93; 'refuse': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=bt9auHAz7JVMCHrQHE3oARW7PMyzzFrOqizGq8t1y3g=; b=WaWajfJ5VFpyHWPpg3dsXML+uL42g38lm+KyWJTRW9IgCSdW+Wpiq+cKzOjlE2/mk5 R+zvjHUgUp/aF5AehFDFWlEDOxs/8Y/ohkr0K7T3ioWz4R7QKzIGj8w+N/mdeYW/HJ9z QkjvTY1Pj1pjjJRTlTkMlspcmF4Tk4gK6C4HLcDHdouh5un2iPIoFXbLFdXJEUMZaCMJ lIsBzv7Mz7lzJ2S9QhEP/dYK54+DfSZq6dnqRw7hl6B62krAlxDZyqfGaDH7CdSpl/PL Du08d7wDZNNqpe28CQGCUnv8hMkJlyuNod0HIGyHWwk/SqiaM7TAVGpqDPtS6imji1Q9 ZQAA==
X-Received by 10.194.187.51 with SMTP id fp19mr74923352wjc.67.1436891336492; Tue, 14 Jul 2015 09:28:56 -0700 (PDT)
To python-list@python.org
From Marcos <bugshideout@gmail.com>
Subject Improve usage of Python 3
Date Tue, 14 Jul 2015 18:28:57 +0200
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1
MIME-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Mailman-Approved-At Wed, 15 Jul 2015 09:26:44 +0200
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.524.1436945205.3674.python-list@python.org> (permalink)
Lines 41
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1436945205 news.xs4all.nl 2831 [2001:888:2000:d::a6]:36992
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:93849

Show key headers only | 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