[Python-Dev] SRE incompatibility
Andrew Kuchling
akuchlin@mems-exchange.org
Fri, 30 Jun 2000 12:03:48 -0400
On Fri, Jun 30, 2000 at 11:07:16AM -0500, Guido van Rossum wrote:
>To someone familiar with '\x00ffffffffffffff' == '\377', the failure
>is surprising. What Would Larry Do? (I.e. is this in Perl?)
It uses two digits: "\x00ffff" is the string "<binary 0>ffff".
>Maybe make it dependent on the type of the searched string ('\377')
>rather than on the type of the pattern?
Won't work; you could just be compiling a pattern to make a regex
object, and have no idea what you're matching against.
--amk