Python Basic Doubt

Xavi jarabal at gmail.com
Sun Aug 11 12:58:25 EDT 2013


Thanks to all for your answers,

I guess it is more flexible with isinstance (the duck test :)
I'm going to change the type checks.

Respect to the "Names starting and ending with double-underscore".
I don't know how to get the name of a classe without them.
obj.__class__.__name__

Thanks.
-- 
Xavi



More information about the Python-list mailing list