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/2008-March/077948.html below:

[Python-Dev] The Breaking of distutils and PyPI for Python 3000?

[Python-Dev] The Breaking of distutils and PyPI for Python 3000? [Python-Dev] The Breaking of distutils and PyPI for Python 3000?Bob Kline bkline at rksystems.com
Thu Mar 20 21:50:22 CET 2008
Martin v. Löwis wrote:
>> Anything having to do with the str->bytes/unicode->str move is so far
>> off-limits to 2to3.
>>     
>
> Sure - but does that mean you need to separate code bases?
>
> Why does this move prevent people from running the same
> code in 2.x and 3.x? In 2.x, they should use Unicode objects
> for text and regular strings for binary data, and such code
> will run fine after converted by 2to3.
>   

Not if it includes code that looks like this:

    if type(response) in (str, unicode): .....

and it's really true that "[a]nything having to do with the 
str->bytes/unicode->str move is so far off-limits" to the upgrade tool.

-- 
Bob Kline
http://www.rksystems.com
mailto:bkline at rksystems.com

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