This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jek
Recipients jek
Date 2008-09-22.18:53:43
SpamBayes Score 2.0015e-05
Marked as misclassified No
Message-id <1222109684.93.0.997656752515.issue3935@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008-09-22 18:54:44jeksetrecipients: + jek
2008-09-22 18:54:44jeksetmessageid: <1222109684.93.0.997656752515.issue3935@psf.upfronthosting.co.za>
2008-09-22 18:53:44jeklinkissue3935 messages
2008-09-22 18:53:43jekcreate