Are there 'Interfaces' in Python??

Markus Schaber markus at schabi.de
Thu Sep 27 18:58:06 CEST 2001


Hi,

Laurent Szyster <laurent.szyster at q-survey.be> schrub:

>> That is correct. In a lot of cases, such interfaces are a helpful
>> instrument to find bugs, because they force such agreements. But the
>> way they are implemented in Java, those are not as flexible as
>> someone could wish it in some cases. Python doesn't enforce anything,
>> thus the programmer has to know what he does - but he also can do
>> whatever he wants because he knows what he does.
> 
> The last part of your last sentence is a nice quote to promote
> Python vs. Java:
> 
>   "(with Python) the programmer has to know what he does - but he
>    also can do whatever he wants because he knows what he does"

Well - maybe. But the same applies to C void pointers, and the sentence 
"with C void pointers, the programmer has to know what he does - but he 
also can do whatever he wants because he knows what he does" doesn't 
really sound like promotion for C :-)

markus
-- 
"The strength of the Constitution lies entirely in the determination of 
each citizen to defend it. Only if every single citizen feels duty 
bound to do his share in this defense are the constitutional rights 
secure." -- Albert Einstein



More information about the Python-list mailing list