Check existence of members/methods
Erik Max Francis
max at alcyone.com
Thu Sep 2 18:53:38 EDT 2004
Nicolas Fleury wrote:
> But it puts code in strings, which I feel less natural. What do you
> think about it? Have I miss a better solution or is there something
> for
> that in the language?
Try hasattr.
--
__ Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
/ \ San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
\__/ There is nothing so subject to the inconstancy of fortune as war.
-- Miguel de Cervantes
More information about the Python-list
mailing list