summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorTal Einat <taleinat+github@gmail.com>2018-09-10 13:11:04 (GMT)
committerGitHub <noreply@github.com>2018-09-10 13:11:04 (GMT)
commit54752533b2ed1c898ffe5ec2e795c6910ee46a39 (patch)
tree02d254c2e1ed9865fe2c05086ba7dcb11d2b750d /Doc/whatsnew
parent1f36bf6077d93cb43fd84bea4a8a625fa772d1fa (diff)
downloadcpython-54752533b2ed1c898ffe5ec2e795c6910ee46a39.zip
cpython-54752533b2ed1c898ffe5ec2e795c6910ee46a39.tar.gz
cpython-54752533b2ed1c898ffe5ec2e795c6910ee46a39.tar.bz2
bpo-30977: rework code changes according to post-merge code review (GH-9106)
also mention the change and its consequences in What's New
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.8.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index 2de7a50..a9b689d 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -131,6 +131,10 @@ Optimizations
objects (e.g. tuple, list, dict) size is reduced 4 or 8 bytes.
(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.
+
Build and C API Changes
=======================
@@ -275,6 +279,9 @@ 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.
+
CPython bytecode changes
------------------------