File tree 3 files changed +23
-0
lines changed 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -67,3 +67,13 @@ as much as it can.
67
67
.. c :function :: PyObject* PyWeakref_GET_OBJECT (PyObject *ref)
68
68
69
69
Similar to :c:func: `PyWeakref_GetObject `, but does no error checking.
70
+
71
+
72
+ .. c :function :: void PyObject_ClearWeakRefs (PyObject *object)
73
+
74
+ This function is called by the :c:member: `~PyTypeObject.tp_dealloc ` handler
75
+ to clear weak references.
76
+
77
+ This iterates through the weak references for *object * and calls callbacks
78
+ for those references which have one. It returns when all callbacks have
79
+ been attempted.
Original file line number Diff line number Diff line change @@ -956,6 +956,13 @@ Introspection
956
956
.. versionadded :: 3.7
957
957
958
958
959
+ .. function :: iscoroutine(obj)
960
+
961
+ Return ``True `` if *obj * is a coroutine object.
962
+
963
+ .. versionadded :: 3.4
964
+
965
+
959
966
Task Object
960
967
===========
961
968
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