Re: function local namespace question

2009-07-09 Thread Diez B. Roggisch
Dave Angel wrote: > Paul LaFollette wrote: >> Kind people, >> >> Using Python 3.1 under FreeBSD and WinXP. >> >> I've been tearing my hair out trying to solve this myself, but I need >> to ask for help. I want (for obscure reasons) to be able to log >> transactions in the namespace(s) of a scrip

Re: function local namespace question

2009-07-09 Thread Dave Angel
Paul LaFollette wrote: Kind people, Using Python 3.1 under FreeBSD and WinXP. I've been tearing my hair out trying to solve this myself, but I need to ask for help. I want (for obscure reasons) to be able to log transactions in the namespace(s) of a script. Specifically I would like to log c

Re: function local namespace question

2009-07-08 Thread Miles Kaufmann
On Jul 8, 2009, at 1:35 PM, Paul LaFollette wrote: I cannot figure out any way to get a hook into the local namespace of a user defined function. I have tried making a wrapper class that grabs the function call and then uses exec to invoke myfunction.__code__ with my own dictionaries. This run

function local namespace question

2009-07-08 Thread Paul LaFollette
Kind people, Using Python 3.1 under FreeBSD and WinXP. I've been tearing my hair out trying to solve this myself, but I need to ask for help. I want (for obscure reasons) to be able to log transactions in the namespace(s) of a script. Specifically I would like to log creation of identifiers, c