[Python-3000] Adaptation and type declarations
Guido van Rossum
guido at python.org
Wed Apr 19 12:28:47 CEST 2006
On 4/11/06, Ron Adam <rrr at ronadam.com> wrote:
> If the __signature__ is parsed from the first line, it puts it right
> below the function definition.
>
> def pattern_search(seq, pattern, start=0):
> """ fn(str, str, int) -> (str, int)
>
> Get a sub-string and index using a pattern.
> """
> <block>
Please don't. Parsing stuff out of docstrings is a poor substitute for
explicit syntax, either using decorators or the proposed argument
annotations.
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000
mailing list