SRE on IRIX-- Busted!

Guido van Rossum guido at beopen.com
Mon Nov 6 14:52:14 EST 2000


"Pete Shinners" <pete at visionart.com> writes:
> > i've just upgraded an irix machine from 1.5.2 to 2.0.
> >
> > i noticed pretty quick that the glob.glob() is always
> > returning an empty list. [...]
> 
> the problem is definitely coming from the new SRE module.
> i tried fiddling a couple compile options, but the SRE
> simply does not work. every test from "test_sre.py" either
> fails or falls into an infinite loop. (perhaps not infinite,
> but very very long)
> 
> for my current needs, i switched the "re.py" module to
> use the "pre" engine instead of "sre", now everything
> is working as needed. (until i need unicode, i suppose)
> 
> anyways, are special measures needed to get SRE working
> under IRIX? or am i the only one with this problem?

The IRIX optimizing compilers frequently generate buggy code.  I would
try to recompile _sre.c or possibly all of Python without
optimizations.

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



More information about the Python-list mailing list