Staging
v0.5.1
https://github.com/python/cpython
Revision 1d1b47673111e6c84f5290c7363ffdab38ea1e7d authored by Fred Drake on 19 March 2002, 03:33:14 UTC, committed by Fred Drake on 19 March 2002, 03:33:14 UTC
This was stated before, but a minor grammatical error made it difficult to be
sure of the meaning.
This closes SF bug #530143.
1 parent 1dbb679
Raw File
Tip revision: 1d1b47673111e6c84f5290c7363ffdab38ea1e7d authored by Fred Drake on 19 March 2002, 03:33:14 UTC
Clarify that copy_reg.pickle() is not intended for use with "classic" classes.
Tip revision: 1d1b476
re.py
"""Minimal "re" compatibility wrapper"""

# If your regexps don't work well under 2.0b1, you can switch
# to the old engine ("pre") down below.
#
# To help us fix any remaining bugs in the new engine, please
# report what went wrong.  You can either use the following web
# page:
#
#    http://sourceforge.net/bugs/?group_id=5470
#
# or send a mail to SRE's author:
#
#    Fredrik Lundh <effbot@telia.com>
#
# Make sure to include the pattern, the string SRE failed to
# match, and what result you expected.
#
# thanks /F
#

engine = "sre"
# engine = "pre"

if engine == "sre":
    # New unicode-aware engine
    from sre import *
    from sre import __all__
else:
    # Old 1.5.2 engine.  This one supports 8-bit strings only,
    # and will be removed in 2.0 final.
    from pre import *
    from pre import __all__
back to top