On 6 août, 15:52, Bruno Desthuilliers <bruno.
[EMAIL PROTECTED]> wrote:
> Heiko Wundram a écrit :
>
> > Am Mittwoch, den 06.08.2008, 08:44 -0400 schrieb Neal Becker:
> >> Sounds simple, but how, given an instance, do I find the class?
>
> > <inst>.__class__
>
> Works for new-style classes only. The "generic" way to go is to use
> type(obj).
>
> <op>
> Note that in both cases, what you'll get back is the class object, not
> the class name
> </op>

My.... I should shut up and check my facts :( Please everybody ignore
this brain fart.


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to