Partial classes
Dave Benjamin
ramen at lackingtalent.com
Wed Jul 19 03:22:55 EDT 2006
On Wed, 18 Jul 2006, Sanjay wrote:
> What is the equivalent in Python? Inheriting is a way, but is not
> working in all scenerios.
Have you tried multiple inheritance? For example:
from GeneratedPerson import GeneratedPerson
from HandcraftedPerson import HandcraftedPerson
class Person(GeneratedPerson, HandcraftedPerson):
pass
If this doesn't work for you, can you explain why?
Dave
More information about the Python-list
mailing list