8
8
msgstr ""
9
9
"Project-Id-Version : Python 3.7\n "
10
10
"Report-Msgid-Bugs-To : \n "
11
- "POT-Creation-Date : 2018-06-30 05:56 +0900\n "
11
+ "POT-Creation-Date : 2018-09-22 09:14 +0900\n "
12
12
"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
13
13
"Last-Translator : tomo🐧, 2018\n "
14
14
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -22,42 +22,54 @@ msgstr ""
22
22
msgid "Context Variables Objects"
23
23
msgstr "コンテキスト変数オブジェクト"
24
24
25
- #: ../../c-api/contextvars.rst:10
25
+ #: ../../c-api/contextvars.rst:13
26
+ msgid ""
27
+ "In Python 3.7.1 the signatures of all context variables C APIs were "
28
+ "**changed** to use :c:type:`PyObject` pointers instead of "
29
+ ":c:type:`PyContext`, :c:type:`PyContextVar`, and :c:type:`PyContextToken`, "
30
+ "e.g.::"
31
+ msgstr ""
32
+
33
+ #: ../../c-api/contextvars.rst:24
34
+ msgid "See :issue:`34762` for more details."
35
+ msgstr ""
36
+
37
+ #: ../../c-api/contextvars.rst:29
26
38
msgid ""
27
39
"This section details the public C API for the :mod:`contextvars` module."
28
40
msgstr "この節では、 :mod:`contextvars` モジュールの公開 C API の詳細について説明します。"
29
41
30
- #: ../../c-api/contextvars.rst:14
42
+ #: ../../c-api/contextvars.rst:33
31
43
msgid ""
32
44
"The C structure used to represent a :class:`contextvars.Context` object."
33
45
msgstr ":class:`contextvars.Context` オブジェクトを表現するための C 構造体。"
34
46
35
- #: ../../c-api/contextvars.rst:19
47
+ #: ../../c-api/contextvars.rst:38
36
48
msgid ""
37
49
"The C structure used to represent a :class:`contextvars.ContextVar` object."
38
50
msgstr ":class:`contextvars.ContextVar` オブジェクトを表現するための C 構造体。"
39
51
40
- #: ../../c-api/contextvars.rst:24
52
+ #: ../../c-api/contextvars.rst:43
41
53
msgid "The C structure used to represent a :class:`contextvars.Token` object."
42
54
msgstr ":class:`contextvars.Token` オブジェクトを表現するための C 構造体。"
43
55
44
- #: ../../c-api/contextvars.rst:28
56
+ #: ../../c-api/contextvars.rst:47
45
57
msgid "The type object representing the *context* type."
46
58
msgstr "*コンテキスト* 型を表現する型オブジェクト。"
47
59
48
- #: ../../c-api/contextvars.rst:32
60
+ #: ../../c-api/contextvars.rst:51
49
61
msgid "The type object representing the *context variable* type."
50
62
msgstr "*コンテキスト変数* 型を表現する型オブジェクト。"
51
63
52
- #: ../../c-api/contextvars.rst:36
64
+ #: ../../c-api/contextvars.rst:55
53
65
msgid "The type object representing the *context variable token* type."
54
66
msgstr "*コンテキスト変数トークン* 型を表現する型オブジェクト。"
55
67
56
- #: ../../c-api/contextvars.rst:39
68
+ #: ../../c-api/contextvars.rst:58
57
69
msgid "Type-check macros:"
58
70
msgstr "型チェックマクロ:"
59
71
60
- #: ../../c-api/contextvars.rst:43
72
+ #: ../../c-api/contextvars.rst:62
61
73
msgid ""
62
74
"Return true if *o* is of type :c:data:`PyContext_Type`. *o* must not be "
63
75
"*NULL*. This function always succeeds."
@@ -66,7 +78,7 @@ msgstr ""
66
78
"*o* は *NULL* であってはなりません。\n"
67
79
"この関数は常に成功します。"
68
80
69
- #: ../../c-api/contextvars.rst:48
81
+ #: ../../c-api/contextvars.rst:67
70
82
msgid ""
71
83
"Return true if *o* is of type :c:data:`PyContextVar_Type`. *o* must not be "
72
84
"*NULL*. This function always succeeds."
@@ -75,7 +87,7 @@ msgstr ""
75
87
"*o* は *NULL* であってはなりません。\n"
76
88
"この関数は常に成功します。"
77
89
78
- #: ../../c-api/contextvars.rst:53
90
+ #: ../../c-api/contextvars.rst:
6D40
72
79
91
msgid ""
80
92
"Return true if *o* is of type :c:data:`PyContextToken_Type`. *o* must not be"
81
93
" *NULL*. This function always succeeds."
@@ -84,43 +96,43 @@ msgstr ""
84
96
"*o* は *NULL* であってはなりません。\n"
85
97
"この関数は常に成功します。"
86
98
87
- #: ../../c-api/contextvars.rst:57
99
+ #: ../../c-api/contextvars.rst:76
88
100
msgid "Context object management functions:"
89
101
msgstr "コンテキストオブジェクトを取り扱う関数:"
90
102
91
- #: ../../c-api/contextvars.rst:61
103
+ #: ../../c-api/contextvars.rst:80
92
104
msgid ""
93
105
"Create a new empty context object. Returns ``NULL`` if an error has "
94
106
"occurred."
95
107
msgstr ""
96
108
"新しい空のコンテキストオブジェクトを作成します。\n"
97
109
"エラーが起きた場合は ``NULL`` を返します。"
98
110
99
- #: ../../c-api/contextvars.rst:66
111
+ #: ../../c-api/contextvars.rst:85
100
112
msgid ""
101
113
"Create a shallow copy of the passed *ctx* context object. Returns ``NULL`` "
102
114
"if an error has occurred."
103
115
msgstr ""
104
116
"渡された *ctx* コンテキストオブジェクトの浅いコピーを作成します。\n"
105
117
"エラーが起きた場合は ``NULL`` を返します。"
106
118
107
- #: ../../c-api/contextvars.rst:71
119
+ #: ../../c-api/contextvars.rst:90
108
120
msgid ""
109
121
"Create a shallow copy of the current thread context. Returns ``NULL`` if an "
110
122
"error has occurred."
111
123
msgstr ""
112
124
"現在のコンテキストオブジェクトの浅いコピーを作成します。\n"
113
125
"エラーが起きた場合は ``NULL`` を返します。"
114
126
115
- #: ../../c-api/contextvars.rst:76
127
+ #: ../../c-api/contextvars.rst:95
116
128
msgid ""
117
129
"Set *ctx* as the current context for the current thread. Returns ``0`` on "
118
130
"success, and ``-1`` on error."
119
131
msgstr ""
120
132
"*ctx* を現在のスレッドの現在のコンテキストに設定します。\n"
121
133
"成功したら ``0`` を、失敗したら ``-1`` を返します。"
122
134
123
- #: ../../c-api/contextvars.rst:81
135
+ #: ../../c-api/contextvars.rst:100
124
136
msgid ""
125
137
"Deactivate the *ctx* context and restore the previous context as the current"
126
138
" context for the current thread. Returns ``0`` on success, and ``-1`` on "
@@ -129,7 +141,7 @@ msgstr ""
129
141
"*ctx* コンテキストを無効にし、1 つ前のコンテキストを現在のスレッドの現在のコンテキストに復元します。\n"
130
142
"成功したら ``0`` を、失敗したら ``-1`` を返します。"
131
143
132
- #: ../../c-api/contextvars.rst:87
144
+ #: ../../c-api/contextvars.rst:106
133
145
msgid ""
134
146
"Clear the context variable free list. Return the total number of freed "
135
147
"items. This function always succeeds."
@@ -138,11 +150,11 @@ msgstr ""
138
150
"解放された要素数を返します。\n"
139
151
"この関数は常に成功します。"
140
152
141
- #: ../../c-api/contextvars.rst:91
153
+ #: ../../c-api/contextvars.rst:110
142
154
msgid "Context variable functions:"
143
155
msgstr "コンテキスト変数の関数:"
144
156
145
- #: ../../c-api/contextvars.rst:95
157
+ #: ../../c-api/contextvars.rst:114
146
158
msgid ""
147
159
"Create a new ``ContextVar`` object. The *name* parameter is used for "
148
160
"introspection and debug purposes. The *def* parameter may optionally "
@@ -154,7 +166,7 @@ msgstr ""
154
166
"*def* 引数はコンテキスト変数の値を指定しますが、オプションです。\n"
155
167
"エラーが起きた場合は、関数は ``NULL`` を返します。"
156
168
157
- #: ../../c-api/contextvars.rst:102
169
+ #: ../../c-api/contextvars.rst:121
158
170
msgid ""
159
171
"Get the value of a context variable. Returns ``-1`` if an error has "
160
172
"occurred during lookup, and ``0`` if no error occurred, whether or not a "
@@ -163,40 +175,38 @@ msgstr ""
163
175
"コンテキスト変数の値を取得します。\n"
164
176
"取得中にエラーが起きた場合は ``-1`` を、値が見付かっても見付からなくてもエラーが起きなかった場合は ``0`` を返します。"
165
177
166
- #: ../../c-api/contextvars.rst:106
178
+ #: ../../c-api/contextvars.rst:125
167
179
msgid ""
168
180
"If the context variable was found, *value* will be a pointer to it. If the "
169
181
"context variable was *not* found, *value* will point to:"
170
182
msgstr ""
171
183
"コンテキスト変数が見付かった場合、 *value* はそれを指すポインタになっています。\n"
172
184
"コンテキスト変数が見付から *なかった* 場合は、 *value* が指すものは次のようになっています:"
173
185
174
- #: ../../c-api/contextvars.rst:109
186
+ #: ../../c-api/contextvars.rst:128
175
187
msgid "*default_value*, if not ``NULL``;"
176
188
msgstr "(``NULL`` でなければ) *default_value*"
177
189
178
- #: ../../c-api/contextvars.rst:110
190
+ #: ../../c-api/contextvars.rst:129
179
191
msgid "the default value of *var*, if not ``NULL``;"
180
192
msgstr "(``NULL`` でなければ) *var* のデフォルト値"
181
193
182
- #: ../../c-api/contextvars.rst:111
194
+ #: ../../c-api/contextvars.rst:130
183
195
msgid "``NULL``"
184
196
msgstr "``NULL``"
185
197
186
- #: ../../c-api/contextvars.rst:113
198
+ #: ../../c-api/contextvars.rst:132
187
199
msgid ""
188
200
"If the value was found, the function will create a new reference to it."
189
201
msgstr "値が見付かった場合、この関数はその値への新しい参照を作成します。"
190
202
191
- #: ../../c-api/contextvars.rst:117
203
+ #: ../../c-api/contextvars.rst:136
192
204
msgid ""
193
205
"Set the value of *var* to *value* in the current context. Returns a pointer"
194
- " to a :c:type:`PyContextToken ` object, or ``NULL`` if an error has occurred."
206
+ " to a :c:type:`PyObject ` object, or ``NULL`` if an error has occurred."
195
207
msgstr ""
196
- "現在のコンテキストにおいて、 *var* の値に *value* を設定します。\n"
197
- ":c:type:`PyContextToken` オブジェクトへのポインタ、もしくはエラーが起きた場合は ``NULL`` を返します。"
198
208
199
- #: ../../c-api/contextvars.rst:123
209
+ #: ../../c-api/contextvars.rst:142
200
210
msgid ""
201
211
"Reset the state of the *var* context variable to that it was in before "
202
212
":c:func:`PyContextVar_Set` that returned the *token* was called. This "
0 commit comments