Inada Naoki <[email protected]> added the comment:
> I think that would require a change in the signature of PyFunction_New.
I don't think so. For example, func_annotation don't require changing
PyFunction_New().
```
case TARGET(MAKE_FUNCTION): {
PyObject *codeobj = POP();
PyFunctionObject *func = (PyFunctionObject *)
PyFunction_New(codeobj, GLOBALS());
(snip)
if (oparg & 0x04) {
assert(PyTuple_CheckExact(TOP()));
func->func_annotations = POP();
}
```
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue36521>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com