summaryrefslogtreecommitdiff
path: root/Lib/sre_parse.py
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2000-07-02 12:00:07 +0000
committerFredrik Lundh <fredrik@pythonware.com>2000-07-02 12:00:07 +0000
commit1c58df3297e8357f50db0a2449d510825aa6b8d0 (patch)
tree4846afa89d85ad13bdd323237700f34d3fad5915 /Lib/sre_parse.py
parent789cdbb1565ff96fea552e9c6f55740d937dfc65 (diff)
downloadcpython-1c58df3297e8357f50db0a2449d510825aa6b8d0.tar.gz
-- 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 12f49c3620..b2632563c7 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 = ".\\[{()*+?^$|"