summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-08-03 11:00:55 (GMT)
committerGitHub <noreply@github.com>2021-08-03 11:00:55 (GMT)
commit8c9f847997196aa76500d1ae104cbe7fe2a467ed (patch)
tree6f7b08d25d4ca71d14ac2447e732fcd4b068b76f /Misc/NEWS.d
parent83ca46b7784b7357d82ec47b33295e09ed7380cb (diff)
downloadcpython-8c9f847997196aa76500d1ae104cbe7fe2a467ed.zip
cpython-8c9f847997196aa76500d1ae104cbe7fe2a467ed.tar.gz
cpython-8c9f847997196aa76500d1ae104cbe7fe2a467ed.tar.bz2
bpo-27275: Change popitem() and pop() methods of collections.OrderedDict (GH-27530)
* Unify the C and Python implementations of OrderedDict.popitem(). The C implementation no longer calls ``__getitem__`` and ``__delitem__`` methods of the OrderedDict subclasses. * Change popitem() and pop() methods of collections.OrderedDict For consistency with dict both implementations (pure Python and C) of these methods in OrderedDict no longer call __getitem__ and __delitem__ methods of the OrderedDict subclasses. Previously only the Python implementation of popitem() did not call them.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Library/2021-08-01-19-49-09.bpo-27275.QsvE0k.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-08-01-19-49-09.bpo-27275.QsvE0k.rst b/Misc/NEWS.d/next/Library/2021-08-01-19-49-09.bpo-27275.QsvE0k.rst
new file mode 100644
index 0000000..1f5afaf
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-08-01-19-49-09.bpo-27275.QsvE0k.rst
@@ -0,0 +1,3 @@
+:meth:`collections.OrderedDict.popitem` and :meth:`collections.OrderedDict.pop`
+no longer call ``__getitem__`` and ``__delitem__`` methods of the OrderedDict
+subclasses.