Hi Fredrik, On Tue, May 30, 2006 at 07:48:50AM +0200, Fredrik Lundh wrote: > since "abc".find("", 0) == 0, I would have thought that a program that > searched for an empty string in a loop wouldn't get anywhere at all.
Indeed. And when this bug was found in the program in question, a natural fix was to add 1 to the start position if the searched string was empty, which used to ensure that the loop terminates. A bientot, Armin _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com