[Python-Dev] SRE snapshot broken

Jeremy Hylton jeremy@alum.mit.edu
Tue, 30 May 2000 10:33:02 -0400 (EDT)

I believe I'm looking at the current version.  (It's a file called
snapshot.zip with no version-specific identifying info that I can

The sre module changed one line in _fixflags from the CVS version.

def _fixflags(flags):
    # convert flag bitmask to sequence
    assert flags == 0
    return ()

The assert flags == 0 is apparently wrong, because it gets called with
an empty tuple if you use sre.search or sre.match.

Also, assuming that simply reverting to the previous test "assert not
flags" fix this bug, is there a test suite that I can run?  Guido
asked me to check in the current snapshot, but it's hard to tell how
to do that correctly.  It's not clear which files belong in the Python
CVS tree, nor is it clear how to test that the build worked.