This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mgilson
Recipients docs@python, mgilson
Date 2016-07-08.16:23:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1467994985.16.0.513883147731.issue27470@psf.upfronthosting.co.za>
In-reply-to
Content
The man page for python says:

> Warn about Python 3.x incompatibilities that 2to3 cannot trivially fix.

The official documentation (https://docs.python.org/2/using/cmdline.html#cmdoption-3) does not mention 2to3 at all:

> Warn about Python 3.x possible incompatibilities by emitting a DeprecationWarning for features that are removed or significantly changed in Python 3.

This seems like a pretty big oversight when the following code issues no warnings (presumably because 2to3 can trivially handle this change):

```
from __future__ import print_function

class test(object):
    def __nonzero__(self):
        return False

t = test()
if t:
    print('Hello')
```
History
Date User Action Args
2016-07-08 16:23:05mgilsonsetrecipients: + mgilson, docs@python
2016-07-08 16:23:05mgilsonsetmessageid: <1467994985.16.0.513883147731.issue27470@psf.upfronthosting.co.za>
2016-07-08 16:23:05mgilsonlinkissue27470 messages
2016-07-08 16:23:05mgilsoncreate