python import



Looking at different way you can import python modules


Generally it begins by path to a module, for example, if you have a custom module, you can do something like this ::


from email.emailer import *


Hence 'from' keyword is for.  The asterisk tells python to import all.


Don't forget the __init__.py file







Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type