do not know what is wrong python under win2k

Courageous jkraska at san.rr.com
Mon Dec 17 18:26:19 EST 2001


>This was the problem - i always thought i had to type this in in the
>open interpreter shell.

You can get the interpreter to interpret a python file by importing it,
ala:

>>>> import spam.py

I do this often. It's generally best to learn to live in the interpreter
for testing things.

If there are specific methods or attributes you want to invoke or access,
you can then do so by such forms as

>>>> spam.someVariable

...or...

>>>> spam.someFunction()

C//




More information about the Python-list mailing list