Mercurial > cpython-lru_cache-weakref
diff Objects/methodobject.c @ 47580:94f64f11fdd0
Implement PEP 3121: new module initialization and finalization API.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Wed, 11 Jun 2008 05:26:20 +0000 |
| parents | 7c4c46342137 |
| children | 4025f638911f |
line wrap: on
line diff
--- a/Objects/methodobject.c Wed Jun 11 03:41:00 2008 +0000 +++ b/Objects/methodobject.c Wed Jun 11 05:26:20 2008 +0000 @@ -188,7 +188,7 @@ static PyObject * meth_repr(PyCFunctionObject *m) { - if (m->m_self == NULL) + if (m->m_self == NULL || PyModule_Check(m->m_self)) return PyUnicode_FromFormat("<built-in function %s>", m->m_ml->ml_name); return PyUnicode_FromFormat("<built-in method %s of %s object at %p>",
