[Python-Dev] Continuing 2.x

M.-A. Lemburg mal at egenix.com
Fri Oct 29 23:42:41 CEST 2010


Barry Warsaw 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.
> 
> I don't know what those things enabled by --1 would be.  Some syntactic things
> might be fairly easy though largely inconsequential (e.g. print() -> print).
> It might be that large changes like bytes/string dwarfs syntactic sugar.  I
> had a brief conversation with Michael Foord yesterday and he's writing code
> that works in 2.4 through 3.2, so for *some* code bases, it's tricky and ugly,
> but possible.
> 
> IMHO, those are the kinds of directions we should be thinking about, to help
> existing code more easily make the jump to Python 3.

+1

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Oct 29 2010)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try our new mxODBC.Connect Python Database Interface for free ! ::::


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               http://www.egenix.com/company/contact/


More information about the Python-Dev mailing list