DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
iterate over batch of dict keys at once python
for
chunk
in
chunked
(
big_dict
.
iteritems
(
)
,
batch_size
)
:
func
(
chunk
)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#iterate
#batch
#dict
#keys
#python
ADD COMMENT
Topic
COMMENT
Name
1+7 =
Submit