Skip to content

Commit 02ed341

Browse files
committed
v3.7.1
1 parent 63200e7 commit 02ed341

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+21405
-12706
lines changed

c-api/contextvars.po

Lines changed: 51 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
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 ""
2121
msgid "Context Variables Objects"
2222
msgstr ""
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
2537
msgid "This section details the public C API for the :mod:`contextvars` module."
2638
msgstr ""
2739

28-
#: ../Doc/c-api/contextvars.rst:14
40+
#: ../Doc/c-api/contextvars.rst:33
2941
msgid "The C structure used to represent a :class:`contextvars.Context` object."
3042
msgstr ""
3143

32-
#: ../Doc/c-api/contextvars.rst:19
44+
#: ../Doc/c-api/contextvars.rst:38
3345
msgid ""
3446
"The C structure used to represent a :class:`contextvars.ContextVar` "
3547
"object."
3648
msgstr ""
3749

38-
#: ../Doc/c-api/contextvars.rst:24
50+
#: ../Doc/c-api/contextvars.rst:43
3951
msgid "The C structure used to represent a :class:`contextvars.Token` object."
4052
msgstr ""
4153

42-
#: ../Doc/c-api/contextvars.rst:28
54+
#: ../Doc/c-api/contextvars.rst:47
4355
msgid "The type object representing the *context* type."
4456
msgstr ""
4557

46-
#: ../Doc/c-api/contextvars.rst:32
58+
#: ../Doc/c-api/contextvars.rst:51
4759
msgid "The type object representing the *context variable* type."
4860
msgstr ""
4961

50-
#: ../Doc/c-api/contextvars.rst:36
62+
#: ../Doc/c-api/contextvars.rst:55
5163
msgid "The type object representing the *context variable token* type."
5264
msgstr ""
5365

54-
#: ../Doc/c-api/contextvars.rst:39
66+
#: ../Doc/c-api/contextvars.rst:58
5567
msgid "Type-check macros:"
5668
msgstr ""
5769

58-
#: ../Doc/c-api/contextvars.rst:43
70+
#: ../Doc/c-api/contextvars.rst:62
5971
msgid ""
6072
"Return true if *o* is of type :c:data:`PyContext_Type`. *o* must not be "
6173
"*NULL*. This function always succeeds."
6274
msgstr ""
6375

64-
#: ../Doc/c-api/contextvars.rst:48
76+
#: ../Doc/c-api/contextvars.rst:67
6577
msgid ""
6678
"Return true if *o* is of type :c:data:`PyContextVar_Type`. *o* must not "
6779
"be *NULL*. This function always succeeds."
6880
msgstr ""
6981

70-
#: ../Doc/c-api/contextvars.rst:53
82+
#: ../Doc/c-api/contextvars.rst:72
7183
msgid ""
7284
"Return true if *o* is of type :c:data:`PyContextToken_Type`. *o* must not"
7385
" be *NULL*. This function always succeeds."
7486
msgstr ""
7587

76-
#: ../Doc/c-api/contextvars.rst:57
88+
#: ../Doc/c-api/contextvars.rst:76
7789
msgid "Context object management functions:"
7890
msgstr ""
7991

80-
#: ../Doc/c-api/contextvars.rst:61
92+
#: ../Doc/c-api/contextvars.rst:80
8193
msgid ""
8294
"Create a new empty context object. Returns ``NULL`` if an error has "
8395
"occurred."
8496
msgstr ""
8597

86-
#: ../Doc/c-api/contextvars.rst:66
98+
#: ../Doc/c-api/contextvars.rst:85
8799
msgid ""
88100
"Create a shallow copy of the passed *ctx* context object. Returns "
89101
"``NULL`` if an error has occurred."
90102
msgstr ""
91103

92-
#: ../Doc/c-api/contextvars.rst:71
104+
#: ../Doc/c-api/contextvars.rst:90
93105
msgid ""
94106
"Create a shallow copy of the current thread context. Returns ``NULL`` if "
95107
"an error has occurred."
96108
msgstr ""
97109

98-
#: ../Doc/c-api/contextvars.rst:76
110+
#: ../Doc/c-api/contextvars.rst:95
99111
msgid ""
100112
"Set *ctx* as the current context for the current thread. Returns ``0`` on"
101113
" success, and ``-1`` on error."
102114
msgstr ""
103115

104-
#: ../Doc/c-api/contextvars.rst:81
116+
#: ../Doc/c-api/contextvars.rst:100
105117
msgid ""
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."
109121
msgstr ""
110122

111-
#: ../Doc/c-api/contextvars.rst:87
123+
#: ../Doc/c-api/contextvars.rst:106
112124
msgid ""
113125
"Clear the context variable free list. Return the total number of freed "
114126
"items. This function always succeeds."
115127
msgstr ""
116128

117-
#: ../Doc/c-api/contextvars.rst:91
129+
#: ../Doc/c-api/contextvars.rst:110
118130
msgid "Context variable functions:"
119131
msgstr ""
120132

121-
#: ../Doc/c-api/contextvars.rst:95
133+
#: ../Doc/c-api/contextvars.rst:114
122134
msgid ""
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``."
127139
msgstr ""
128140

129-
#: ../Doc/c-api/contextvars.rst:102
141+
#: ../Doc/c-api/contextvars.rst:121
130142
msgid ""
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."
134146
msgstr ""
135147

136-
#: ../Doc/c-api/contextvars.rst:106
148+
#: ../Doc/c-api/contextvars.rst:125
137149
msgid ""
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:"
140152
msgstr ""
141153

142-
#: ../Doc/c-api/contextvars.rst:109
154+
#: ../Doc/c-api/contextvars.rst:128
143155
msgid "*default_value*, if not ``NULL``;"
144156
msgstr ""
145157

146-
#: ../Doc/c-api/contextvars.rst:110
158+
#: ../Doc/c-api/contextvars.rst:129
147159
msgid "the default value of *var*, if not ``NULL``;"
148160
msgstr ""
149161

150-
#: ../Doc/c-api/contextvars.rst:111
162+
#: ../Doc/c-api/contextvars.rst:130
151163
msgid "``NULL``"
152164
msgstr ""
153165

154-
#: ../Doc/c-api/contextvars.rst:113
166+
#: ../Doc/c-api/contextvars.rst:132
155167
msgid "If the value was found, the function will create a new reference to it."
156168
msgstr ""
157169

158-
#: ../Doc/c-api/contextvars.rst:117
170+
#: ../Doc/c-api/contextvars.rst:136
159171
msgid ""
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."
163175
msgstr ""
164176

165-
#: ../Doc/c-api/contextvars.rst:123
177+
#: ../Doc/c-api/contextvars.rst:142
166178
msgid ""
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."
170182
msgstr ""
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

Comments
 (0)