subclassing str

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Wed Nov 10 10:52:52 CET 2010

In message <87lj52kwln.fsf.mdw at>, Mark Wooding 

> One option is to implement a subclass which implements the additional
> protocol.

This is why I think object orientation ruins your ability to think properly. 
For “protocol” read “function”. If you want to implement a new function, 
then implement a new function, why do you have to go through this 
“subclassing” malarkey just to do something so simple.

More information about the Python-list mailing list