Re: [Python-ideas] natively logging sys.path modifications

June 25, 2015
2:12 a.m.
On Thu, Jun 25, 2015 at 4:26 AM, anatoly techtonik <techtonik@gmail.com> wrote:
So what you want is for the sys module to log all assignments to a particular attribute, AND for all mutations of that attribute to be logged as well. That sounds like two completely separate problems to be solved, but neither is fundamentally impossible (although you'd need to fiddle with the sys module itself to do the other). I suggest you investigate ways of solving this that require zero core code changes, as those ways will work on all existing Python versions. Then once you run up against an actual limitation, you'll have a better argument for code changes. ChrisA
3555
Age (days ago)
3555
Last active (days ago)
0 comments
1 participants
participants (1)
-
Chris Angelico