]> granicus.if.org Git - python/commit
Store the current regex syntax along with the regular expression
authorBarry Warsaw <barry@python.org>
Tue, 18 Feb 1997 18:52:55 +0000 (18:52 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 18 Feb 1997 18:52:55 +0000 (18:52 +0000)
commitb67a25c0794d4a2c4f4907a8eb021750c11b1de4
tree83573561ad811a8afd7d3cc15be97e9ee75210ff
parent909d7c3284c84dd50574aca78c59ed4fea3de4b0
Store the current regex syntax along with the regular expression
string as the key to the cache.  This means that changing the syntax
will return the correct compiled pattern.

clear_cache(): New function.
Lib/regsub.py