mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Add weakref support to array.array and file objects.
This commit is contained in:
parent
691d80532b
commit
cb87bc8e7e
5 changed files with 38 additions and 4 deletions
|
@ -24,6 +24,7 @@ typedef struct {
|
|||
int f_newlinetypes; /* Types of newlines seen */
|
||||
int f_skipnextlf; /* Skip next \n */
|
||||
PyObject *f_encoding;
|
||||
PyObject *weakreflist; /* List of weak references */
|
||||
} PyFileObject;
|
||||
|
||||
PyAPI_DATA(PyTypeObject) PyFile_Type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue