mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Patch by Sjoerd Mullender to placate /F:
Clarified (hopefully :-) the documentation of elements and attributes variables.
This commit is contained in:
parent
cc2c291b7f
commit
09da65ef2f
1 changed files with 6 additions and 2 deletions
|
@ -24,7 +24,9 @@ This class provides the following interface methods and instance variables:
|
||||||
A mapping of element names to mappings. The latter mapping maps
|
A mapping of element names to mappings. The latter mapping maps
|
||||||
attribute names that are valid for the element to the default value of
|
attribute names that are valid for the element to the default value of
|
||||||
the attribute, or if there is no default to \code{None}. The default
|
the attribute, or if there is no default to \code{None}. The default
|
||||||
value is the empty dictionary.
|
value is the empty dictionary. This variable is meant to be
|
||||||
|
overridden, not extended since the default is shared by all instances
|
||||||
|
of \class{XMLParser}.
|
||||||
\end{memberdesc}
|
\end{memberdesc}
|
||||||
|
|
||||||
\begin{memberdesc}{elements}
|
\begin{memberdesc}{elements}
|
||||||
|
@ -32,7 +34,9 @@ A mapping of element names to tuples. The tuples contain a function
|
||||||
for handling the start and end tag respectively of the element, or
|
for handling the start and end tag respectively of the element, or
|
||||||
\code{None} if the method \method{unknown_starttag()} or
|
\code{None} if the method \method{unknown_starttag()} or
|
||||||
\method{unknown_endtag()} is to be called. The default value is the
|
\method{unknown_endtag()} is to be called. The default value is the
|
||||||
empty dictionary.
|
empty dictionary. This variable is meant to be overridden, not
|
||||||
|
extended since the default is shared by all instances of
|
||||||
|
\class{XMLParser}.
|
||||||
\end{memberdesc}
|
\end{memberdesc}
|
||||||
|
|
||||||
\begin{memberdesc}{entitydefs}
|
\begin{memberdesc}{entitydefs}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue