exec with partial globals
Chris Angelico
rosuav at gmail.com
Tue Oct 30 09:18:57 EDT 2012
More information about the Python-list mailing list
Tue Oct 30 09:18:57 EDT 2012
- Previous message (by thread): exec with partial globals
- Next message (by thread): exec with partial globals
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Oct 30, 2012 at 11:57 PM, Helmut Jarausch <jarausch at igpm.rwth-aachen.de> wrote: > Given spreadsheet S (Source) and D (Destination) as objects (wrapping a > dictionary) a possible (legal) input would be > > D.price= D.price-S.discount > > No other fields of 'D' should be modifiable. That's a bit harder. What you're describing, using exec with specific globals, would not be able to do this. You'd need to build a proxy object that decides whether or not to pass on the change. ChrisA
- Previous message (by thread): exec with partial globals
- Next message (by thread): exec with partial globals
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list