开发者

how does execfile() work in python?

开发者 https://www.devze.com 2023-01-22 00:56 出处:网络
does the file which is 开发者_高级运维sent as an argument to execfile runs as an independent process / thread or is the code imported and then executed ? . Also i wanted to know how efficient is it co

does the file which is 开发者_高级运维sent as an argument to execfile runs as an independent process / thread or is the code imported and then executed ? . Also i wanted to know how efficient is it compared to running threads / process .


The file is not run in a separate thread or process, it runs synchronously with the caller.

0

精彩评论

暂无评论...
验证码 换一张
取 消