Thomas Jollans wrote:
If the inspect module's stack frame inspection machinery is supported,
then any function call might access any local... (though I don't think a
compliant Python implementation necessarily has to support the inspect
module fully).

You can be devious even without using the expect module:

def fun():
    f = open("lock.txt", "w")
    do_stuff(innocent_argument)

do_stuff = exec
innocent_argument = "f.write('foo')"

--
Greg
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to