88msgstr ""
99"Project-Id-Version : Python 3.7\n "
1010"Report-Msgid-Bugs-To : \n "
11- "POT-Creation-Date : 2018-05-30 09 :56+0900\n "
11+ "POT-Creation-Date : 2018-10-23 06 :56+0900\n "
1212"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
1313"Last-Translator : FULL NAME <EMAIL@ADDRESS>\n "
1414"Language-Team : LANGUAGE <LL@li.org>\n "
@@ -21,151 +21,171 @@ msgstr ""
2121msgid "Context Variables Objects"
2222msgstr ""
2323
24- #: ../Doc/c-api/contextvars.rst:10
24+ #: ../Doc/c-api/contextvars.rst:13
25+ msgid ""
26+ "In Python 3.7.1 the signatures of all context variables C APIs were "
27+ "**changed** to use :c:type:`PyObject` pointers instead of "
28+ ":c:type:`PyContext`, :c:type:`PyContextVar`, and "
29+ ":c:type:`PyContextToken`, e.g.::"
30+ msgstr ""
31+
32+ #: ../Doc/c-api/contextvars.rst:24
33+ msgid "See :issue:`34762` for more details."
34+ msgstr ""
35+
36+ #: ../Doc/c-api/contextvars.rst:29
2537msgid "This section details the public C API for the :mod:`contextvars` module."
2638msgstr ""
2739
28- #: ../Doc/c-api/contextvars.rst:14
40+ #: ../Doc/c-api/contextvars.rst:33
2941msgid "The C structure used to represent a :class:`contextvars.Context` object."
3042msgstr ""
3143
32- #: ../Doc/c-api/contextvars.rst:19
44+ #: ../Doc/c-api/contextvars.rst:38
3345msgid ""
3446"The C structure used to represent a :class:`contextvars.ContextVar` "
3547"object."
3648msgstr ""
3749
38- #: ../Doc/c-api/contextvars.rst:24
50+ #: ../Doc/c-api/contextvars.rst:43
3951msgid "The C structure used to represent a :class:`contextvars.Token` object."
4052msgstr ""
4153
42- #: ../Doc/c-api/contextvars.rst:28
54+ #: ../Doc/c-api/contextvars.rst:47
4355msgid "The type object representing the *context* type."
4456msgstr ""
4557
46- #: ../Doc/c-api/contextvars.rst:32
58+ #: ../Doc/c-api/contextvars.rst:51
4759msgid "The type object representing the *context variable* type."
4860msgstr ""
4961
50- #: ../Doc/c-api/contextvars.rst:36
62+ #: ../Doc/c-api/contextvars.rst:55
5163msgid "The type object representing the *context variable token* type."
5264msgstr ""
5365
54- #: ../Doc/c-api/contextvars.rst:39
66+ #: ../Doc/c-api/contextvars.rst:58
5567msgid "Type-check macros:"
5668msgstr ""
5769
58- #: ../Doc/c-api/contextvars.rst:43
70+ #: ../Doc/c-api/contextvars.rst:62
5971msgid ""
6072"Return true if *o* is of type :c:data:`PyContext_Type`. *o* must not be "
6173"*NULL*. This function always succeeds."
6274msgstr ""
6375
64- #: ../Doc/c-api/contextvars.rst:48
76+ #: ../Doc/c-api/contextvars.rst:67
6577msgid ""
6678"Return true if *o* is of type :c:data:`PyContextVar_Type`. *o* must not "
6779"be *NULL*. This function always succeeds."
6880msgstr ""
6981
70- #: ../Doc/c-api/contextvars.rst:53
82+ #: ../Doc/c-api/contextvars.rst:72
7183msgid ""
7284"Return true if *o* is of type :c:data:`PyContextToken_Type`. *o* must not"
7385" be *NULL*. This function always succeeds."
7486msgstr ""
7587
76- #: ../Doc/c-api/contextvars.rst:57
88+ #: ../Doc/c-api/contextvars.rst:76
7789msgid "Context object management functions:"
7890msgstr ""
7991
80- #: ../Doc/c-api/contextvars.rst:61
92+ #: ../Doc/c-api/contextvars.rst:80
8193msgid ""
8294"Create a new empty context object. Returns ``NULL`` if an error has "
8395"occurred."
8496msgstr ""
8597
86- #: ../Doc/c-api/contextvars.rst:66
98+ #: ../Doc/c-api/contextvars.rst:85
8799msgid ""
88100"Create a shallow copy of the passed *ctx* context object. Returns "
89101"``NULL`` if an error has occurred."
90102msgstr ""
91103
92- #: ../Doc/c-api/contextvars.rst:71
104+ #: ../Doc/c-api/contextvars.rst:90
93105msgid ""
94106"Create a shallow copy of the current thread context. Returns ``NULL`` if "
95107"an error has occurred."
96108msgstr ""
97109
98- #: ../Doc/c-api/contextvars.rst:76
110+ #: ../Doc/c-api/contextvars.rst:95
99111msgid ""
100112"Set *ctx* as the current context for the current thread. Returns ``0`` on"
101113" success, and ``-1`` on error."
102114msgstr ""
103115
104- #: ../Doc/c-api/contextvars.rst:81
116+ #: ../Doc/c-api/contextvars.rst:100
105117msgid ""
106118"Deactivate the *ctx* context and restore the previous context as the "
107119"current context for the current thread. Returns ``0`` on success, and "
108120"``-1`` on error."
109121msgstr ""
110122
111- #: ../Doc/c-api/contextvars.rst:87
123+ #: ../Doc/c-api/contextvars.rst:106
112124msgid ""
113125"Clear the context variable free list. Return the total number of freed "
114126"items. This function always succeeds."
115127msgstr ""
116128
117- #: ../Doc/c-api/contextvars.rst:91
129+ #: ../Doc/c-api/contextvars.rst:110
118130msgid "Context variable functions:"
119131msgstr ""
120132
121- #: ../Doc/c-api/contextvars.rst:95
133+ #: ../Doc/c-api/contextvars.rst:114
122134msgid ""
123135"Create a new ``ContextVar`` object. The *name* parameter is used for "
124136"introspection and debug purposes. The *def* parameter may optionally "
125137"specify the default value for the context variable. If an error has "
126138"occurred, this function returns ``NULL``."
127139msgstr ""
128140
129- #: ../Doc/c-api/contextvars.rst:102
141+ #: ../Doc/c-api/contextvars.rst:121
130142msgid ""
131143"Get the value of a context variable. Returns ``-1`` if an error has "
132144"occurred during lookup, and ``0`` if no error occurred, whether or not a "
133145"value was found."
134146msgstr ""
135147
136- #: ../Doc/c-api/contextvars.rst:106
148+ #: ../Doc/c-api/contextvars.rst:125
137149msgid ""
138150"If the context variable was found, *value* will be a pointer to it. If "
139151"the context variable was *not* found, *value* will point to:"
140152msgstr ""
141153
142- #: ../Doc/c-api/contextvars.rst:109
154+ #: ../Doc/c-api/contextvars.rst:128
143155msgid "*default_value*, if not ``NULL``;"
144156msgstr ""
145157
146- #: ../Doc/c-api/contextvars.rst:110
158+ #: ../Doc/c-api/contextvars.rst:129
147159msgid "the default value of *var*, if not ``NULL``;"
148160msgstr ""
149161
150- #: ../Doc/c-api/contextvars.rst:111
162+ #: ../Doc/c-api/contextvars.rst:130
151163msgid "``NULL``"
152164msgstr ""
153165
154- #: ../Doc/c-api/contextvars.rst:113
166+ #: ../Doc/c-api/contextvars.rst:132
155167msgid "If the value was found, the function will create a new reference to it."
156168msgstr ""
157169
158- #: ../Doc/c-api/contextvars.rst:117
170+ #: ../Doc/c-api/contextvars.rst:136
159171msgid ""
160172"Set the value of *var* to *value* in the current context. Returns a "
161- "pointer to a :c:type:`PyContextToken ` object, or ``NULL`` if an error has"
162- " occurred."
173+ "pointer to a :c:type:`PyObject ` object, or ``NULL`` if an error has "
174+ "occurred."
163175msgstr ""
164176
165- #: ../Doc/c-api/contextvars.rst:123
177+ #: ../Doc/c-api/contextvars.rst:142
166178msgid ""
167179"Reset the state of the *var* context variable to that it was in before "
168180":c:func:`PyContextVar_Set` that returned the *token* was called. This "
169181"function returns ``0`` on success and ``-1`` on error."
170182msgstr ""
171183
184+ #~ msgid ""
185+ #~ "Set the value of *var* to *value*"
186+ #~ " in the current context. Returns a"
187+ #~ " pointer to a :c:type:`PyContextToken` "
188+ #~ "object, or ``NULL`` if an error "
189+ #~ "has occurred."
190+ #~ msgstr ""
191+
0 commit comments