[Zope3-dev] Proposal: Improving on __implements__
Godefroid Chapelle
gotcha@swing.be
Sun, 19 Jan 2003 21:12:59 +0100
At 16:08 19/01/2003, Phillip J. Eby wrote:
>>I'd prefer to keep class statements as class statements. If Python had an
>>'instances implement' statement that, for argument's sake is
>>'implements', it might look like this:
>>
>> class Foo:
>> implements IFoo, IBar
>>
>>So, I suppose I'm trying for something close to that, without needing to
>>change the language.
>
>Unfortunately, 'implements(IFoo,IBar)' doesn't look like a statement, it
>looks like a boolean test whose return value is being ignored.
If a lurker can enter, I'd like to second Phillip on this opinion.
--
Godefroid Chapelle
BubbleNet sprl
rue Victor Horta, 18 / 202
1348 Louvain-la-Neuve
Belgium
Tel + 32 (10) 459901
Mob + 32 (477) 363942
TVA 467 093 008
RC Niv 49849