summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1997-02-18 18:59:37 (GMT)
committerBarry Warsaw <barry@python.org>1997-02-18 18:59:37 (GMT)
commit736bb0659fba85392e5b2034ed492a9e8bfad8d9 (patch)
tree5aa1ef08efc64beb754899900d75dcac6820a4a5
parentcd77df64e6a02215feead95def6e1a4d355865a8 (diff)
downloadcpython-736bb0659fba85392e5b2034ed492a9e8bfad8d9.zip
cpython-736bb0659fba85392e5b2034ed492a9e8bfad8d9.tar.gz
cpython-736bb0659fba85392e5b2034ed492a9e8bfad8d9.tar.bz2
Added a paragraph to describe clear_cache(), and why it's necessary.
-rw-r--r--Doc/lib/libregsub.tex7
-rw-r--r--Doc/libregsub.tex7
2 files changed, 14 insertions, 0 deletions
diff --git a/Doc/lib/libregsub.tex b/Doc/lib/libregsub.tex
index 4c1497c..d075e99 100644
--- a/Doc/lib/libregsub.tex
+++ b/Doc/lib/libregsub.tex
@@ -49,3 +49,10 @@ pattern uses any characters except letters, digits and underscores as
word delimiters. Capitalization is done by changing the first
character of each word to upper case.
\end{funcdesc}
+
+\begin{funcdesc}{clear_cache}{}
+The regsub module maintains a cache of compiled regular expressions,
+keyed on the regular expression string and the syntax of the regex
+module at the time the expression was compiled. This function clears
+that cache.
+\end{funcdesc}
diff --git a/Doc/libregsub.tex b/Doc/libregsub.tex
index 4c1497c..d075e99 100644
--- a/Doc/libregsub.tex
+++ b/Doc/libregsub.tex
@@ -49,3 +49,10 @@ pattern uses any characters except letters, digits and underscores as
word delimiters. Capitalization is done by changing the first
character of each word to upper case.
\end{funcdesc}
+
+\begin{funcdesc}{clear_cache}{}
+The regsub module maintains a cache of compiled regular expressions,
+keyed on the regular expression string and the syntax of the regex
+module at the time the expression was compiled. This function clears
+that cache.
+\end{funcdesc}