Simple import question about mac osx
jmDesktop
needin4mation at gmail.com
Tue Apr 29 15:17:27 EDT 2008
On Apr 29, 2:37 pm, "Jerry Hill" <malaclyp... at gmail.com> wrote:
> On Tue, Apr 29, 2008 at 2:14 PM, jmDesktop <needin4mat... at gmail.com> wrote:
> > Thanks. That worked on mac. But it does work like I said in
> > Windows. Don't know why. Mr. Chun must also be using Windows because
> > that is the way he does it in his book.
>
> It shouldn't work that way on windows either. Can you tell us a
> little more about what you mean when you say you "compile this" under
> windows? Normally, python code doesn't need to be compiled, so I'm
> wondering if you're doing something different from what we expect when
> you say you compile it and then import it in the interpreter.
>
> Are you by any chance writing code in IDLE, running it, then doing
> things in the interpreter?
>
> --
> Jerry
On Windows I took the text file I created on mac with vi and opened it
in PythonWin. I ran it. It compiled. I run the import and call from
the python interpreter.
More information about the Python-list
mailing list