[Types-sig] Scarecrow Proposal

Jim Fulton jim@Digicool.com
Tue, 24 Nov 1998 23:39:30 +0000


Barry A. Warsaw wrote:
> 
>     JF> Note that signatures will *not* be available as attributes of
>     JF> the interface.  For example:
> 
>     |   class FooInterface(Interface):
>     |      def spam(a, b):
>     |         "blah blah blah :)"
> 
>     JF>   FooInterface.spam # raises an attribute error
> 
> Why?  Doesn't it make sense for introspection purposes to have access
> to the methods defined in an interface through the interface object?

Of course, but *not* as attributes of the interface.  The interface
will provide methods for getting these.

Jim

--
Jim Fulton           mailto:jim@digicool.com
Technical Director   (540) 371-6909              Python Powered!
Digital Creations    http://www.digicool.com     http://www.python.org

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.