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 ashishnitinpatil, docs@python, rhettinger
Date 2017-08-22.03:32:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1503372727.48.0.0154407586467.issue31252@psf.upfronthosting.co.za>
In-reply-to
Content
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)
    'captain'
History
Date User Action Args
2017-08-22 03:32:07rhettingersetrecipients: + rhettinger, docs@python, ashishnitinpatil
2017-08-22 03:32:07rhettingersetmessageid: <1503372727.48.0.0154407586467.issue31252@psf.upfronthosting.co.za>
2017-08-22 03:32:07rhettingerlinkissue31252 messages
2017-08-22 03:32:07rhettingercreate