python 2.7 - PynamoDB Number of Items in batch_get -


i using pynamodb batch_get this:

batchitems = mymodel.batch_get(id_list) 

how know how many items in batchitems?

i wanna if it's empty else.

i don't know helpful you, items count using loop:

item_count = 0 item in mymodel.batch_get(id_list):     item_count += 1  # check item_count 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -