Brett Cannon added the comment: So at this point you should use inspect.signature(), not getfullargspec().
With that you could do this if you either allowed setting the __signature__ attribute and then provided code that would set it, made __signature__ a property that returned the Signature object if desired on a built-in, or come up with some automated way to take the argument string from PyArg_Parse() as you suggested. ---------- nosy: +brett.cannon, larry _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16490> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com