return statement in functions

hokieghal99 hokiegal99 at hotmail.com
Tue Dec 23 11:22:12 EST 2003


Irmen de Jong wrote:
> hokieghal99 wrote:
> 
>> Here's how I call the report function:
>>
>> report(fs_object_count,clean_dir_names,etc., etc.)
>>
> 
> You're forgetting to actually *call* the other functions too,
> (you just pass the functions themselves, as you see in your output,
> Python prints the function objects that you pass to the report
> function).
> So try this:
> 
>  report(fs_object_count(),clean_dir_names(),...)
> 
> these you forgot:      ^^                ^^
> 
> 
> --Irmen

That did it. Many thanks to you!!!





More information about the Python-list mailing list