Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion source/docs/operators/dict_unpack.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,12 @@ Example

See also
========
#TODO

In purpose of unpack a dict values as it were a list values.

>>> from operator import itemgetter
>>> d = {'foo': 1, 'bar': 2, 'baz': 3}
>>> foo, baz = itemgetter('foo', 'baz')(d)
(1, 3)

#TODO