On Tue, Oct 30, 2012 at 11:57 PM, Helmut Jarausch
<jarau...@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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to