FYI,
http://stackoverflow.com/questions/3062701/why-dont-we-require-interfaces-in-dynamic-languages
A good discussion though, thanks for all who answered.
Regards,
Srini T.
--The real failure is failing to try for success.
___
BangPypers mailing list
>>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),
This is what i am referring ,duck typing.
>>The concept of an interface exists in all OO languages I've used, even when
there was no keyword 'interface'.
In m
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 n
Dear Senthil,
+sys.maxint for the sheer effort you took for me to
write. :)
Regards,
Srini T.
--The real failure is failing to try for success.
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/
On Thu, Jun 17, 2010 at 01:52:58PM +0530, Srinivas Reddy Thatiparthy 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?
Conceptually they are bit different. I am assuming you meant Dynamic
typing (wherein
I am really enjoying your book.Thanks a lot for writing it. :)
Regards,
Srini T.
--The real failure is failing to try for success.
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers
On Thu, Jun 17, 2010 at 1:52 PM, Srinivas Reddy Thatiparthy
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?
It's not that you don't "require" it. As Baiju said, the Zope thing
does it quite well.
Howe
On Thu, Jun 17, 2010 at 1:52 PM, Srinivas Reddy Thatiparthy
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?
If you want interfaces you may use this third party module:
http://pypi.python.org/pypi/zope.
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
BangPypers@python.or