[PEAK] 'Categories' in Python

Bob Ippolito bob at redivi.com
Fri Dec 10 19:07:39 EST 2004


On Dec 10, 2004, at 7:04 PM, Andy Gross wrote:

>> If you really wanted that, you could use this same implementation, 
>> but just have them write categories on empty abstract base classes 
>> instead of the class itself.  Just don't tell them they're allowed to 
>> write a category on the actual class (if they're even aware of the 
>> existence of the actual class).
>>
>> You could even change the implementation of the Category function 
>> such that it checks to make sure that the user is providing one of 
>> these "allowed" abstract base classes... if you hated your users that 
>> much ;)
>>
>
> Both great ideas.  I'll probably do something like that.  Do you think 
> something like that could still be justifiably called 'Categories' ?

Yeah, I think that could probably be called categories.. so long as the 
implementation doesn't stray too far from what I had demonstrated :)

-bob




More information about the PEAK mailing list