(old_f, args, kwargs)
| 324 | f = self.tempval |
| 325 | |
| 326 | def new_f(old_f, args, kwargs): |
| 327 | debugger = get_global_debugger() |
| 328 | if debugger is not None: |
| 329 | debugger.enable_tracing() |
| 330 | |
| 331 | debugger = None |
| 332 | |
| 333 | # Remove our own traces :) |
| 334 | self.tempval = old_f |
| 335 | register_tasklet_info(self) |
| 336 | |
| 337 | # Hover old_f to see the stackless being created and *args and **kwargs to see its parameters. |
| 338 | return old_f(*args, **kwargs) |
| 339 | |
| 340 | # This is the way to tell stackless that the function it should execute is our function, not the original one. Note: |
| 341 | # setting tempval is the same as calling bind(new_f), but it seems that there's no other way to get the currently |
nothing calls this directly
no test coverage detected