Mercurial > cpython-lru_cache-weakref
diff Include/moduleobject.h @ 19894:51cc82605d32 legacy-trunk
SF bug [#460467] file objects should be subclassable.
Preliminary support. What's here works, but needs fine-tuning.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Thu, 13 Sep 2001 05:38:56 +0000 |
| parents | 00d80947d817 |
| children | c1eb668525e1 |
line wrap: on
line diff
--- a/Include/moduleobject.h Thu Sep 13 01:29:13 2001 +0000 +++ b/Include/moduleobject.h Thu Sep 13 05:38:56 2001 +0000 @@ -10,6 +10,7 @@ extern DL_IMPORT(PyTypeObject) PyModule_Type; #define PyModule_Check(op) PyObject_TypeCheck(op, &PyModule_Type) +#define PyModule_CheckExact(op) ((op)->ob_type == &PyModule_Type) extern DL_IMPORT(PyObject *) PyModule_New(char *); extern DL_IMPORT(PyObject *) PyModule_GetDict(PyObject *);
