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 <[email protected]>
<http://bugs.python.org/issue20326>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com