File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -68,3 +68,13 @@ as much as it can.
68
68
69
69
Similar to :c:func: `PyWeakref_GetObject `, but implemented as a macro that does no
70
70
error checking.
71
+
72
+
73
+ .. c :function :: void PyObject_ClearWeakRefs (PyObject *object)
74
+
75
+ This function is called by the :c:member: `~PyTypeObject.tp_dealloc ` handler
76
+ to clear weak references.
77
+
78
+ This iterates through the weak references for *object * and calls callbacks
79
+ for those references which have one. It returns when all callbacks have
80
+ been attempted.
Original file line number Diff line number Diff line change @@ -143,6 +143,12 @@ The module defines the following items:
143
143
:func: `time.time ` and the :attr: `~os.stat_result.st_mtime ` attribute of
144
144
the object returned by :func: `os.stat `.
145
145
146
+ .. attribute :: name
147
+
148
+ The path to the gzip file on disk, as a :class: `str ` or :class: `bytes `.
149
+ Equivalent to the output of :func: `os.fspath ` on the original input path,
150
+ with no other normalization, resolution or expansion.
151
+
146
152
.. versionchanged :: 3.1
147
153
Support for the :keyword: `with ` statement was added, along with the
148
154
*mtime * constructor argument and :attr: `mtime ` attribute.
You can’t perform that action at this time.
0 commit comments