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 -- http://mail.python.org/mailman/listinfo/python-list