How to change default behaviour of a class?

Gerhard W. Gruber g.gruber at xsoft.co.at
Mon Aug 30 06:36:00 EDT 1999


How can I change what is printed when I use the statement "print class"?
Usually this leads to an output like <class instance at 9aad60> but I
rather want it to print variables contained in my class instead of the
pointer adress.

-- 
bye,
   Gerhard
email: sparhawk at eunet.at
       g.gruber at xsoft.co.at




More information about the Python-list mailing list