[issue32915] Running Python 2 with -3 flag doesn't complain about cmp/__cmp__
Raymond Hettinger
report at bugs.python.org
Fri Feb 23 14:33:36 EST 2018
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
The stated goal of -3 is "warn about Python 3.x incompatibilities that 2to3 cannot trivially fix", so this use case seems like a good match.
On the other hand, adding this to -3 would be somewhat noisy since __cmp__ is pervasive in 2.7.
----------
nosy: +rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32915>
_______________________________________
More information about the Python-bugs-list
mailing list