summaryrefslogtreecommitdiffstats
path: root/Lib/sre_parse.py
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2000-07-02 12:00:07 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2000-07-02 12:00:07 (GMT)
commit3562f1176403653ebfbef6275d449ad42d1b843a (patch)
tree371b851c1c6bd77c5149a4c553c5ca94824632b4 /Lib/sre_parse.py
parentc13222cdff4373a9763b9c7df4b2e12e7e3b776f (diff)
downloadcpython-3562f1176403653ebfbef6275d449ad42d1b843a.zip
cpython-3562f1176403653ebfbef6275d449ad42d1b843a.tar.gz
cpython-3562f1176403653ebfbef6275d449ad42d1b843a.tar.bz2
-- use charset bitmaps where appropriate. this gives a 5-10%
speedup for some tests, including the python tokenizer. -- added support for an optional charset anchor to the engine (currently unused by the code generator). -- removed workaround for array module bug.
Diffstat (limited to 'Lib/sre_parse.py')
-rw-r--r--Lib/sre_parse.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/sre_parse.py b/Lib/sre_parse.py
index 12f49c3..b263256 100644
--- a/Lib/sre_parse.py
+++ b/Lib/sre_parse.py
@@ -16,11 +16,10 @@ import _sre
from sre_constants import *
-# FIXME: should be 65535, but the arraymodule is still broken
-MAXREPEAT = 32767
+MAXREPEAT = 65535
-# FIXME: might change in 2.0 final. but for now, this seems
-# to be the best way to be compatible with 1.5.2
+# FIXME: the following might change in 2.0 final. but for now, this
+# seems to be the best way to be compatible with 1.5.2
CHARMASK = 0xff
SPECIAL_CHARS = ".\\[{()*+?^$|"