Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix doc findings
  • Loading branch information
tungol committed Nov 12, 2024
commit c08110c9d0ebdd88688185fb81b3c68a3878aafa
4 changes: 2 additions & 2 deletions Doc/library/pyexpat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ The :mod:`xml.parsers.expat` module contains two functions:
http://www.python.org/ns/ elem1
elem2

Due to limitations in the ``Expat`` library used by :mod:`pyexpat`,
Due to limitations in the ``Expat`` library used by :mod:`!pyexpat`,
the :class:`XMLParserType` instance returned can only be used to parse a single
XML document. Call ``ParserCreate`` for each document to provide unique
parser instances.
Expand Down Expand Up @@ -283,7 +283,7 @@ XMLParser Objects

The following attributes contain values relating to the most recent error
encountered by an :class:`XMLParserType` object, and will only have correct values
once a call to :meth:`Parse` or :meth:`ParseFile` has raised an
once a call to :meth:`~XMLParserType.Parse` or :meth:`~XMLParserType.ParseFile` has raised an
:exc:`xml.parsers.expat.ExpatError` exception.


Expand Down
2 changes: 1 addition & 1 deletion Doc/whatsnew/2.3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,7 @@ complete list of changes, or look through the CVS logs for all the details.
* The parser objects provided by the :mod:`pyexpat <xml.parsers.expat>` module can now optionally
buffer character data, resulting in fewer calls to your character data handler
and therefore faster performance. Setting the parser object's
:attr:`~xml.parsers.expat.xmlparser.buffer_text` attribute to :const:`True` will enable buffering.
:attr:`~xml.parsers.expat.XMLParserType.buffer_text` attribute to :const:`True` will enable buffering.

* The ``sample(population, k)`` function was added to the :mod:`random`
module. *population* is a sequence or :class:`!xrange` object containing the
Expand Down
4 changes: 2 additions & 2 deletions Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1438,8 +1438,8 @@ xml

* :meth:`xml.etree.ElementTree.XMLParser.flush`
* :meth:`xml.etree.ElementTree.XMLPullParser.flush`
* :meth:`xml.parsers.expat.xmlparser.GetReparseDeferralEnabled`
* :meth:`xml.parsers.expat.xmlparser.SetReparseDeferralEnabled`
* :meth:`xml.parsers.expat.XMLParserType.GetReparseDeferralEnabled`
* :meth:`xml.parsers.expat.XMLParserType.SetReparseDeferralEnabled`
* :meth:`!xml.sax.expatreader.ExpatParser.flush`

(Contributed by Sebastian Pipping in :gh:`115623`.)
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Update :class:`pyexpat.XMLParserType` to use that name consisently.
Update :class:`xml.parsers.expat.XMLParserType` to use that name consisently.
Loading