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

Jim Fulton jim at zope.com
Thu Jun 3 06:01:41 EDT 2004


Glyph Lefkowitz wrote:
> 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.

I would like to be able to do something like this.  I have a lightning
talk at PyCon that proposed something along the same lines.  I suggested
a slightly different style, but I think that both of the styles can
be accomidated.

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org




More information about the Interface-dev mailing list