[Zope-dev] an Interface expressing "a list of generator function"

Jean-Daniel jeandaniel.browne at gmail.com
Tue Nov 9 10:53:34 EST 2010


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,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope-dev/attachments/20101109/b287dbb1/attachment.html 


More information about the Zope-Dev mailing list