On Sep 16, 8:05 pm, Hrvoje Niksic <[EMAIL PROTECTED]> wrote: > "Gabriel Genellina" <[EMAIL PROTECTED]> writes: > > In Python you would write isinstance(x, object). > > It will return True for all Python objects (except perhaps those that > fiddle with metaclasses), not only for instances of new-style classes. > Unlike say isinstance(x.__class__, type) which should distinguish between instances of new and old-style classes. -- http://mail.python.org/mailman/listinfo/python-list