is this the right way to do subclasses?

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Wed Nov 8 23:54:04 CET 2006


John Salerno a écrit :
> Peter Otten wrote:
> 
>> You may need a no-op implementation of fix_attributes() in the Character
>> class.
> 
> 
> What does that mean? Is that in case I use Character directly to create 
> an object?

Most propbably it can be useful for other character classes that don't 
need too fix attributes.

> Would that just be a 'pass' statement?

Yes.



More information about the Python-list mailing list