Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Ah, big numbers that overflow: even if 'start' is (silently) capped to sys.maxint-1, len(b)-start-len("xx") will wrap and yield a positive number...
The find/rfind/index/rindex methods have the same problem. Attached a patch and unit tests, needs review. ---------- keywords: +needs review, patch priority: -> release blocker Added file: http://bugs.python.org/file11606/string_count.patch _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3967> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com