diff options
author | Henk-Jaap Wagenaar <wagenaarhenkjaap@gmail.com> | 2017-09-11 01:11:18 (GMT) |
---|---|---|
committer | Mariatta <Mariatta@users.noreply.github.com> | 2017-09-11 01:11:18 (GMT) |
commit | 2a0f7c34c386dc80519da6c3fb150f081943f204 (patch) | |
tree | b5b7d5ce16c8cf9d919f668aed44bf3d830c6585 /Lib/collections | |
parent | d6c397bf772a8f17e00afc5e0a2cf37fdebcdf29 (diff) | |
download | cpython-2a0f7c34c386dc80519da6c3fb150f081943f204.zip cpython-2a0f7c34c386dc80519da6c3fb150f081943f204.tar.gz cpython-2a0f7c34c386dc80519da6c3fb150f081943f204.tar.bz2 |
Backport docstring improvements to OrderedDict. (GH-3470)
Diffstat (limited to 'Lib/collections')
-rw-r--r-- | Lib/collections/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py index 1d6822a..26aeac1 100644 --- a/Lib/collections/__init__.py +++ b/Lib/collections/__init__.py @@ -155,9 +155,9 @@ class OrderedDict(dict): dict.clear(self) def popitem(self, last=True): - '''od.popitem() -> (k, v), return and remove a (key, value) pair. - Pairs are returned in LIFO order if last is true or FIFO order if false. + '''Remove and return a (key, value) pair from the dictionary. + Pairs are returned in LIFO order if last is true or FIFO order if false. ''' if not self: raise KeyError('dictionary is empty') |