[Tutor] better way to make __repr__ methods for family of similar classes

Brian van den Broek broek at cc.umanitoba.ca
Wed Dec 14 05:23:13 CET 2005


Kent Johnson said unto the world upon 2005-12-13 20:57:

<snip much helpful goodness>


> See Guido's "Unifying Types and Classes" essay and PEP 253 for details. 
> And ask questions - maybe if I answer enough questions I will understand 
> this stuff!
> http://www.python.org/2.2.3/descrintro.html#metaclasses
> http://www.python.org/peps/pep-0253.html
> 

Thanks for the added info, Kent; much appreciated.

I'm not sure I'll have time in the immediate future to follow up 
(real life and all that) :-(

Best,

Brian vdB



More information about the Tutor mailing list