| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 37a2df0 commit f433f4e
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ msgid "" | |||
| 13 | 13 | msgstr "" | |
| 14 | 14 | "Project-Id-Version: Python 3.9\n" | |
| 15 | 15 | "Report-Msgid-Bugs-To: \n" | |
| 16 | - "POT-Creation-Date: 2021-01-01 05:02+0000\n" | ||
| 16 | + "POT-Creation-Date: 2021-05-29 06:28+0000\n" | ||
| 17 | 17 | "PO-Revision-Date: 2017-02-16 17:35+0000\n" | |
| 18 | 18 | "Last-Translator: tomo, 2020\n" | |
| 19 | 19 | "Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n" | |
@@ -82,23 +82,41 @@ msgstr "" | |||
| 82 | 82 | "他のコンテナへの参照が入るかもしれないフィールドが全て初期化されたら、すぐに :c:func:`PyObject_GC_Track` " | |
| 83 | 83 | "を呼び出さなければなりません。" | |
| 84 | 84 | ||
| 85 | - #: ../../c-api/gcsupport.rst:39 | ||
| 85 | + #: ../../c-api/gcsupport.rst:37 | ||
| 86 | + msgid "" | ||
| 87 | + "If a type adds the Py_TPFLAGS_HAVE_GC, then it *must* implement at least a " | ||
| 88 | + ":c:member:`~PyTypeObject.tp_traverse` handler or explicitly use one from its" | ||
| 89 | + " subclass or subclasses." | ||
| 90 | + msgstr "" | ||
| 91 | + | ||
| 92 | + #: ../../c-api/gcsupport.rst:41 | ||
| 93 | + msgid "" | ||
| 94 | + "When calling :c:func:`PyType_Ready` or some of the APIs that indirectly call" | ||
| 95 | + " it like :c:func:`PyType_FromSpecWithBases` or :c:func:`PyType_FromSpec` the" | ||
| 96 | + " interpreter will automatically populate the " | ||
| 97 | + ":c:member:`~PyTypeObject.tp_flags`, :c:member:`~PyTypeObject.tp_traverse` " | ||
| 98 | + "and :c:member:`~PyTypeObject.tp_clear` fields if the type inherits from a " | ||
| 99 | + "class that implements the garbage collector protocol and the child class " | ||
| 100 | + "does *not* include the :const:`Py_TPFLAGS_HAVE_GC` flag." | ||
| 101 | + msgstr "" | ||
| 102 | + | ||
| 103 | + #: ../../c-api/gcsupport.rst:51 | ||
| 86 | 104 | msgid "" | |
| 87 | 105 | "Analogous to :c:func:`PyObject_New` but for container objects with the " | |
| 88 | 106 | ":const:`Py_TPFLAGS_HAVE_GC` flag set." | |
| 89 | 107 | msgstr "" | |
| 90 | 108 | ":c:func:`PyObject_New` に似ていますが、 :const:`Py_TPFLAGS_HAVE_GC` " | |
| 91 | 109 | "のセットされたコンテナオブジェクト用です。" | |
| 92 | 110 | ||
| 93 | - #: ../../c-api/gcsupport.rst:45 | ||
| 111 | + #: ../../c-api/gcsupport.rst:57 | ||
| 94 | 112 | msgid "" | |
| 95 | 113 | "Analogous to :c:func:`PyObject_NewVar` but for container objects with the " | |
| 96 | 114 | ":const:`Py_TPFLAGS_HAVE_GC` flag set." | |
| 97 | 115 | msgstr "" | |
| 98 | 116 | ":c:func:`PyObject_NewVar` に似ていますが、 :const:`Py_TPFLAGS_HAVE_GC` " | |
| 99 | 117 | "のセットされたコンテナオブジェクト用です。" | |
| 100 | 118 | ||
| 101 | - #: ../../c-api/gcsupport.rst:51 | ||
| 119 | + #: ../../c-api/gcsupport.rst:63 | ||
| 102 | 120 | msgid "" | |
| 103 | 121 | "Resize an object allocated by :c:func:`PyObject_NewVar`. Returns the " | |
| 104 | 122 | "resized object or ``NULL`` on failure. *op* must not be tracked by the " | |
@@ -108,7 +126,7 @@ msgstr "" | |||
| 108 | 126 | "リサイズされたオブジェクトを返します。失敗すると ``NULL`` を返します。\n" | |
| 109 | 127 | "*op* はコレクタに追跡されていてはなりません。" | |
| 110 | 128 | ||
| 111 | - #: ../../c-api/gcsupport.rst:57 | ||
| 129 | + #: ../../c-api/gcsupport.rst:69 | ||
| 112 | 130 | msgid "" | |
| 113 | 131 | "Adds the object *op* to the set of container objects tracked by the " | |
| 114 | 132 | "collector. The collector can run at unexpected times so objects must be " | |
@@ -121,64 +139,64 @@ msgstr "" | |||
| 121 | 139 | " :c:member:`~PyTypeObject.tp_traverse` " | |
| 122 | 140 | "の対象となる全てのフィールドが正しい状態になってすぐに、たいていはコンストラクタの末尾付近で、呼び出すべきです。" | |
| 123 | 141 | ||
| 124 | - #: ../../c-api/gcsupport.rst:66 | ||
| 142 | + #: ../../c-api/gcsupport.rst:78 | ||
| 125 | 143 | msgid "" | |
| 126 | 144 | "Returns non-zero if the object implements the garbage collector protocol, " | |
| 127 | 145 | "otherwise returns 0." | |
| 128 | 146 | msgstr "" | |
| 129 | 147 | ||
| 130 | - #: ../../c-api/gcsupport.rst:69 | ||
| 148 | + #: ../../c-api/gcsupport.rst:81 | ||
| 131 | 149 | msgid "" | |
| 132 | 150 | "The object cannot be tracked by the garbage collector if this function " | |
| 133 | 151 | "returns 0." | |
| 134 | 152 | msgstr "" | |
| 135 | 153 | ||
| 136 | - #: ../../c-api/gcsupport.rst:74 | ||
| 154 | + #: ../../c-api/gcsupport.rst:86 | ||
| 137 | 155 | msgid "" | |
| 138 | 156 | "Returns 1 if the object type of *op* implements the GC protocol and *op* is " | |
| 139 | 157 | "being currently tracked by the garbage collector and 0 otherwise." | |
| 140 | 158 | msgstr "" | |
| 141 | 159 | ||
| 142 | - #: ../../c-api/gcsupport.rst:77 | ||
| 160 | + #: ../../c-api/gcsupport.rst:89 | ||
| 143 | 161 | msgid "This is analogous to the Python function :func:`gc.is_tracked`." | |
| 144 | 162 | msgstr "" | |
| 145 | 163 | ||
| 146 | - #: ../../c-api/gcsupport.rst:84 | ||
| 164 | + #: ../../c-api/gcsupport.rst:96 | ||
| 147 | 165 | msgid "" | |
| 148 | 166 | "Returns 1 if the object type of *op* implements the GC protocol and *op* has" | |
| 149 | 167 | " been already finalized by the garbage collector and 0 otherwise." | |
| 150 | 168 | msgstr "" | |
| 151 | 169 | ||
| 152 | - #: ../../c-api/gcsupport.rst:87 | ||
| 170 | + #: ../../c-api/gcsupport.rst:99 | ||
| 153 | 171 | msgid "This is analogous to the Python function :func:`gc.is_finalized`." | |
| 154 | 172 | msgstr "" | |
| 155 | 173 | ||
| 156 | - #: ../../c-api/gcsupport.rst:91 | ||
| 174 | + #: ../../c-api/gcsupport.rst:103 | ||
| 157 | 175 | msgid "" | |
| 158 | 176 | "Similarly, the deallocator for the object must conform to a similar pair of " | |
| 159 | 177 | "rules:" | |
| 160 | 178 | msgstr "同様に、オブジェクトのメモリ解放関数も以下の二つの規則に適合しなければなりません:" | |
| 161 | 179 | ||
| 162 | - #: ../../c-api/gcsupport.rst:94 | ||
| 180 | + #: ../../c-api/gcsupport.rst:106 | ||
| 163 | 181 | msgid "" | |
| 164 | 182 | "Before fields which refer to other containers are invalidated, " | |
| 165 | 183 | ":c:func:`PyObject_GC_UnTrack` must be called." | |
| 166 | 184 | msgstr "" | |
| 167 | 185 | "他のコンテナを参照しているフィールドを無効化する前に、 :c:func:`PyObject_GC_UnTrack` を呼び出さなければなりません。" | |
| 168 | 186 | ||
| 169 | - #: ../../c-api/gcsupport.rst:97 | ||
| 187 | + #: ../../c-api/gcsupport.rst:109 | ||
| 170 | 188 | msgid "" | |
| 171 | 189 | "The object's memory must be deallocated using :c:func:`PyObject_GC_Del`." | |
| 172 | 190 | msgstr "オブジェクトのメモリは :c:func:`PyObject_GC_Del` で解放しなければなりません。" | |
| 173 | 191 | ||
| 174 | - #: ../../c-api/gcsupport.rst:102 | ||
| 192 | + #: ../../c-api/gcsupport.rst:114 | ||
| 175 | 193 | msgid "" | |
| 176 | 194 | "Releases memory allocated to an object using :c:func:`PyObject_GC_New` or " | |
| 177 | 195 | ":c:func:`PyObject_GC_NewVar`." | |
| 178 | 196 | msgstr "" | |
| 179 | 197 | ":c:func:`PyObject_GC_New` や :c:func:`PyObject_GC_NewVar` を使って確保されたメモリを解放します。" | |
| 180 | 198 | ||
| 181 | - #: ../../c-api/gcsupport.rst:108 | ||
| 199 | + #: ../../c-api/gcsupport.rst:120 | ||
| 182 | 200 | msgid "" | |
| 183 | 201 | "Remove the object *op* from the set of container objects tracked by the " | |
| 184 | 202 | "collector. Note that :c:func:`PyObject_GC_Track` can be called again on " | |
@@ -192,21 +210,21 @@ msgstr "" | |||
| 192 | 210 | ":c:member:`~PyTypeObject.tp_traverse` ハンドラの対象となるフィールドが正しくない状態になる前に、デアロケータ " | |
| 193 | 211 | "(:c:member:`~PyTypeObject.tp_dealloc` ハンドラ) はオブジェクトに対して、この関数を呼び出すべきです。" | |
| 194 | 212 | ||
| 195 | - #: ../../c-api/gcsupport.rst:117 | ||
| 213 | + #: ../../c-api/gcsupport.rst:129 | ||
| 196 | 214 | msgid "" | |
| 197 | 215 | "The :c:func:`_PyObject_GC_TRACK` and :c:func:`_PyObject_GC_UNTRACK` macros " | |
| 198 | 216 | "have been removed from the public C API." | |
| 199 | 217 | msgstr "" | |
| 200 | 218 | ":c:func:`_PyObject_GC_TRACK` マクロと :c:func:`_PyObject_GC_UNTRACK` マクロは公開 C " | |
| 201 | 219 | "API から外されました。" | |
| 202 | 220 | ||
| 203 | - #: ../../c-api/gcsupport.rst:120 | ||
| 221 | + #: ../../c-api/gcsupport.rst:132 | ||
| 204 | 222 | msgid "" | |
| 205 | 223 | "The :c:member:`~PyTypeObject.tp_traverse` handler accepts a function " | |
| 206 | 224 | "parameter of this type:" | |
| 207 | 225 | msgstr ":c:member:`~PyTypeObject.tp_traverse` ハンドラはこの型の関数パラメータを受け取ります:" | |
| 208 | 226 | ||
| 209 | - #: ../../c-api/gcsupport.rst:125 | ||
| 227 | + #: ../../c-api/gcsupport.rst:137 | ||
| 210 | 228 | msgid "" | |
| 211 | 229 | "Type of the visitor function passed to the " | |
| 212 | 230 | ":c:member:`~PyTypeObject.tp_traverse` handler. The function should be called" | |
@@ -221,13 +239,13 @@ msgstr "" | |||
| 221 | 239 | "のコアはいくつかのビジター関数を使って、ゴミとなった循環参照を検出する仕組みを実装します; " | |
| 222 | 240 | "ユーザが自身のためにビジター関数を書く必要が出てくることはないでしょう。" | |
| 223 | 241 | ||
| 224 | - #: ../../c-api/gcsupport.rst:132 | ||
| 242 | + #: ../../c-api/gcsupport.rst:144 | ||
| 225 | 243 | msgid "" | |
| 226 | 244 | "The :c:member:`~PyTypeObject.tp_traverse` handler must have the following " | |
| 227 | 245 | "type:" | |
| 228 | 246 | msgstr ":c:member:`~PyTypeObject.tp_traverse` ハンドラは次の型を持っていなければなりません:" | |
| 229 | 247 | ||
| 230 | - #: ../../c-api/gcsupport.rst:137 | ||
| 248 | + #: ../../c-api/gcsupport.rst:149 | ||
| 231 | 249 | msgid "" | |
| 232 | 250 | "Traversal function for a container object. Implementations must call the " | |
| 233 | 251 | "*visit* function for each object directly contained by *self*, with the " | |
@@ -242,7 +260,7 @@ msgstr "" | |||
| 242 | 260 | "*visit* 関数は ``NULL`` オブジェクトを引数に渡して呼び出してはなりません。\n" | |
| 243 | 261 | "*visit* が非ゼロの値を返す場合、エラーが発生し、戻り値をそのまま返すようにしなければなりません。" | |
| 244 | 262 | ||
| 245 | - #: ../../c-api/gcsupport.rst:144 | ||
| 263 | + #: ../../c-api/gcsupport.rst:156 | ||
| 246 | 264 | msgid "" | |
| 247 | 265 | "To simplify writing :c:member:`~PyTypeObject.tp_traverse` handlers, a " | |
| 248 | 266 | ":c:func:`Py_VISIT` macro is provided. In order to use this macro, the " | |
@@ -253,7 +271,7 @@ msgstr "" | |||
| 253 | 271 | "マクロが提供されています。このマクロを使うためには、 :c:member:`~PyTypeObject.tp_traverse` " | |
| 254 | 272 | "の実装関数の引数は、一文字も違わず *visit* と *arg* でなければなりません:" | |
| 255 | 273 | ||
| 256 | - #: ../../c-api/gcsupport.rst:151 | ||
| 274 | + #: ../../c-api/gcsupport.rst:163 | ||
| 257 | 275 | msgid "" | |
| 258 | 276 | "If *o* is not ``NULL``, call the *visit* callback, with arguments *o* and " | |
| 259 | 277 | "*arg*. If *visit* returns a non-zero value, then return it. Using this " | |
@@ -263,15 +281,15 @@ msgstr "" | |||
| 263 | 281 | "*visit* がゼロでない値を返した場合、その値を返します。\n" | |
| 264 | 282 | "このマクロを使うと、 :c:member:`~PyTypeObject.tp_traverse` ハンドラは次のようになります::" | |
| 265 | 283 | ||
| 266 | - #: ../../c-api/gcsupport.rst:164 | ||
| 284 | + #: ../../c-api/gcsupport.rst:176 | ||
| 267 | 285 | msgid "" | |
| 268 | 286 | "The :c:member:`~PyTypeObject.tp_clear` handler must be of the " | |
| 269 | 287 | ":c:type:`inquiry` type, or ``NULL`` if the object is immutable." | |
| 270 | 288 | msgstr "" | |
| 271 | 289 | ":c:member:`~PyTypeObject.tp_clear` ハンドラは :c:type:`inquiry` 型であるか、オブジェクトが不変 " | |
| 272 | 290 | "(immutable) な場合は ``NULL`` でなければなりません。" | |
| 273 | 291 | ||
| 274 | - #: ../../c-api/gcsupport.rst:170 | ||
| 292 | + #: ../../c-api/gcsupport.rst:182 | ||
| 275 | 293 | msgid "" | |
| 276 | 294 | "Drop references that may have created reference cycles. Immutable objects " | |
| 277 | 295 | "do not have to define this method since they can never directly create " | |
| Back | FazBrowse Home | New Git URL |
0 commit comments