New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:

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.

----------
components: Library (Lib)
messages: 339530
nosy: gvanrossum, serhiy.storchaka, yselivanov
priority: normal
severity: normal
status: open
title: Allow to overwrite the signature for Python functions
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36542>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to