For what? If to describe signatures in extension modules, than the semi-private attribute __signature__
is not better than the semi-private attribute __text_signature__
, which is used in the CPython to do this. We need a better public mechanism here, see Type Signatures for extension modules (PEP draft) for some recent discussion.