[Python-Dev] SRE incompatibility

Guido van Rossum guido@python.org
Fri, 30 Jun 2000 12:18:10 -0500


> 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.

OK.  Let's change our spec.

--Guido van Rossum (home page: http://www.python.org/~guido/)