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

2017-09-08 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

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

2017-09-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- keywords: +patch pull_requests: +3428 stage: -> patch review ___ Python tracker ___

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

2017-08-21 Thread Raymond Hettinger
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) 'captain' -- assignee: docs@python

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

2017-08-21 Thread Ashish Nitin Patil
New submission from Ashish Nitin Patil: Current documentation lacks the example of usage with dictionary keys. e.g. `itemgetter('sample')({'sample': True, 'How about this': 'Nope'})` -- assignee: docs@python components: Documentation messages: 300648 nosy: ashishnitinpatil, docs@python