Message73589
The C implementation (only) of bisect does not invoke list subclass
methods when insorting. Code like this will not trigger the assert:
class Boom(list):
def insert(self, index, item):
assert False
bisect.insort(Boom(), 123)
object-derived classes are OK. |
|
Date |
User |
Action |
Args |
2008-09-22 18:54:44 | jek | set | recipients:
+ jek |
2008-09-22 18:54:44 | jek | set | messageid: <1222109684.93.0.997656752515.issue3935@psf.upfronthosting.co.za> |
2008-09-22 18:53:44 | jek | link | issue3935 messages |
2008-09-22 18:53:43 | jek | create | |
|