[issue20326] Argument Clinic should use a non-error-prone syntax to mark text signatures

Larry Hastings report at bugs.python.org
Sun Jan 26 13:37:08 CET 2014


Larry Hastings added the comment:

Here's a first cut at a patch.  All signatures now start with "sig=(".

I also added a special marker: if the first parameter starts with "$", we know for certain it's a "self" (or "module" or "type") parameter.  This means we can lose the heuristics for "do we have a self parameter?", making inspect.Signature a little more bullet-proof.  "$" was chosen as it isn't a legal token in Python.

----------
Added file: http://bugs.python.org/file33724/larry.sig=.marker.for.signatures.diff.1.txt

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20326>
_______________________________________


More information about the Python-bugs-list mailing list