Python3 - How do I import a class from another file

R.Wieser address at not.available
Mon Dec 9 05:41:02 EST 2019


Greg,

> There's nothing stopping you from subsequently rebinding that name to some 
> other object, or deleting it altogether.

Which is something I did not expect.  But running into is what makes doing 
something new interesting. :-)

And I just realized something else: I just assumed that the "del instance" 
command did something more than it should, but there is a good chance that 
the mere action of creating an instance with the same name as the class made 
the classname disappear from the internal availability list, and not return 
after the instance (and I assume its name too) got deleted.

Regards,
Rudy Wieser




More information about the Python-list mailing list