55msgstr ""
66"Project-Id-Version : Python 3\n "
77"Report-Msgid-Bugs-To : \n "
8- "POT-Creation-Date : 2021-09-23 16:16+0200 \n "
8+ "POT-Creation-Date : 2021-11-04 18:14+0100 \n "
99"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
1010"Last-Translator : FULL NAME <EMAIL@ADDRESS>\n "
1111"Language-Team : FRENCH <traductions@lists.afpy.org>\n "
@@ -60,14 +60,31 @@ msgid ""
6060"initialized, it must call :c:func:`PyObject_GC_Track`."
6161msgstr ""
6262
63- #: c-api/gcsupport.rst:37
63+ #: c-api/gcsupport.rst:36
64+ msgid ""
65+ "Similarly, the deallocator for the object must conform to a similar pair of "
66+ "rules:"
67+ msgstr ""
68+
69+ #: c-api/gcsupport.rst:39
70+ msgid ""
71+ "Before fields which refer to other containers are invalidated, :c:func:"
72+ "`PyObject_GC_UnTrack` must be called."
73+ msgstr ""
74+
75+ #: c-api/gcsupport.rst:42
76+ msgid ""
77+ "The object's memory must be deallocated using :c:func:`PyObject_GC_Del`."
78+ msgstr ""
79+
80+ #: c-api/gcsupport.rst:45
6481msgid ""
6582"If a type adds the Py_TPFLAGS_HAVE_GC, then it *must* implement at least a :"
6683"c:member:`~PyTypeObject.tp_traverse` handler or explicitly use one from its "
6784"subclass or subclasses."
6885msgstr ""
6986
70- #: c-api/gcsupport.rst:41
87+ #: c-api/gcsupport.rst:49
7188msgid ""
7289"When calling :c:func:`PyType_Ready` or some of the APIs that indirectly call "
7390"it like :c:func:`PyType_FromSpecWithBases` or :c:func:`PyType_FromSpec` the "
@@ -78,26 +95,26 @@ msgid ""
7895"include the :const:`Py_TPFLAGS_HAVE_GC` flag."
7996msgstr ""
8097
81- #: c-api/gcsupport.rst:51
98+ #: c-api/gcsupport.rst:59
8299msgid ""
83100"Analogous to :c:func:`PyObject_New` but for container objects with the :"
84101"const:`Py_TPFLAGS_HAVE_GC` flag set."
85102msgstr ""
86103
87- #: c-api/gcsupport.rst:57
104+ #: c-api/gcsupport.rst:65
88105msgid ""
89106"Analogous to :c:func:`PyObject_NewVar` but for container objects with the :"
90107"const:`Py_TPFLAGS_HAVE_GC` flag set."
91108msgstr ""
92109
93- #: c-api/gcsupport.rst:63
110+ #: c-api/gcsupport.rst:71
94111msgid ""
95112"Resize an object allocated by :c:func:`PyObject_NewVar`. Returns the "
96113"resized object or ``NULL`` on failure. *op* must not be tracked by the "
97114"collector yet."
98115msgstr ""
99116
100- #: c-api/gcsupport.rst:69
117+ #: c-api/gcsupport.rst:77
101118msgid ""
102119"Adds the object *op* to the set of container objects tracked by the "
103120"collector. The collector can run at unexpected times so objects must be "
@@ -106,55 +123,38 @@ msgid ""
106123"usually near the end of the constructor."
107124msgstr ""
108125
109- #: c-api/gcsupport.rst:78
126+ #: c-api/gcsupport.rst:86
110127msgid ""
111128"Returns non-zero if the object implements the garbage collector protocol, "
112129"otherwise returns 0."
113130msgstr ""
114131
115- #: c-api/gcsupport.rst:81
132+ #: c-api/gcsupport.rst:89
116133msgid ""
117134"The object cannot be tracked by the garbage collector if this function "
118135"returns 0."
119136msgstr ""
120137
121- #: c-api/gcsupport.rst:86
138+ #: c-api/gcsupport.rst:94
122139msgid ""
123140"Returns 1 if the object type of *op* implements the GC protocol and *op* is "
124141"being currently tracked by the garbage collector and 0 otherwise."
125142msgstr ""
126143
127- #: c-api/gcsupport.rst:89
144+ #: c-api/gcsupport.rst:97
128145msgid "This is analogous to the Python function :func:`gc.is_tracked`."
129146msgstr ""
130147
131- #: c-api/gcsupport.rst:96
148+ #: c-api/gcsupport.rst:104
132149msgid ""
133150"Returns 1 if the object type of *op* implements the GC protocol and *op* has "
134151"been already finalized by the garbage collector and 0 otherwise."
135152msgstr ""
136153
137- #: c-api/gcsupport.rst:99
154+ #: c-api/gcsupport.rst:107
138155msgid "This is analogous to the Python function :func:`gc.is_finalized`."
139156msgstr ""
140157
141- #: c-api/gcsupport.rst:103
142- msgid ""
143- "Similarly, the deallocator for the object must conform to a similar pair of "
144- "rules:"
145- msgstr ""
146-
147- #: c-api/gcsupport.rst:106
148- msgid ""
149- "Before fields which refer to other containers are invalidated, :c:func:"
150- "`PyObject_GC_UnTrack` must be called."
151- msgstr ""
152-
153- #: c-api/gcsupport.rst:109
154- msgid ""
155- "The object's memory must be deallocated using :c:func:`PyObject_GC_Del`."
156- msgstr ""
157-
158158#: c-api/gcsupport.rst:114
159159msgid ""
160160"Releases memory allocated to an object using :c:func:`PyObject_GC_New` or :c:"
0 commit comments