Skip to content

Commit cd57cc6

Browse files
generatedunixname1734921407115435meta-codesync[bot]
authored andcommitted
Sync pre-release CPython 3.15 branch from GitHub (2026-08-30)
Summary: Imported python/cpython `3.15.0rc1+dev` from upstream rev [`5136a68`](https://www.github.com/python/cpython/commit/5136a686beda8566da8592b90cea4b8e734724b6) (committed 2026-08-30 18:20:30+00:00). # Commit Info - Base: (`3.15.0rc1+dev`) - [`79b3919`](https://www.github.com/python/cpython/commit/79b39198ab76b9e7403e1828defcf9451b68f1b1) (commit date: 2026-08-29 18:26:56+00:00) - Imported: (`3.15.0rc1+dev`) - [`5136a68`](https://www.github.com/python/cpython/commit/5136a686beda8566da8592b90cea4b8e734724b6) (commit date: 2026-08-30 18:20:30+00:00) Differential Revision: D118085448 fbshipit-source-id: 57c3f45670c2eb6eeb752290ff4229f121350791
1 parent 18e79a9 commit cd57cc6

7 files changed

Lines changed: 564 additions & 113 deletions

File tree

Doc/library/site.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,9 +453,10 @@ Module contents
453453

454454
Return a list containing all global site-packages directories.
455455

456-
For each directory present in *prefixes* (or :data:`PREFIXES` if *prefixes*
457-
is ``None``), this function will find its site-packages subdirectory
458-
depending on the system environment, and will return a list of full paths.
456+
For each directory given in *prefixes* (or :data:`PREFIXES` if *prefixes*
457+
is ``None``), this function will compute its site-packages subdirectory
458+
depending on the system environment, and will return a list of full paths,
459+
which are not checked for existence.
459460

460461
.. versionadded:: 3.2
461462

Doc/library/xml.dom.minidom.rst

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,24 @@ rules apply:
245245
Instead, :mod:`!xml.dom.minidom` uses standard Python exceptions such as
246246
:exc:`TypeError` and :exc:`AttributeError`.
247247

248-
* :class:`NodeList` objects are implemented using Python's built-in list type.
249-
These objects provide the interface defined in the DOM specification, but with
250-
earlier versions of Python they do not support the official API. They are,
251-
however, much more "Pythonic" than the interface defined in the W3C
252-
recommendations.
248+
* Each of the :class:`~xml.dom.NodeList` and :class:`~xml.dom.NamedNodeMap`
249+
interfaces has two implementations, which provide additional methods and
250+
operations.
251+
252+
:attr:`~xml.dom.Node.childNodes` is a subclass of :class:`list`, or, for
253+
nodes which cannot have children, a subclass of :class:`tuple`.
254+
It supports iteration, concatenation, indexing and slicing.
255+
256+
:attr:`~xml.dom.Node.attributes` supports ``len()``, the :keyword:`in`
257+
operator, subscription by a name or by a ``(namespaceURI, localName)``
258+
tuple, assignment and deletion, and the methods :meth:`!get`, :meth:`!keys`,
259+
:meth:`!keysNS`, :meth:`!values`, :meth:`!items` and :meth:`!itemsNS`.
260+
:attr:`~xml.dom.DocumentType.entities` and
261+
:attr:`~xml.dom.DocumentType.notations` are read-only and support only
262+
``len()`` and subscription by a name.
263+
264+
* :attr:`~xml.dom.Document.strictErrorChecking` and
265+
:attr:`~xml.dom.Attr.specified` are always ``False``.
253266

254267
The following interfaces have no implementation in :mod:`!xml.dom.minidom`:
255268

0 commit comments

Comments
 (0)