new-style classes VS classic-classes

gabor gabor at realtime.sk
Wed Oct 16 16:46:26 EDT 2002


On Wed, 2002-10-16 at 20:08, Sean 'Shaleh' Perry wrote:
> On Wednesday 16 October 2002 11:58, Aahz wrote:
> >
> > >2. is there any reason not to use the new-style classes ( except
> > >backwards-compatibility)?
> >
> > You can't use new-style classes for exceptions.  Other than that, not
> > much reason.
> 
> note for clarity Aahz said you can not make an exception class that derives 
> from object.  new-style classes can still use exceptions.

ok, i understand...

but what was the reason to invent new-style classes? for now i only
learned that they can be slower a little, and you can't use them as
exceptions ( btw. is this going to change in the future )?

were the new-style classes designed to completely replace the
classic-classes at some time? or they're supposed to solve different
problems?

thanks,
gabor

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





More information about the Python-list mailing list