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


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

2to6 ?

Started byThomas Heller <theller@ctypes.org>
First post2012-06-27 16:36 +0200
Last post2012-07-02 15:24 -0400
Articles 4 — 2 participants

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


Contents

  2to6 ? Thomas Heller <theller@ctypes.org> - 2012-06-27 16:36 +0200
    Re: 2to6 ? Terry Reedy <tjreedy@udel.edu> - 2012-06-27 14:06 -0400
      Re: 2to6 ? Thomas Heller <theller@ctypes.org> - 2012-07-02 17:02 +0200
        Re: 2to6 ? Terry Reedy <tjreedy@udel.edu> - 2012-07-02 15:24 -0400

#24518 — 2to6 ?

FromThomas Heller <theller@ctypes.org>
Date2012-06-27 16:36 +0200
Subject2to6 ?
Message-ID<a50k2nFh5gU1@mid.individual.net>
Is there a tool, similar to 2to3, which converts python2 code
to code using six.py, so that it runs unchanged with python2
*and* python 3?

Thomas

[toc] | [next] | [standalone]


#24529

FromTerry Reedy <tjreedy@udel.edu>
Date2012-06-27 14:06 -0400
Message-ID<mailman.1556.1340820431.4697.python-list@python.org>
In reply to#24518
On 6/27/2012 10:36 AM, Thomas Heller wrote:
> Is there a tool, similar to 2to3, which converts python2 code
> to code using six.py, so that it runs unchanged with python2
> *and* python 3?

Others have expressed a similar wish, but I do not know that anyone has 
actually revised 2to3 to make a 2to6, or how feasible that would be.

-- 
Terry Jan Reedy


[toc] | [prev] | [next] | [standalone]


#24774

FromThomas Heller <theller@ctypes.org>
Date2012-07-02 17:02 +0200
Message-ID<a5drg8Fu12U1@mid.individual.net>
In reply to#24529
Am 27.06.2012 20:06, schrieb Terry Reedy:
> On 6/27/2012 10:36 AM, Thomas Heller wrote:
>> Is there a tool, similar to 2to3, which converts python2 code
>> to code using six.py, so that it runs unchanged with python2
>> *and* python 3?
>
> Others have expressed a similar wish, but I do not know that anyone has
> actually revised 2to3 to make a 2to6, or how feasible that would be.
>

Has nobody heard of, or even tried, modernize?

http://pypi.python.org/pypi/modernize


Thomas


[toc] | [prev] | [next] | [standalone]


#24787

FromTerry Reedy <tjreedy@udel.edu>
Date2012-07-02 15:24 -0400
Message-ID<mailman.1719.1341257123.4697.python-list@python.org>
In reply to#24774
On 7/2/2012 11:02 AM, Thomas Heller wrote:
> Am 27.06.2012 20:06, schrieb Terry Reedy:
>> On 6/27/2012 10:36 AM, Thomas Heller wrote:
>>> Is there a tool, similar to 2to3, which converts python2 code
>>> to code using six.py, so that it runs unchanged with python2
>>> *and* python 3?
>>
>> Others have expressed a similar wish, but I do not know that anyone has
>> actually revised 2to3 to make a 2to6, or how feasible that would be.
>>
>
> Has nobody heard of, or even tried, modernize?
>
> http://pypi.python.org/pypi/modernize

I had not, obviously. I'm glad you found it and hope it works for you.


-- 
Terry Jan Reedy


[toc] | [prev] | [standalone]


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


csiph-web