Message273030
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'> | |
| Date | User | Action | Args | | 2016-08-18 14:27:01 | mark.dickinson | set | recipients: + mark.dickinson | | 2016-08-18 14:27:01 | mark.dickinson | set | messageid: <1471530421.08.0.489284238866.issue27792@psf.upfronthosting.co.za> | | 2016-08-18 14:27:01 | mark.dickinson | link | issue27792 messages | | 2016-08-18 14:27:00 | mark.dickinson | create | | |