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 -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/2YUSPKDMLFVGJLPQXJ3ISJ2VDGJN7B45/ Code of Conduct: http://python.org/psf/codeofconduct/
