Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

destructuring for dict in python

from operator import itemgetter

params = {'a': 1, 'b': 2}

a, b = itemgetter('a', 'b')(params)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #destructuring #dict #python
ADD COMMENT
Topic
Name
3+2 =