Add weakref support to array.array and file objects.

This commit is contained in:
Raymond Hettinger 2004-05-31 00:35:52 +00:00
parent 691d80532b
commit cb87bc8e7e
5 changed files with 38 additions and 4 deletions

View file

@ -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;