Mercurial > cpython-lru_cache-weakref
diff Objects/typeobject.c @ 74141:7a7b698f6f21
Issue #13577: Built-in methods and functions now have a __qualname__.
Patch by sbt.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Fri, 23 Dec 2011 12:40:16 +0100 |
| parents | 195bfd4c3ea1 |
| children | 7d96679c5d46 |
line wrap: on
line diff
--- a/Objects/typeobject.c Fri Dec 23 17:04:23 2011 +0800 +++ b/Objects/typeobject.c Fri Dec 23 12:40:16 2011 +0100 @@ -3726,7 +3726,7 @@ descr = PyDescr_NewClassMethod(type, meth); } else if (meth->ml_flags & METH_STATIC) { - PyObject *cfunc = PyCFunction_New(meth, NULL); + PyObject *cfunc = PyCFunction_New(meth, (PyObject*)type); if (cfunc == NULL) return -1; descr = PyStaticMethod_New(cfunc);
