See exactly what a function has returned
Peter Hansen
peter at engcorp.com
Wed Sep 15 13:27:47 EDT 2004
Brad Tilley wrote:
> Is there an easier way to do this:
>
> def print_whats_returned(function):
> print function
> print type(function)
What is "this"? The subject line and the name of
the function imply it is something to do with the
return values of a function, yet the function is
never called. While Python is sometimes called
executable pseudo-code, I think in this case you'd
be better off using plain English to describe what
your goal is.
-Peter
More information about the Python-list
mailing list