You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow to overwrite the signature for Python functions #80723
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2019-08-31.20:11:37.440>created_at=<Date2019-04-06.08:33:41.679>labels= ['3.8', 'type-feature', 'library']
title='Allow to overwrite the signature for Python functions'updated_at=<Date2019-08-31.20:11:37.440>user='https://github.com/serhiy-storchaka'
Currently __text_signature__ can be used for specifying signature of functions implemented in C. It is ignored for functions implemented in Python. The proposed PR allows to override the real signature of Python functions by setting the __text_signature__ attribute. This is needed to restore useful signatures in functions that use the *args hack to implement positional-only parameters. See the discussion for PR 12637.
Activity
serhiy-storchaka commentedon Apr 6, 2019
Currently __text_signature__ can be used for specifying signature of functions implemented in C. It is ignored for functions implemented in Python. The proposed PR allows to override the real signature of Python functions by setting the __text_signature__ attribute. This is needed to restore useful signatures in functions that use the *args hack to implement positional-only parameters. See the discussion for PR 12637.
serhiy-storchaka commentedon May 6, 2019
New changeset d53cf99 by Serhiy Storchaka in branch 'master':
bpo-36542: Allow to overwrite the signature for Python functions. (GH-12705)
d53cf99