According to the imp.load_module
documentation, "The caller is responsible for closing the file argument." If I pass the file object returned from imp.find_module
to imp.load_module
, am I still responsible for closing the file object? Or will imp.load_module
close it for me?
通过阅读文档我会说是的,你是。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.