imported scripts

When you import a script are the items in that import considered the same as items in the original script?

Say I have a script that imports class myClass1:

Would I be able to reference that myClass1 the same as if it had been in the original script after it was imported?

JB

Let’s say you have a module called myModule.py that has a class called myClass1. Than to import the module and get to that class you might use one of two approaches:

import myModule

myObject = myModule.myClass1()

Or…

from myModule import * # might also be just import myClass1 instead of *

myObject = myClass1()

You can also use the “as” keyword to import something under a different name.