[Interface-dev] [Fwd: Re: Interfaces status and coordination]

Glyph Lefkowitz glyph at divmod.com
Wed Jun 2 22:44:54 EDT 2004


On Tue, 2004-06-01 at 06:20, Jim Fulton wrote:

> Off hand, I can't think of any reason not to do this.  I won't be able to
> do this before the Zope X3.0 beta, but I can do it on the head later, or someone
> else can do this.

That reminds me.  I certainly wouldn't propose this as standard
interface object behavior, but is there going to be a non-horrible way
to do what nevow.formless does?  e.g.

class X(TypedInterface):
    def y(z=String()):
        return Integer()

and then be able to introspect X['y'] to determine the implied
signature?  I understand the args are in X['y'].optional, but I can't
figure out a way to get to the actual function 'y'.  I think it should
be available for other introspection reasons as well; it would be nice
to find the source line where an interface method was defined, for
example.




More information about the Interface-dev mailing list