Missing interfaces in Python...

Serge Orlov Serge.Orlov at gmail.com
Mon Apr 17 18:35:20 EDT 2006


Jonathan Daugherty wrote:
> # so with interfaces, missing methods will suddenly appear out of thin
> # air ?
>
> With interfaces, the idea is that they're enforced; so, they'll appear
> because someone implements them.

But if you're writing tests you will check method signatures anyway, so
why bother? Besides how java-like interfaces will help you if one of
interface methods is supposed to accept one parameter that can be list
or dict and not accept None?




More information about the Python-list mailing list