[Python-ideas] natively logging sys.path modifications
anatoly techtonik
techtonik at gmail.com
Wed Jun 24 15:07:59 CEST 2015
Hi,
sys.path is kind of important thing for troubleshooting. It may worth
to ship it with a logging mechanism that allows to quickly dump
who added what and (optionally) why.
I see the log as a circular memory buffer of limited size, to say
256 entries, that contains tuples in the following format:
path, who, where, why
path -- actual path added to sys.path
who -- the context - package.module:function or
- package.module:class.method or
- package.module:__toplevel__
where -- full filename and line number to the instruction
why -- advanced API may allow to set this field
--
anatoly t.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150624/f08810d5/attachment.html>
More information about the Python-ideas
mailing list