Re: [Pyobjc-dev] PyObjcC class method swizzling
Brought to you by:
ronaldoussoren
From: Aahz <aa...@py...> - 2009-09-20 23:57:27
|
On Mon, Sep 21, 2009, Lukas Pitschl | Dressy Vagabonds wrote: > > That might be same, don't really know those terms. The important > thing is that they do the same thing being, replacing the original > implementation with a custom one and preserve the original one to call > it in the custom one. > > Any idea Aahz on how to do that? That's basically what decorators do, here are a couple of hits from Googling "python decorator tutorial": http://www.artima.com/weblogs/viewpost.jsp?thread=240808 http://uswaretech.com/blog/2009/06/understanding-decorators/ -- Aahz (aa...@py...) <*> http://www.pythoncraft.com/ "I won't accept a model of the universe in which free will, omniscient gods, and atheism are simultaneously true." --M |