[Python-Dev] anonymous blocks

Guido van Rossum gvanrossum at gmail.com
Thu Apr 21 16:49:13 CEST 2005

> So while:
>     fooble(arg)
> is pretty nasty, documentation that tells me that 'arg' is a string is
> probably enough to set me on the right track.  But if the
> documentation tells me that arg is a thunk/block, that's almost
> certainly not enough to get me going.  I also need to know how that
> thunk/block will be called.

This argument against thunks sounds bogus to me. The signature of any
callable arguments is recursively part of the signature of the
function you're documenting. Just like the element type of any
sequence arguments is part of the argument type.

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list