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 Eli_B
Recipients Eli_B, docs@python
Date 2017-05-24.12:37:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1495629480.46.0.852726762555.issue30456@psf.upfronthosting.co.za>
In-reply-to
Content
The documentation says isinstance(x, (int, int)) would be fixed to isinstance(x, (int)). The fix is actually isinstance(x, int).

I propose the following text instead:
"
2to3fixer:: isinstance

Fixes duplicate types in the second argument of :func:`isinstance`.  For example, isinstance(x, (int, int)) is converted to isinstance(x, int) and isinstance(x, (int, float, int)) is converted to isinstance(x, (int, float)).
"
History
Date User Action Args
2017-05-24 12:38:01Eli_Bsetrecipients: + Eli_B, docs@python
2017-05-24 12:38:00Eli_Bsetmessageid: <1495629480.46.0.852726762555.issue30456@psf.upfronthosting.co.za>
2017-05-24 12:38:00Eli_Blinkissue30456 messages
2017-05-24 12:38:00Eli_Bcreate