Message211846
Antoine,
If the mixed-in class defines __reduce_ex__, and the Enum class defines __reduce__, pickle will see that the Enum class has both, and will call the _ex__ method. It is, therefore, the preferred method (at least by pickle, which is what we are discussing). If you don't believe me, try it and see. |
|
Date |
User |
Action |
Args |
2014-02-21 10:35:55 | ethan.furman | set | recipients:
+ ethan.furman, gvanrossum, barry, pitrou, larry, alexandre.vassalotti, eli.bendersky, python-dev, serhiy.storchaka |
2014-02-21 10:35:55 | ethan.furman | set | messageid: <1392978955.77.0.775025662301.issue20653@psf.upfronthosting.co.za> |
2014-02-21 10:35:55 | ethan.furman | link | issue20653 messages |
2014-02-21 10:35:55 | ethan.furman | create | |
|