A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-May/004328.html below:

[Python-Dev] SRE snapshot broken

[Python-Dev] SRE snapshot broken [Python-Dev] SRE snapshot brokenJeremy 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
find.)

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.

Jeremy




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4