Simple Newbie Question: What am I doing wrong?
MDK
mdk at mdk.com
Thu Jan 24 14:35:49 EST 2002
More information about the Python-list mailing list
Thu Jan 24 14:35:49 EST 2002
- Previous message (by thread): [ANN] Jabberpy 0.3 Released
- Next message (by thread): Simple Newbie Question: What am I doing wrong?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I have a file named mytest.py containing the following:
def yo():
print "Bla"
In the interactive window I type:
>>> import mytest
>>> mytest.yo
But I get back
<function yo at 0x00985378>
Why don't I get back "Bla"?
Neither does it work if I do:
return "Bla"
Why not?
Thank you for your help.
- Previous message (by thread): [ANN] Jabberpy 0.3 Released
- Next message (by thread): Simple Newbie Question: What am I doing wrong?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list