[Python-3000] [Python-Dev] Byte literals (was Re: [Python-checkins] Changing string constants to byte arrays ( r55119 (original) (raw)
[Python-3000] [Python-Dev] Byte literals (was Re: [Python-checkins] Changing string constants to byte arrays ( r55119 - in python/branches/py3k-struni/Lib: codecs.py test/test_codecs.py ))
Guido van Rossum guido at python.org
Tue May 8 17:25:27 CEST 2007
- Previous message: [Python-3000] [Python-Dev] Byte literals (was Re: [Python-checkins] Changing string constants to byte arrays ( r55119 - in python/branches/py3k-struni/Lib: codecs.py test/test_codecs.py ))
- Next message: [Python-3000] [Python-Dev] Byte literals (was Re: [Python-checkins] Changing string constants to byte arrays ( r55119 - in python/branches/py3k-struni/Lib: codecs.py test/test_codecs.py ))
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 5/8/07, Jim Jewett <jimjjewett at gmail.com> wrote:
I will be unhappy if 2to3 produces code that I can't run in (at least) 2.6, because then I would need to convert more than once.
This is the first time I hear of this requirement. It has not so far been a design goal for the conversions in 2to3. The workflow that I have in mind (and that others have agreed to be workable) is more like this:
- develop working code under 2.6
- make sure it is warning-free with the special -Wpy3k option
- use 2to3 to convert it to 3.0 compatible syntax in a temporary directory
- run your unit test suite with 3.0
- for any defects you find, EDIT THE 2.6 SOURCE AND GO BACK TO STEP 2
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-3000] [Python-Dev] Byte literals (was Re: [Python-checkins] Changing string constants to byte arrays ( r55119 - in python/branches/py3k-struni/Lib: codecs.py test/test_codecs.py ))
- Next message: [Python-3000] [Python-Dev] Byte literals (was Re: [Python-checkins] Changing string constants to byte arrays ( r55119 - in python/branches/py3k-struni/Lib: codecs.py test/test_codecs.py ))
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]