New-style classes questions

Diez B. Roggisch deets at nospam.web.de
Sun Sep 25 12:17:52 CEST 2005


> What is the reason for allowing both styles? (backwards compatibility??) 

yes.

> 
> When I make my own classes should they always be new-style objects or are 
> there reasons for using old-style object?

No, use new style if you can - except from the rare cases where above 
mentioned backwards compatibilty is needed. E.g. exceptions have to be 
old-style, and for example omniorb needs old-style classes for corba 
implementations.

Diez



More information about the Python-list mailing list