5
5
msgstr ""
6
6
"Project-Id-Version : Python 3.7\n "
7
7
"Report-Msgid-Bugs-To : \n "
8
- "POT-Creation-Date : 2018-06-28 15:29 +0200\n "
8
+ "POT-Creation-Date : 2018-10-12 18:59 +0200\n "
9
9
"PO-Revision-Date : 2018-08-03 23:47+0200\n "
10
10
"Last-Translator : FULL NAME <EMAIL@ADDRESS>\n "
11
11
"Language-Team : FRENCH <traductions@lists.afpy.org>\n "
@@ -18,148 +18,159 @@ msgstr ""
18
18
msgid "Context Variables Objects"
19
19
msgstr ""
20
20
21
- #: ../Doc/c-api/contextvars.rst:10
21
+ #: ../Doc/c-api/contextvars.rst:13
22
+ msgid ""
23
+ "In Python 3.7.1 the signatures of all context variables C APIs were "
24
+ "**changed** to use :c:type:`PyObject` pointers instead of :c:type:"
25
+ "`PyContext`, :c:type:`PyContextVar`, and :c:type:`PyContextToken`, e.g.::"
26
+ msgstr ""
27
+
28
+ #: ../Doc/c-api/contextvars.rst:24
29
+ msgid "See :issue:`34762` for more details."
30
+ msgstr ""
31
+
32
+ #: ../Doc/c-api/contextvars.rst:29
22
33
msgid ""
23
34
"This section details the public C API for the :mod:`contextvars` module."
24
35
msgstr ""
25
36
26
- #: ../Doc/c-api/contextvars.rst:14
37
+ #: ../Doc/c-api/contextvars.rst:33
27
38
msgid ""
28
39
"The C structure used to represent a :class:`contextvars.Context` object."
29
40
msgstr ""
30
41
31
- #: ../Doc/c-api/contextvars.rst:19
42
+ #: ../Doc/c-api/contextvars.rst:38
32
43
msgid ""
33
44
"The C structure used to represent a :class:`contextvars.ContextVar` object."
34
45
msgstr ""
35
46
36
- #: ../Doc/c-api/contextvars.rst:24
47
+ #: ../Doc/c-api/contextvars.rst:43
37
48
msgid "The C structure used to represent a :class:`contextvars.Token` object."
38
49
msgstr ""
39
50
40
- #: ../Doc/c-api/contextvars.rst:28
51
+ #: ../Doc/c-api/contextvars.rst:47
41
52
msgid "The type object representing the *context* type."
42
53
msgstr ""
43
54
44
- #: ../Doc/c-api/contextvars.rst:32
55
+ #: ../Doc/c-api/contextvars.rst:51
45
56
msgid "The type object representing the *context variable* type."
46
57
msgstr ""
47
58
48
- #: ../Doc/c-api/contextvars.rst:36
59
+ #: ../Doc/c-api/contextvars.rst:55
49
60
msgid "The type object representing the *context variable token* type."
50
61
msgstr ""
51
62
52
- #: ../Doc/c-api/contextvars.rst:39
63
+ #: ../Doc/c-api/contextvars.rst:58
53
64
msgid "Type-check macros:"
54
65
msgstr ""
55
66
56
- #: ../Doc/c-api/contextvars.rst:43
67
+ #: ../Doc/c-api/contextvars.rst:62
57
68
msgid ""
58
69
"Return true if *o* is of type :c:data:`PyContext_Type`. *o* must not be "
59
70
"*NULL*. This function always succeeds."
60
71
msgstr ""
61
72
62
- #: ../Doc/c-api/contextvars.rst:48
73
+ #: ../Doc/c-api/contextvars.rst:67
63
74
msgid ""
64
75
"Return true if *o* is of type :c:data:`PyContextVar_Type`. *o* must not be "
65
76
"*NULL*. This function always succeeds."
66
77
msgstr ""
67
78
68
- #: ../Doc/c-api/contextvars.rst:53
79
+ #: ../Doc/c-api/contextvars.rst:72
69
80
msgid ""
70
81
"Return true if *o* is of type :c:data:`PyContextToken_Type`. *o* must not be "
71
82
"*NULL*. This function always succeeds."
72
83
msgstr ""
73
84
74
- #: ../Doc/c-api/contextvars.rst:57
85
+ #: ../Doc/c-api/contextvars.rst:76
75
86
msgid "Context object management functions:"
76
87
msgstr ""
77
88
78
- #: ../Doc/c-api/contextvars.rst:61
89
+ #: ../Doc/c-api/contextvars.rst:80
79
90
msgid ""
80
91
"Create a new empty context object. Returns ``NULL`` if an error has "
81
92
"occurred."
82
93
msgstr ""
83
94
84
- #: ../Doc/c-api/contextvars.rst:66
95
+ #: ../Doc/c-api/contextvars.rst:85
85
96
msgid ""
86
97
"Create a shallow copy of the passed *ctx* context object. Returns ``NULL`` "
87
98
"if an error has occurred."
88
99
msgstr ""
89
100
90
- #: ../Doc/c-api/contextvars.rst:71
101
+ #: ../Doc/c-api/contextvars.rst:90
91
102
msgid ""
92
103
"Create a shallow copy of the current thread context. Returns ``NULL`` if an "
93
104
"error has occurred."
94
105
msgstr ""
95
106
96
- #: ../Doc/c-api/contextvars.rst:76
107
+ #: ../Doc/c-api/contextvars.rst:95
97
108
msgid ""
98
109
"Set *ctx* as the current context for the current thread. Returns ``0`` on "
99
110
"success, and ``-1`` on error."
100
111
msgstr ""
101
112
102
- #: ../Doc/c-api/contextvars.rst:81
113
+ #: ../Doc/c-api/contextvars.rst:100
103
114
msgid ""
104
115
"Deactivate the *ctx* context and restore the previous context as the current "
105
116
"context for the current thread. Returns ``0`` on success, and ``-1`` on "
106
117
"error."
107
118
msgstr ""
108
119
109
- #: ../Doc/c-api/contextvars.rst:87
120
+ #: ../Doc/c-api/contextvars.rst:106
110
121
msgid ""
111
122
"Clear the context variable free list. Return the total number of freed "
112
123
"items. This function always succeeds."
113
124
msgstr ""
114
125
115
- #: ../Doc/c-api/contextvars.rst:91
126
+ #: ../Doc/c-api/contextvars.rst:110
116
127
msgid "Context variable functions:"
117
128
msgstr ""
118
129
119
- #: ../Doc/c-api/contextvars.rst:95
130
+ #: ../Doc/c-api/contextvars.rst:114
120
131
msgid ""
121
132
"Create a new ``ContextVar`` object. The *name* parameter is used for "
122
133
"introspection and debug purposes. The *def* parameter may optionally "
123
134
"specify the default value for the context variable. If an error has "
124
135
"occurred, this function returns ``NULL``."
125
136
msgstr ""
126
137
127
- #: ../Doc/c-api/contextvars.rst:102
138
+ #: ../Doc/c-api/contextvars.rst:121
128
139
msgid ""
129
140
"Get the value of a context variable. Returns ``-1`` if an error has "
130
141
"occurred during lookup, and ``0`` if no error occurred, whether or not a "
131
142
"value was found."
132
143
msgstr ""
133
144
134
- #: ../Doc/c-api/contextvars.rst:106
145
+ #: ../Doc/c-api/contextvars.rst:125
135
146
msgid ""
136
147
"If the context variable was found, *value* will be a pointer to it. If the "
137
148
"context variable was *not* found, *value* will point to:"
138
149
msgstr ""
139
150
140
- #: ../Doc/c-api/contextvars.rst:109
151
+ #: ../Doc/c-api/contextvars.rst:128
141
152
msgid "*default_value*, if not ``NULL``;"
142
153
msgstr ""
143
154
144
- #: ../Doc/c-api/contextvars.rst:110
155
+ #: ../Doc/c-api/contextvars.rst:129
145
156
msgid "the default value of *var*, if not ``NULL``;"
146
157
msgstr ""
147
158
148
- #: ../Doc/c-api/contextvars.rst:111
159
+ #: ../Doc/c-api/contextvars.rst:130
149
160
msgid "``NULL``"
150
161
msgstr "``NULL``"
151
162
152
- #: ../Doc/c-api/contextvars.rst:113
163
+ #: ../Doc/c-api/contextvars.rst:132
153
164
msgid "If the value was found, the function will create a new reference to it."
154
165
msgstr ""
155
166
156
- #: ../Doc/c-api/contextvars.rst:117
167
+ #: ../Doc/c-api/contextvars.rst:136
157
168
msgid ""
158
169
"Set the value of *var* to *value* in the current context. Returns a pointer "
159
- "to a :c:type:`PyContextToken ` object, or ``NULL`` if an error has occurred."
170
+ "to a :c:type:`PyObject ` object, or ``NULL`` if an error has occurred."
160
171
msgstr ""
161
172
162
- #: ../Doc/c-api/contextvars.rst:123
173
+ #: ../Doc/c-api/contextvars.rst:142
163
174
msgid ""
164
175
"Reset the state of the *var* context variable to that it was in before :c:"
165
176
"func:`PyContextVar_Set` that returned the *token* was called. This function "
0 commit comments