Posted By

blackthorne on 08/26/11


Tagged

python isset


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

blackthorne
guillermoj88gmailcom
Priestd09


isset() equivalent in Python


 / Published in: Python
 

  1. def isset(var): return var in vars() or var in globals()

Report this snippet  

You need to login to post a comment.