Skip to content

Commit beeaaca

Browse files
committed
Improve the NEWS entry for UserDict.popitem()
Makes better use of reST constructs and uses better language.
1 parent 5efc270 commit beeaaca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Causes the ``popitem`` method for ``collections.UserDict`` to pop in last-in, first-out order rather than first-in, first-out. The former has been the default for ``dict`` instances since Python 3.7, so this change will make subclasses of ``UserDict`` behave more like ``dict``.
1+
Guarantees that the CPython implementation of :meth:`collections.UserDict.popitem` will pop in the same order as the wrapped dictionary rather than an arbitrary order.
2+
This change will make :class:`UserDict` instances behave more similarly to :class:`dict` (or whichever mapping type the instance is customized to use).

0 commit comments

Comments
 (0)