Inherting from object. Or not.

Nick Coghlan ncoghlan at iinet.net.au
Thu Jan 27 04:54:32 EST 2005


Frans Englich wrote:
> On Wednesday 26 January 2005 21:24, M.E.Farmer wrote:
> 
>>Hello Frans,
>>What you are seeing is a step on the path to unification of types and
>>classes.
> 
> 
> I changed all base classes in my project to inherit object. There appears to 
> be no reason to not do it, AFAICT.

Exactly. My advice is to use new-style classes unless you have a reason not to 
(if you're inheriting from a builtin type, then there is no need to inherit from 
object as well - the builtin types already have the correct basic type).

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at email.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://boredomandlaziness.skystorm.net



More information about the Python-list mailing list