On 4/11/06, Ron Adam <[EMAIL PROTECTED]> 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/) _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com