Re: an Interface expressing "a list of generator function"

Jean-Daniel <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
The end of the last message was not finished...


Ideally, here is (maybe) what I wish I could write:

>
"""
from zope.interface import IList, IGenerator, implements, requires
def make_generator_functions():
    implements(IList(IGenerator))
    [...]

def stack_assumption(gen_funcs):
    requires(IList(IGenerator), gen_funcs)
    [ ... ]
"""

Regards,

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.