I override the import mechanism in cpython, so yes, the __import__ function is 
also accounted for.
The sys.modules was something I had not considered, that's a good point. I will 
have to look into it.

I am not sure how arbitrary code execution will be able to use native APIs 
without importing them.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/2YUSPKDMLFVGJLPQXJ3ISJ2VDGJN7B45/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to