Message178263
Subclassing findCaller() is likely to be a bit hairy for the average user, as it deals with some fairly arcane aspects of Python internals.
As for mechanism, maybe allow functions/methods to be registered with the logging module, which would store a referenceto the function's func_code member. findCaller() would check the frame's f_code member against the set of registered functions, and continue up the stack until it found an unregistered function. |
|
Date |
User |
Action |
Args |
2012-12-27 02:37:36 | glynnc | set | recipients:
+ glynnc, vinay.sajip |
2012-12-27 02:37:36 | glynnc | set | messageid: <1356575856.9.0.00138189317292.issue16778@psf.upfronthosting.co.za> |
2012-12-27 02:37:36 | glynnc | link | issue16778 messages |
2012-12-27 02:37:36 | glynnc | create | |
|