| Store | Cart

Re: [Python-Dev] Continuing 2.x

From: Barry Warsaw <bar...@python.org>
Fri, 29 Oct 2010 15:56:03 -0400
That's a much better idea!

Sent from my digital lollipop.

On Oct 29, 2010, at 3:31 PM, Ian Bicking <i...@colorstudy.com> wrote:

> On Fri, Oct 29, 2010 at 12:21 PM, Barry Warsaw <bar...@python.org> wrote:> On Oct 29, 2010, at 12:43 PM, Casey Duncan wrote:> > >I like Python 3, I am using it for my latest projects, but I am also keeping> >Python 2 compatibility. This incurs some overhead, and basically means I am> >still really only using Python 2 features. So in some respects, my Python 3.x> >support is only tacit, it works as well as for Python 2, but it's not taking> >advantage of Python 3 really. I haven't run into a situation yet where I> >really want to or have to use Python 3 exclusive features, but then again I'm> >not really learning to use Python 3 either, short of the new C api.> > One thing that *might* be interesting to explore for Python 3.3 would be> something like `python3 --1` or some such switch that would help Python 2 code> run more easily in Python 3.  This might be a hook to 2to3 or other internal> changes that help some of the trickier bits of writing cross-compatible code.> > More useful IMHO would be things like "from __past__ import print_statement", still requiring some annotation of code to make it run, but less invasive than translating code itself.  There's still major things you can't handle like that, but if something is syntactically acceptable in both Python 2 and 3 then it's a lot easier to apply simple conditionals around semantics.  This would remove the need, for example, for people to use sys.exc_info() to avoid using "except Exception as e".> > -- > Ian Bicking  |  http://blog.ianbicking.org

_______________________________________________
Python-Dev mailing list
Pyth...@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev-ml%40activestate.com

Recent Messages in this Thread
Kristján Valur Jónsson Oct 28, 2010 02:22 am
Brian Curtin Oct 28, 2010 02:44 am
James Y Knight Oct 28, 2010 03:12 am
Victor Stinner Oct 28, 2010 09:38 am
Daniel Stutzbach Oct 28, 2010 03:44 am
Kristján Valur Jónsson Oct 28, 2010 04:00 am
Benjamin Peterson Oct 28, 2010 04:05 am
Antoine Pitrou Oct 28, 2010 10:55 am
Daniel Stutzbach Oct 28, 2010 04:13 am
Georg Brandl Oct 28, 2010 06:48 am
Dirkjan Ochtman Oct 28, 2010 07:32 am
geremy condra Oct 28, 2010 05:33 pm
Stephen J. Turnbull Oct 28, 2010 05:30 am
Simon Cross Oct 28, 2010 08:26 am
"Martin v. Löwis" Oct 28, 2010 01:03 pm
Barry Warsaw Oct 28, 2010 04:04 pm
exar...@twistedmatrix.com Oct 28, 2010 04:17 pm
Barry Warsaw Oct 28, 2010 04:31 pm
Stephen J. Turnbull Oct 28, 2010 05:43 pm
Ian Bicking Oct 28, 2010 05:25 pm
Antoine Pitrou Oct 28, 2010 05:50 pm
"Martin v. Löwis" Oct 28, 2010 06:55 pm
Tres Seaver Oct 28, 2010 05:47 pm
Nick Coghlan Oct 29, 2010 01:46 am
Kristján Valur Jónsson Oct 29, 2010 02:10 am
Brett Cannon Oct 29, 2010 02:51 am
Stephen J. Turnbull Oct 29, 2010 04:59 am
Casey Duncan Oct 29, 2010 06:43 pm
Barry Warsaw Oct 29, 2010 07:21 pm
Ian Bicking Oct 29, 2010 07:31 pm
Barry Warsaw Oct 29, 2010 07:56 pm
Giampaolo Rodolŕ Oct 29, 2010 07:56 pm
M.-A. Lemburg Oct 29, 2010 09:42 pm
Stephen J. Turnbull Oct 30, 2010 11:21 am
Glyph Lefkowitz Oct 29, 2010 06:55 am
Antoine Pitrou Oct 29, 2010 07:11 am
David Malcolm Oct 29, 2010 05:46 pm
"Martin v. Löwis" Oct 29, 2010 07:22 am
R. David Murray Oct 29, 2010 02:23 pm
geremy condra Oct 29, 2010 06:12 pm
geremy condra Oct 29, 2010 06:24 pm
Toshio Kuratomi Oct 29, 2010 06:41 pm
Terry Reedy Oct 29, 2010 07:55 pm
M.-A. Lemburg Oct 29, 2010 01:42 pm
Benjamin Peterson Oct 29, 2010 02:05 pm
M.-A. Lemburg Oct 29, 2010 02:13 pm
Benjamin Peterson Oct 29, 2010 02:21 pm
Tres Seaver Oct 29, 2010 04:22 pm
"Martin v. Löwis" Oct 29, 2010 04:57 pm
"Martin v. Löwis" Oct 29, 2010 02:12 pm
M.-A. Lemburg Oct 29, 2010 02:15 pm
Neil Schemenauer Oct 30, 2010 10:32 pm
Terry Reedy Oct 31, 2010 12:41 am
Nick Coghlan Oct 31, 2010 08:11 am
Kristján Valur Jónsson Nov 01, 2010 01:34 pm
Brett Cannon Nov 01, 2010 04:50 pm
Terry Reedy Oct 29, 2010 07:38 pm
Barry Warsaw Oct 29, 2010 07:54 pm
Antoine Pitrou Oct 29, 2010 08:06 pm
Barry Warsaw Oct 29, 2010 08:32 pm
Benjamin Peterson Oct 29, 2010 09:23 pm
Barry Warsaw Oct 31, 2010 04:25 pm
"Martin v. Löwis" Oct 29, 2010 11:12 pm
exar...@twistedmatrix.com Oct 29, 2010 04:41 pm
Antoine Pitrou Oct 29, 2010 04:58 pm
Steven DAprano Oct 30, 2010 01:04 am
Antoine Pitrou Oct 29, 2010 06:34 am
Nick Coghlan Oct 28, 2010 01:33 pm
Tres Seaver Oct 28, 2010 05:47 pm
Bill Janssen Oct 28, 2010 04:34 pm
Vinay Sajip Oct 29, 2010 07:46 am
Vinay Sajip Oct 29, 2010 11:03 am
Lennart Regebro Nov 08, 2010 11:08 pm
James Y Knight Nov 09, 2010 11:33 pm
Stephen J. Turnbull Nov 10, 2010 04:20 am
Lennart Regebro Nov 08, 2010 09:42 am
James Y Knight Nov 08, 2010 03:34 pm
Tres Seaver Nov 08, 2010 04:15 pm
Messages in this thread