Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Thomas Heller Newsgroups: comp.lang.python Subject: Re: 2to6 ? Date: Mon, 02 Jul 2012 17:02:32 +0200 Lines: 19 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net AeyyxlIiCLHHA60UKjsaXQThtpnK0m/YFksXRt/evBpw6C38zcYzh90+xdHOwGDmk= Cancel-Lock: sha1:BndJJc/8jES7WSRRdrcZlSTMdkQ= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: Xref: csiph.com comp.lang.python:24774 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