This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author glynnc
Recipients glynnc, vinay.sajip
Date 2012-12-27.02:37:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356575856.9.0.00138189317292.issue16778@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-12-27 02:37:36glynncsetrecipients: + glynnc, vinay.sajip
2012-12-27 02:37:36glynncsetmessageid: <1356575856.9.0.00138189317292.issue16778@psf.upfronthosting.co.za>
2012-12-27 02:37:36glynnclinkissue16778 messages
2012-12-27 02:37:36glynnccreate