import issue with classes
bahamutzero8825 at gmail.com
Tue Jan 3 22:06:55 EST 2012
On 1/3/2012 8:50 PM, Rodrick Brown wrote:
> Import FooA doesn't work and I need to use from FooA import FooA
> instead? This puzzles me.
If you have a module called FooA with a class called FooA, then import
FooA imports the /module/. The class would be FooA.FooA, just as the
variable x from FooA would be FooA.x.
CPython 3.2.2 | Windows NT 6.1.7601.17640
More information about the Python-list