[Python-Dev] anonymous blocks

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Apr 21 05:55:45 CEST 2005

Steven Bethard wrote:
> Of course, even with the unpack list, you still have to know what kind
> of arguments the function calls your block with.  And because these
> only appear within the code, e.g.
>     block(openfile)
> you can't rely on easily accessible things like the function's
> signature.

You can't rely on a function's signature alone to tell
you much in any case. A distressingly large number of
functions found in third-party extension modules have
a help() string that just says something like


There's really no substitute for a good docstring!

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+

More information about the Python-Dev mailing list