[Python-Dev] Non-string keys in type dict
Ethan Furman
ethan at stoneleaf.us
Thu Mar 8 08:43:15 CET 2012
PJ Eby wrote:
> Short version: AddOns are things you can use to dynamically extend
> instances -- a bit like the "decorator" in "decorator pattern" (not to
> be confused with Python decorators). Rather than synthesize a unique
> string as a dictionary key, I just used the AddOn classes themselves as
> keys. This works fine for object instances, but gets hairy once classes
> come into play.
Are you able to modify classes after class creation in Python 3?
Without using a metaclass?
~Ethan~
More information about the Python-Dev
mailing list