diff options
Diffstat (limited to 'Lib/sre_constants.py')
| -rw-r--r-- | Lib/sre_constants.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/sre_constants.py b/Lib/sre_constants.py index a5e4bb8..b429a33 100644 --- a/Lib/sre_constants.py +++ b/Lib/sre_constants.py @@ -9,8 +9,15 @@ # See the sre.py file for information on usage and redistribution. # +# update when constants are added or removed + +MAGIC = 20010115 + +# max code word in this release + MAXREPEAT = 65535 +# SRE standard exception (access as sre.error) # should this really be here? class error(Exception): @@ -211,6 +218,8 @@ if __name__ == "__main__": """) + f.write("#define SRE_MAGIC %d\n" % MAGIC) + dump(f, OPCODES, "SRE_OP") dump(f, ATCODES, "SRE") dump(f, CHCODES, "SRE") |
