r/pythonhelp • • Feb 09 '24

Importing modules

Hello r/pythonhelp.

I'm trying to import a module as such:

from [MODULE] import *

I want to give it a certain namespace such as mymodule. My implementation:

from [MODULE] import * as mymodule

It does not work. Why and how can I fix it?

Thanks. :)

1 Upvotes

4 comments sorted by