Check For SELF Variable Existance

Robert Rawlins robert.rawlins at thinkbluemedia.co.uk
Tue Mar 11 07:00:59 EDT 2008


Hello Guys,

 

I want to be able to check if a class has a certain property in its 'self'
scope, what's the best way to do this? I've seen a few examples of people
using a try: block to test if the variable exists but to be honest, this
seems a little bit verbose, do we not have a better method of checking for
its existence?

 

Cheers,

 

Rob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080311/3e07e260/attachment.html>


More information about the Python-list mailing list