SF bug [#460467] file objects should be subclassable.

Preliminary support.  What's here works, but needs fine-tuning.
This commit is contained in:
Tim Peters 2001-09-13 05:38:56 +00:00
parent 93a696f491
commit 59c9a645e2
7 changed files with 170 additions and 53 deletions

View file

@ -10,6 +10,7 @@ extern "C" {
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 *);