4

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?

Uyghur Lives Matter
  • 18,820
  • 42
  • 108
  • 144

0 Answers0