[Tutor] Re: Weird import problem with PythonIDE on Mac (was 'import problem')

2005-04-25 Thread Chris Smith
On Friday, Apr 22, 2005, at 10:00 America/Chicago, Max Noel wrote: Do you have a suggestion as to what can I give a module so it has enough information to execute a function that resides in __main__? Here is a visual of what is going on: --__main__ def y1(): pass import foo foo.run(string

[Tutor] Re: Weird import problem with PythonIDE on Mac (was 'import problem')

2005-04-21 Thread Chris Smith
### def y1(): pass def foo(): from __main__ import y1 pass foo() ### Here is a version of the code, stripped of the timeit code. The above segment exhibits the same symptoms as the previously submitted one. Even though I am running this as "__main__" it behaves as though it is not _