From 1c58df3297e8357f50db0a2449d510825aa6b8d0 Mon Sep 17 00:00:00 2001 From: Fredrik Lundh Date: Sun, 2 Jul 2000 12:00:07 +0000 Subject: -- 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. --- Lib/sre_parse.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Lib/sre_parse.py') 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 = ".\\[{()*+?^$|" -- cgit v1.2.1