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/2002-June/025987.html below:

[Python-Dev] pre.sub's broken under 2.2

[Python-Dev] pre.sub's broken under 2.2Fredrik Lundh fredrik@pythonware.com
Thu, 27 Jun 2002 21:12:41 +0200
just for the record, one of those "let's change a lot of
code that we don't understand, just because we can"
things broke the "pre" module in 2.2.

someone changed:

            try:
                repl = pcre_expand(_Dummy, repl)
            except:
                m = MatchObject(self, source, 0, end, [])

to

            try:
                repl = pcre_expand(_Dummy, repl)
            except error:
                m = MatchObject(self, source, 0, end, [])

but in the most common use case (replacement strings
containing group references), the pcre_expand function
raises a TypeError exception...

</F>





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