Help: how to protect the module 'sys' and 'os'
q q
pytomtom at gmail.com
Wed Mar 7 02:58:34 EST 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
value,
you need to invoke this function.
---
best regards
pytom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120307/04d583a4/attachment.html>
More information about the Python-list
mailing list