equal
deleted
inserted
replaced
136 return entry |
136 return entry |
137 |
137 |
138 def wrapfunction(container, funcname, wrapper): |
138 def wrapfunction(container, funcname, wrapper): |
139 '''Wrap the function named funcname in container |
139 '''Wrap the function named funcname in container |
140 |
140 |
141 It is replacing with your wrapper. The container is typically a |
141 Replace the funcname member in the given container with the specified |
142 module, class, or instance. |
142 wrapper. The container is typically a module, class, or instance. |
143 |
143 |
144 The wrapper will be called like |
144 The wrapper will be called like |
145 |
145 |
146 wrapper(orig, *args, **kwargs) |
146 wrapper(orig, *args, **kwargs) |
147 |
147 |