[Interface-dev] Re: another proposal

Philipp von Weitershausen philipp at weitershausen.de
Tue Sep 14 14:58:32 EDT 2004


Glyph Lefkowitz wrote:
> On Tue, 2004-09-14 at 13:41 -0400, Itamar Shtull-Trauring wrote:
> 
> 
>>I'd like to get this in before Zope 3 final and Twisted 2.0 final, so we
>>can depend on it - how do we proceed? I'm willing to implement, but I'd
>>like to know what change I should make (add a interfaceObject reference
>>attribute? add a fullInterface string attribute? change
>>Method.interface?)
> 
> 
> In the absence of a decree from Jim, I'm going to propose the following:
> 
>  - add Method.interfaceName = fully-qualified interface name
>  - add Method.interfaceObject = reference to interface object
>  - softly, softly deprecate Method.interface
> 
> This seems like a very low impact way to make the change.

-1

First, because it looks ugly :). Somewhere deep down in the wiki we once 
agreed that classes are CamelCase, methods are camelCase and attributes 
are under_scored.

Second, I think interfaceName is yagni, interfaceObject is too long. If 
you really want the name, do method.interface.getName().

So, I'm for making Method.interface the interface object and nothing 
else. Provided that we're not really using it anywhere which I think is 
the case.

Philipp



More information about the Interface-dev mailing list