[docs] [issue31252] Operator.itemgetter documentation should include dictionary keys example

Raymond Hettinger report at bugs.python.org
Mon Aug 21 23:32:07 EDT 2017

Raymond Hettinger added the comment:

Yes, we can add a dictionary example.  I will likely split it into two lines for clarity.  Perhaps something like:

    >>> soldier = dict(rank='captain', name='dotterbart')
    >>> itemgetter('rank')(soldier)

assignee: docs at python -> rhettinger
nosy: +rhettinger
versions:  -Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6

Python tracker <report at bugs.python.org>

More information about the docs mailing list