1

Probably this is an stupid question, but.... I've come across the python error "module is not callable" and I was wondering if we could make a module to be callable.

In other words, something like this:

import my_module 

# here an error "module is not callable" would 
# appear here, but the question is whether the 
# module can be changed in order to make the 
# module callable
my_module()

And works, without modification. Can we make some arrangements in a python module to make it callable???

Raul Luna
  • 1,945
  • 1
  • 17
  • 26

0 Answers0