[New-bugs-announce] [issue10070] 2to3 wishes for already-2to3'ed files

Hallvard B Furuseth report at bugs.python.org
Tue Oct 12 13:24:21 CEST 2010


New submission from Hallvard B Furuseth <h.b.furuseth at usit.uio.no>:

It would be nice with some official way to tell 2to3, "Leave
this code chunk alone.  This is 2.* code, that is 3.* code":

try:                      # Python 2.6
    from urlparse         import urlparse, urlunparse
except ImportError:       # Python 3
    from urllib.parse     import urlparse, urlunparse

Could 2to3 without -p notice more cases of print(single argument),
to avoid slapping another () around them?  For example:

print(2*3)
print(", ".join(dir))

----------
components: 2to3 (2.x to 3.0 conversion tool)
messages: 118411
nosy: hfuru
priority: normal
severity: normal
status: open
title: 2to3 wishes for already-2to3'ed files
type: feature request
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10070>
_______________________________________


More information about the New-bugs-announce mailing list