[issue10375] 2to3 print(single argument)

Hallvard B Furuseth report at bugs.python.org
Tue Nov 9 15:12:22 CET 2010


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

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))
  print(very + long
        + single + argument)

My internal bug detector zooms in on ((foo)) when I read Python code -
I'm seeing code where something was apparently left out, maybe an inner
comma to make it a tuple.

[Copied from Issue10070.]

----------
components: 2to3 (2.x to 3.0 conversion tool)
messages: 120866
nosy: hfuru
priority: normal
severity: normal
status: open
title: 2to3 print(single argument)
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2

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


More information about the Python-bugs-list mailing list