Clay, Search Google for it. Here is one good explanation with code examples by Michael Fotsch: http://www.geocities.com/foetsch/python/new_style_classes.htm Nick V.
placid wrote: > [EMAIL PROTECTED] wrote: > > I need to find out if an object is a class. Using new style classes > > this is very easy: > > > > class Test(object): pass > > > > obj = Test > > or > > obj = Test() > > > > if type(obj) == type: > > # this is a class object.. > > else: > > # this not a class object > > > > But this fails for old style classes. For example: > > > > class OldStyleObject: pass > > > > Why is there old and new classes? What are the differences? > > --Cheers -- http://mail.python.org/mailman/listinfo/python-list