Understanding some Python code -



Understanding some Python code -

i'm working way through gmail access using imaplib , came across:

# count unread emails status, response = imap_server.status('inbox', "(unseen)") unreadcount = int(response[0].split()[2].strip(').,]')) print unreadcount

i wish know what:

status,

does in front end of "response =". google it, have no thought i'd inquire find reply :(.

thanks.

when function returns tuple, can read more 1 variable.

def ret_tup(): homecoming 1,2 # can written parens a,b = ret_tup()

a , b 1 , 2 respectively

python

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -