This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients eric.snow, rhettinger, serhiy.storchaka
Date 2017-09-04.23:06:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504566400.95.0.709563152667.issue31345@psf.upfronthosting.co.za>
In-reply-to
Content
The help() for collections.OrderedDict.popitem is not showing the default value of last=True.

----------- Prior versions are unhelpful ------------------
~/npython $ python3.6
Python 3.6.2 (v3.6.2:5fd33b5926, Jul 16 2017, 20:11:06)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from collections import OrderedDict
>>> help(OrderedDict.popitem)
Help on method_descriptor:

popitem(...)
    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.


----------- Current version is helpful --------------------
$ ./python.exe
Python 3.7.0a0 (heads/master-dirty:b2d096bd2a, Sep  4 2017, 14:50:05)
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from collections import OrderedDict
>>> help(OrderedDict.popitem)
Help on method_descriptor:

popitem(self, /, last=True)
    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.
History
Date User Action Args
2017-09-04 23:06:40rhettingersetrecipients: + rhettinger, eric.snow, serhiy.storchaka
2017-09-04 23:06:40rhettingersetmessageid: <1504566400.95.0.709563152667.issue31345@psf.upfronthosting.co.za>
2017-09-04 23:06:40rhettingerlinkissue31345 messages
2017-09-04 23:06:40rhettingercreate