Message292140
If someone wants to return a value larger than maxsize and support bool():
it is already possible right now by defining a __bool__ method no? If yes,
I suggest to only document this CPython implementation detail (consequence
of slots, for efficiency) and suggest to use __bool__ for such corner case.
I also dislike retrying to call "__len__" method instead of the slot. It
can have annoying side effects. |
|
Date |
User |
Action |
Args |
2017-04-22 22:05:05 | vstinner | set | recipients:
+ vstinner, rhettinger, terry.reedy, mark.dickinson, serhiy.storchaka |
2017-04-22 22:05:05 | vstinner | link | issue29840 messages |
2017-04-22 22:05:05 | vstinner | create | |
|