[PEAK] 'Categories' in Python

Andy Gross andy at andygross.org
Fri Dec 10 19:04:27 EST 2004


> 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' ?

/arg





More information about the PEAK mailing list