Diez B. Roggisch wrote:


But not everything is a newstyle-class:

class Foo: pass
...
isinstance(Foo, object)
True
isinstance(Foo, type)
False

class Bar(object): pass
...
isinstance(Bar, type)
True



thx for explanation. but more I look at it less and less I like the notation of new-style-class definition. what is an added value of adding "(object)" since it is already an object. Any insight?

Note: I am not a language purist, more a pragmatic who like a good style.

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

Reply via email to