Re: [Tutor] Interfaces in Python

2006-06-14 Thread Alan Gauld
> Large Python projects seem to need something more formal than this. > I think Zope, Twisted and PEAK have all invented ways to formalize > this notion, and one of them may become part of Python in the > future. I think thats more to do with the background of the programmers involved. > smal

Re: [Tutor] Interfaces in Python

2006-06-14 Thread Alan Gauld
> I am learning Python and relating to my knowledge of Java... What is > (Is there?) the equivalent of Java interfaces in Python? How could > I write my own? There is no direct equivalent. Interfaces are implicit in Python, they are only really necessary in statically typed languages. Dynamica

Re: [Tutor] Interfaces in Python

2006-06-14 Thread Kent Johnson
Emily Fortuna wrote: > Hi friends, > I am learning Python and relating to my knowledge of Java... What is (Is > there?) the equivalent of Java interfaces in Python? How could I write > my own? Explicit, formal interfaces are used much less frequently in Python than in Java, and for beginners t

Re: [Tutor] Interfaces in Python

2006-06-13 Thread Dave Kuhlman
On Tue, Jun 13, 2006 at 12:59:47PM -0400, Emily Fortuna wrote: > Hi friends, > I am learning Python and relating to my knowledge of Java... What is (Is > there?) the equivalent of Java interfaces in Python? How could I write > my own? > Emily > You may be interested in this article: http: