broken pipes, import errors (LONG, INVOLVED)

Gerhard Häring gh_pythonlist at gmx.de
Fri Mar 8 19:56:14 EST 2002


Le 08/03/02 à 16:13, Geoff Gerrietts écrivit:
> [...]
> exec statement
> object = eval(object_nm)
> [...]

If you're really using these versions of exec and eval, you risk
overwriting things in the current local and global namespace.

You could try to provide explicit namespaces to exec and eval.

Gerhard
-- 
This sig powered by Python!
Außentemperatur in München: 3.8 °C      Wind: 1.2 m/s




More information about the Python-list mailing list