> Class Sample: > fullname = 'Something' > > How can I know that this class has an attribute called 'fullname'?
with the builtin hasattr() function :) >>> class Sample: fullname='Something' ... >>> hasattr(Sample, 'fullname') True -tkc -- http://mail.python.org/mailman/listinfo/python-list