Commit 724a9a79 authored by Fred Drake's avatar Fred Drake

Add isname() function to ZConfig.Substitution.

parent 90af066a
...@@ -627,8 +627,7 @@ containment chain is optional. ...@@ -627,8 +627,7 @@ containment chain is optional.
indirectly. indirectly.
\end{funcdesc} \end{funcdesc}
An additional function is provided which provides some interesting Some additional functions are provided:
information about a source string:
\begin{funcdesc}{getnames}{s} \begin{funcdesc}{getnames}{s}
Return a list of the names referenced by the string \var{s}. The Return a list of the names referenced by the string \var{s}. The
...@@ -636,6 +635,11 @@ information about a source string: ...@@ -636,6 +635,11 @@ information about a source string:
be included once, even if it is referenced multiple times. be included once, even if it is referenced multiple times.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{isname}{s}
Returns \code{True} if \var{s} is a valid name for a substitution
text, otherwise returns \code{False}.
\end{funcdesc}
The following exceptions are defined: The following exceptions are defined:
\begin{excdesc}{SubstitutionError} \begin{excdesc}{SubstitutionError}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment