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 vstinner
Recipients Boris.FELD, collinwinter, ezio.melotti, flox, vstinner
Date 2011-12-18.00:00:05
SpamBayes Score 0.00044786106
Marked as misclassified No
Message-id <1324166406.08.0.695790721964.issue13623@psf.upfronthosting.co.za>
In-reply-to
Content
bytes_find.patch only works for Python int, not object with the __index__ method. My new patch (bytes_find-2.patch) uses PyNumber_Check() instead of PyLong_Check() to be more generic. It fixes also a different issue: raise the same ValueError than bytes.find(-1) on overflow error.
History
Date User Action Args
2011-12-18 00:00:06vstinnersetrecipients: + vstinner, collinwinter, ezio.melotti, flox, Boris.FELD
2011-12-18 00:00:06vstinnersetmessageid: <1324166406.08.0.695790721964.issue13623@psf.upfronthosting.co.za>
2011-12-18 00:00:05vstinnerlinkissue13623 messages
2011-12-18 00:00:05vstinnercreate