U
Uwe Mayer
Hi,
in my program I want to "specify" that some object implements i.e. the
dictionary or list interface.
What is the Python way to do that?
i.e. in Java I'd include an interface.
in Python I could write an abstract class and inherit from it (probably
needs multiple inheritance), or I could just specify that in a comment.
What'd you suggest?
Thanks in advance
Uwe
in my program I want to "specify" that some object implements i.e. the
dictionary or list interface.
What is the Python way to do that?
i.e. in Java I'd include an interface.
in Python I could write an abstract class and inherit from it (probably
needs multiple inheritance), or I could just specify that in a comment.
What'd you suggest?
Thanks in advance
Uwe