Interfaces
Stefan Palme <[email protected]>
| Newsgroups | gmane.comp.web.zope.german |
|---|---|
| Organization | Invisible Brain |
| Message-ID | <[email protected]> |
Hallo,
bin gerade durch Zufall auf eine Ungereimtheit gestoßen:
Hier
http://docs.zope.org/zope2/zdgbook/source/ComponentsAndInterfaces.html#creating-interfaces
steht:
from Interface import Base
class Hello(Base):
def hello(self, name):
"""Say hello to the world"""
Während im Sourcecode des Interface-Packages steht:
<ZOPE>/lib/python/Interface/__init__.py:
from Interface import Interface
class IMyInterface(Interface):
'''Interface documentation '''
def meth(arg1, arg2):
'''Documentation for meth'''
# Note that there is no self argument
Wie ist es nun richtig - wird in einer Interface-Deklaration
das self-Argument mitgeschrieben oder nicht?
Danke und Gruß
-stefan-
_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope