Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes it does... One of the examples is monkey patching using bytecode. How are you going to do that without write access to the filesystem running your code?

The same is true for module imports... If you have write access to the same directory as the code itself there's all sorts of havoc one can cause beyond merely substituting your own os.py.



You do not need access to the same directory as the code itself. Think of a Python program that can use plugins written by users. For example Django.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: