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 mark.dickinson
Recipients mark.dickinson
Date 2016-08-18.14:27:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1471530421.08.0.489284238866.issue27792@psf.upfronthosting.co.za>
In-reply-to
Content
Whoops; no, it's not fixed. 3.6 introduced a fast path that has the side-effect of fixing this issue for the `True % 2` case, but not for all cases: >>> False % 2 False >>> True % 2 1 >>> class MyInt(int): pass ... >>> type(MyInt(0) % 6) <class '__main__.MyInt'> >>> type(MyInt(1) % 6) <class 'int'>
History
Date User Action Args
2016-08-18 14:27:01mark.dickinsonsetrecipients: + mark.dickinson
2016-08-18 14:27:01mark.dickinsonsetmessageid: <1471530421.08.0.489284238866.issue27792@psf.upfronthosting.co.za>
2016-08-18 14:27:01mark.dickinsonlinkissue27792 messages
2016-08-18 14:27:00mark.dickinsoncreate