Message177920
I believe that using Sequence ABC as mix-in is recommended when implementing custom sequence.
But mixing-in it violates "should only provide __reversed__() if they can
provide an implementation that is more efficient than the one
provided by reversed()."
Defining __reversed__ in Sequence ABC also means that classes doesn't have
__reversed__ aren't Sequence. While not implementing it is recommended
for most cases. |
|
Date |
User |
Action |
Args |
2012-12-22 02:26:21 | methane | set | recipients:
+ methane, rhettinger, terry.reedy, stutzbach |
2012-12-22 02:26:21 | methane | set | messageid: <1356143181.77.0.603217781448.issue16712@psf.upfronthosting.co.za> |
2012-12-22 02:26:21 | methane | link | issue16712 messages |
2012-12-22 02:26:21 | methane | create | |
|