Message237888
Not all classmethods are constructors.
I see two solutions:
1) Override from_bytes() in IntEnum and every int subclass that needs this.
2) Change int.from_bytes() to call __new__. |
|
Date |
User |
Action |
Args |
2015-03-11 17:03:51 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, barry, eli.bendersky, ethan.furman, bru |
2015-03-11 17:03:51 | serhiy.storchaka | set | messageid: <1426093431.73.0.594070728246.issue23640@psf.upfronthosting.co.za> |
2015-03-11 17:03:51 | serhiy.storchaka | link | issue23640 messages |
2015-03-11 17:03:51 | serhiy.storchaka | create | |
|