Simple Newbie Question: What am I doing wrong?

Jason Orendorff jason at jorendorff.com
Thu Jan 24 14:39:05 EST 2002


MDK wrote:
> 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"?

Because you're not calling the function.

>>> mytest.yo()
Bla

## Jason Orendorff    http://www.jorendorff.com/





More information about the Python-list mailing list