Re: Importing from a module which contains more than one Class...

2009-05-11 Thread GKalman
erisk. Could you open a > python shell in your Module_Class folder, type 'from MyClass import > MyClass, MyOtherClass', and past whatever traceback you get here? > -- > http://mail.python.org/mailman/listinfo/python-list > > Alex! Looks like I did misunderstand how '

Re: Importing from a module which contains more than one Class...

2009-05-10 Thread alex23
GKalman wrote: > from MyClass import * > from MyOtherClass import *     # error msg: no such module! > > As I mentioned above,  the code for MyClass & MyOtherClass is in the same > file . This program only works with a single Class in a file. That is when > the File name is the SAME as the Class n

Importing from a module which contains more than one Class...

2009-05-10 Thread GKalman
more than one (unrelated) Classes? -- View this message in context: http://www.nabble.com/Importing-from-a-module-which-contains-more-than-one-Class...-tp23476815p23476815.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list