Well, actually your interface does exist (if my object exposes the same set
of methods as an instance of String, then it is a String), it's just not
possible to explicitly call it out like you do in, say, Java.

The concept of an interface exists in all OO languages I've used, even when
there was no keyword 'interface'.

Cheers,
Sidu.
C42 Engineering
http://blog.sidu.in

On Thu, Jun 17, 2010 at 1:52 PM, Srinivas Reddy Thatiparthy <
[email protected]> wrote:

> is it just because of duck typing we don't require a concept of
> interfaces(like in Java and C#) in python? i think so.what you say?
>
>
>
>
> Regards,
> Srini T.
> --The real failure is failing to try for success.
>
>
> _______________________________________________
> BangPypers mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/bangpypers
>
_______________________________________________
BangPypers mailing list
[email protected]
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to