Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Importing Help
#4
To call your methods and use the classes, they have to be in a namespace. The import not only loads the code it sets up the namespace for them to appear in.

You could expose all the modules from within your module, but you'd have to call them them from that module's namespace. That would save you from doing the import, but it would be a lot of other work to maintain. I wouldn't recommend trying to do that.
Reply


Messages In This Thread
Importing Help - by mkgrtn - Aug-20-2021, 11:34 PM
RE: Importing Help - by bowlofred - Aug-21-2021, 12:05 AM
RE: Importing Help - by mkgrtn - Aug-21-2021, 04:14 AM
RE: Importing Help - by bowlofred - Aug-21-2021, 06:20 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020