mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Make __module__ settable on functions and methods.
This commit is contained in:
parent
e2052ab82a
commit
ff71c98449
2 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ static PyMemberDef func_memberlist[] = {
|
|||
RESTRICTED|READONLY},
|
||||
{"func_name", T_OBJECT, OFF(func_name), READONLY},
|
||||
{"__name__", T_OBJECT, OFF(func_name), READONLY},
|
||||
{"__module__", T_OBJECT, OFF(func_module), READONLY},
|
||||
{"__module__", T_OBJECT, OFF(func_module)},
|
||||
{NULL} /* Sentinel */
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue