[Tutor] Re: import.... (Joseph Q.)

Andrei project5 at redrival.net
Mon Apr 11 08:33:22 CEST 2005

Joseph Quigley <cpu.crazy <at> gmail.com> writes:

> Well, I'm importing a custom module, and I can't loop back to the module I 
> imported (the modules are different modes of the program. Someone suggested 
> classes, but I have no idea how to use them. 

So you have two modules which implement the same functions in different ways,
depending on the mode of the program? If this is the case, just import the
modules by name and use the dot-notation (see post before mine). There's no need
to unload anything. Whether classes are useful in this case: it's possible, but
without a more detailed description it's hard to determine. I would say it's
perpahs a bit unusual if you do indeed have two modules with the same interface
but different behavior.



More information about the Tutor mailing list