mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
SF bug [#460467] file objects should be subclassable.
Preliminary support. What's here works, but needs fine-tuning.
This commit is contained in:
parent
93a696f491
commit
59c9a645e2
7 changed files with 170 additions and 53 deletions
|
@ -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 *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue