]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-35701: Update doc for UUID weak referencing (GH-11621)
authorDavid H <dhdavvie@gmail.com>
Mon, 28 Jan 2019 09:31:19 +0000 (10:31 +0100)
committerVictor Stinner <vstinner@redhat.com>
Mon, 28 Jan 2019 09:31:19 +0000 (10:31 +0100)
Doc/whatsnew/3.8.rst

index ce46afd481589212d25e41f9f0e54528b32ea00d..fb25ce2f7669e9d554f058f9fc0c4fabae72aee5 100644 (file)
@@ -316,8 +316,6 @@ Optimizations
   (Contributed by Inada Naoki in :issue:`33597`)
 
 * :class:`uuid.UUID` now uses ``__slots__`` to reduce its memory footprint.
-  Note that this means that instances can no longer be weak-referenced and
-  that arbitrary attributes can no longer be added to them.
 
 * The :class:`list` constructor does not overallocate the internal item buffer
   if the input iterable has a known length (the input implements ``__len__``).
@@ -514,9 +512,6 @@ Changes in the Python API
 * The function :func:`math.factorial` no longer accepts arguments that are not
   int-like. (Contributed by Pablo Galindo in :issue:`33083`.)
 
-* :class:`uuid.UUID` now uses ``__slots__``, therefore instances can no longer
-  be weak-referenced and attributes can no longer be added.
-
 * :mod:`xml.dom.minidom` and :mod:`xml.sax` modules no longer process
   external entities by default.
   (Contributed by Christian Heimes in :issue:`17239`.)