STINNER Victor <victor.stin...@haypocalc.com> added the comment:

pitrou> You shouldn't harcode 1 << 63 and 1 << 64, but calculate 
pitrou> them based on sys.maxsize instead.

(sys.maxint) Yes, you're right. Does str_find-3.patch looks better?
It's not easy to always detect an Heisenbug :-)

----------
Added file: http://bugs.python.org/file15496/str_find-3.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7458>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to