Message237888
| Author |
serhiy.storchaka |
| Recipients |
barry, bru, eli.bendersky, ethan.furman, serhiy.storchaka |
| Date |
2015年03月11日.17:03:51 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1426093431.73.0.594070728246.issue23640@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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__. |
|
History
|
|---|
| 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 |
|