[Zope-dev] MonkeyPatching in the Core (was: Zope 2.6 planning)

seb bacon seb@jamkit.com
Mon, 04 Mar 2002 21:40:33 +0000


> What if, instead of the static list of callable info that the CP 
> currently uses, Zope objects could register themselves as profilable? 
> We would then make sure that the object types that CP handles now 
> register themselves, but other products that we don't know (or 
> have to know) about could register themselves too if they wanted. 
> 
> Think of this as "consentual" monkey-patching (hmm... may have to 
> change this metaphor soon!). The products have to take some explicit 
> action to be profilable, so it is not invisible in the code of the 
> product. The hooks will continue to installed as-needed, so there 
> is no performance issue.
> 
> Thoughts?

Bingo!

seb