[Python-checkins] bpo-35701: Update doc for UUID weak referencing (GH-11621)

Victor Stinner webhook-mailer at python.org
Mon Jan 28 04:31:30 EST 2019


https://github.com/python/cpython/commit/ea446409cd5f1364beafd5e5255da6799993f285
commit: ea446409cd5f1364beafd5e5255da6799993f285
branch: master
author: David H <dhdavvie at gmail.com>
committer: Victor Stinner <vstinner at redhat.com>
date: 2019-01-28T10:31:19+01:00
summary:

bpo-35701: Update doc for UUID weak referencing (GH-11621)

files:
M Doc/whatsnew/3.8.rst

diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index ce46afd48158..fb25ce2f7669 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -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`.)



More information about the Python-checkins mailing list