Missing interfaces in Python...

Peter Maas peter.maas at somewhere.com
Tue Apr 18 15:11:36 EDT 2006


Fredrik Lundh schrieb:
> Jonathan Daugherty wrote_
> 
>> # In Python, you would simply call the functions you need. No need to
>> # make things that rigidly defined.
>>
>> Except when you need to handle exceptions when those methods don't
>> exist.  I think interfaces can definitely be useful.
> 
> so with interfaces, missing methods will suddenly appear out of thin
> air ?

He probably means that with interfaces one could test compliance with
the interface as a whole instead of testing each member and each
signature as a single piece.

Peter Maas, Aachen



More information about the Python-list mailing list