Can I inherit member variables?

MonkeeSage MonkeeSage at gmail.com
Thu Sep 21 15:33:24 CEST 2006


Ps. Aristotle can rest easy tonight:

class mortal(object): pass
class man(mortal): pass
Socrates = man()
all_men  = mortal()
if Socrates == all_men:
  print "Socrates == all_man"
else:
  print "Undistributed Middle is indeed a fallacy"

;)

Regards,
Jordan




More information about the Python-list mailing list