A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-July/121116.html below:

[Python-Dev] 2to3 porting HOWTO: setup.py question

[Python-Dev] 2to3 porting HOWTO: setup.py question [Python-Dev] 2to3 porting HOWTO: setup.py questionMichael Foord fuzzyman at voidspace.org.uk
Tue Jul 24 12:07:42 CEST 2012
On 24 Jul 2012, at 10:30, Terry Reedy wrote:

> On 7/24/2012 12:44 AM, anatoly techtonik wrote:
> 
>> Python 3 check explicitly tells the reader that 2to3 should only be
>> used in Python 3. Otherwise everybody need to guess when this *_2to3
>> tools are triggered. As for me, I see no technical limitations why
>> *_2to3 can not be run by Python 2 (PyPy, RPython or whatever). Maybe I
>> don't have Python3, but want to build my package for Python 3. In
>> ideal world it is possible.
> 
> This is not an ideal world and 2to3 is not good enough to convert files without further intervention and testing.


It is if you design your code *to be converted* by 2to3 and do regular testing of the result.

Michael

> 
> -- 
> Terry Jan Reedy
> 
> 
> 
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk
> 


--
http://www.voidspace.org.uk/


May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing 
http://www.sqlite.org/different.html





More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4