We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4470cea commit 3759ac7Copy full SHA for 3759ac7
Modules/pyexpat.c
@@ -76,7 +76,15 @@ typedef struct {
76
PyObject_HEAD
77
78
XML_Parser itself;
79
- PyObject *parent; /* Parent xmlparseobject (for ref counting) */
+ /*
80
+ * Strong reference to a parent `xmlparseobject` if this parser
81
+ * is a child parser. Set to NULL if this parser is a root parser.
82
+ * This is needed to keep the parent parser alive as long as it has
83
+ * at least one child parser.
84
+ *
85
+ * See https://github.com/python/cpython/issues/139400 for details.
86
+ */
87
+ PyObject *parent;
88
int ordered_attributes; /* Return attributes as a list. */
89
int specified_attributes; /* Report only specified attributes. */
90
int in_callback; /* Is a callback active? */
0 commit comments