diff --git a/source/docs/operators/dict_unpack.rst b/source/docs/operators/dict_unpack.rst index 735a8f9..e1f7419 100644 --- a/source/docs/operators/dict_unpack.rst +++ b/source/docs/operators/dict_unpack.rst @@ -32,4 +32,12 @@ Example See also ======== -#TODO \ No newline at end of file + +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