Author jek
Recipients jek
Date 2008-09-22.18:53:43
SpamBayes Score 2.0015e-05
Marked as misclassified No
Message-id <>
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:44jeksetrecipients: + jek
2008-09-22 18:54:44jeksetmessageid: <>
2008-09-22 18:53:44jeklinkissue3935 messages
2008-09-22 18:53:43jekcreate