[New-bugs-announce] [issue11499] reassignment to bool is left in the file
Jason R. Coombs
report at bugs.python.org
Mon Mar 14 17:00:35 CET 2011
New submission from Jason R. Coombs <jaraco at jaraco.com>:
Consider the Python file
#!python
True = 1
False = 0
The 2to3 script returns an empty diff for this file.
These lines (especially when the values are canonical), are clearly for backward compatibility to early Python 2.x editions (2.2.1 and earlier).
These statements cause an error in Python 3. It would be nice if 2to3 could either remove these lines or log a warning.
----------
components: 2to3 (2.x to 3.0 conversion tool)
messages: 130838
nosy: jaraco
priority: normal
severity: normal
status: open
title: reassignment to bool is left in the file
type: behavior
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11499>
_______________________________________
More information about the New-bugs-announce
mailing list