Help: how to protect the module 'sys' and 'os'

q q pytomtom at
Wed Mar 7 08:58:34 CET 2012

Hi~ alls,
I have to limit somebody modify the attr of 'sys'&'os'? e.g. you can't
append sys.path. Someone has a good method?
now my way: modified the source code of python
,"_PyObject_GenericSetAttrWithDict", because if you want to reset the
you need to invoke this function.

best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list