"Robert Rawlins" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Thank you Simon, | | I was hoping there would be something as simple as that :-) | >>> class Spam(object): | ... def egg(self): | ... if hasattr(self, 'chips'): print 'got chips!'
I strongly suggest that you read Library Reference Ch.2 on builtin functions and types. -- http://mail.python.org/mailman/listinfo/python-list