11# SOME DESCRIPTIVE TITLE.
22# Copyright (C) 1990-2021, Python Software Foundation
33# This file is distributed under the same license as the Python package.
4- #
4+ #
55# Translators:
66# tomo, 2017
77# 秘湯 <xwhhsprings@gmail.com>, 2016
@@ -12,11 +12,12 @@ msgstr ""
1212"POT-Creation-Date :2021-01-01 01:01+0900\n "
1313"PO-Revision-Date :2018-01-20 20:53+0000\n "
1414"Last-Translator :tomo\n "
15- "Language-Team :Japanese (http://www.transifex.com/python-doc/python-27/language/ja/)\n "
15+ "Language-Team :Japanese (http://www.transifex.com/python-doc/python-27/ "
16+ "language/ja/)\n "
17+ "Language :ja\n "
1618"MIME-Version :1.0\n "
1719"Content-Type :text/plain; charset=UTF-8\n "
1820"Content-Transfer-Encoding :8bit\n "
19- "Language :ja\n "
2021"Plural-Forms :nplurals=1; plural=0;\n "
2122
2223#: ../../c-api/allocation.rst:6
@@ -28,7 +29,9 @@ msgstr "オブジェクトをヒープ上にメモリ確保する"
2829msgid ""
2930"This function used an :c:type:`int` type for *size*. This might require "
3031"changes in your code for properly supporting 64-bit systems."
31- msgstr "この関数は以前は *size* の型に :c:type:`int` を利用していました。この変更により、 64bit システムを正しくサポートするには修正が必要になります。"
32+ msgstr ""
33+ "この関数は以前は *size* の型に :c:type:`int` を利用していました。この変更によ"
34+ "り、 64bit システムを正しくサポートするには修正が必要になります。"
3235
3336#: ../../c-api/allocation.rst:24
3437msgid ""
@@ -37,84 +40,126 @@ msgid ""
3740"object participates in the cyclic garbage detector, it is added to the "
3841"detector's set of observed objects. Other fields of the object are not "
3942"affected."
40- msgstr "新たにメモリ確保されたオブジェクト *op* に対し、型と初期状態での参照 (initial reference) を初期化します。初期化されたオブジェクトを返します。*type* からそのオブジェクトが循環参照ガベージ検出の機能を有する場合、検出機構が監視対象とするオブジェクトのセットに追加されます。オブジェクトの他のフィールドには影響を及ぼしません。"
43+ msgstr ""
44+ "新たにメモリ確保されたオブジェクト *op* に対し、型と初期状態での参照 "
45+ "(initial reference) を初期化します。初期化されたオブジェクトを返します。"
46+ "*type* からそのオブジェクトが循環参照ガベージ検出の機能を有する場合、検出機構"
47+ "が監視対象とするオブジェクトのセットに追加されます。オブジェクトの他のフィー"
48+ "ルドには影響を及ぼしません。"
4149
4250#: ../../c-api/allocation.rst:33
4351msgid ""
4452"This does everything :c:func:`PyObject_Init` does, and also initializes the "
4553"length information for a variable-size object."
46- msgstr ":c:func:`PyObject_Init` の全ての処理を行い、可変サイズオブジェクトの場合には長さ情報も初期化します。"
54+ msgstr ""
55+ ":c:func:`PyObject_Init` の全ての処理を行い、可変サイズオブジェクトの場合には"
56+ "長さ情報も初期化します。"
4757
4858#: ../../c-api/allocation.rst:43
4959msgid ""
5060"Allocate a new Python object using the C structure type *TYPE* and the "
5161"Python type object *type*. Fields not defined by the Python object header "
5262"are not initialized; the object's reference count will be one. The size of "
53- "the memory allocation is determined from the "
54- ":c:member:`~PyTypeObject.tp_basicsize` field of the type object."
55- msgstr "C 構造体型 *TYPE* と Python型オブジェクト *type* を使って、新しい Python オブジェクトをメモリ上に確保します。Pythonオブジェクトヘッダで定義されていないフィールドは初期化されません; オブジェクトの参照カウントは 1 になります。確保するメモリのサイズは型オブジェクトの :c:member:`~PyTypeObject.tp_basicsize` フィールドで決まります。"
63+ "the memory allocation is determined from the :c:member:`~PyTypeObject."
64+ "tp_basicsize` field of the type object."
65+ msgstr ""
66+ "C 構造体型 *TYPE* と Python型オブジェクト *type* を使って、新しい Python オブ"
67+ "ジェクトをメモリ上に確保します。Pythonオブジェクトヘッダで定義されていない"
68+ "フィールドは初期化されません; オブジェクトの参照カウントは 1 になります。確保"
69+ "するメモリのサイズは型オブジェクトの :c:member:`~PyTypeObject.tp_basicsize` "
70+ "フィールドで決まります。"
5671
5772#: ../../c-api/allocation.rst:52
5873msgid ""
5974"Allocate a new Python object using the C structure type *TYPE* and the "
6075"Python type object *type*. Fields not defined by the Python object header "
6176"are not initialized. The allocated memory allows for the *TYPE* structure "
62- "plus *size* fields of the size given by the "
63- ":c:member:`~PyTypeObject.tp_itemsize` field of *type*. This is useful for "
64- "implementing objects like tuples, which are able to determine their size at "
65- "construction time. Embedding the array of fields into the same allocation "
66- "decreases the number of allocations, improving the memory management "
67- "efficiency."
68- msgstr "C 構造体型 *TYPE* と Python 型オブジェクト *type* を使って新しい Python オブジェクトをメモリ上に確保します。 Python オブジェクトヘッダで定義されていないフィールドは初期化されません。確保されたメモリは、 *TYPE* 構造体に加え、*type* の :c:member:`~PyTypeObject.tp_itemsize` フィールドで指定されているサイズを *size* 個分の大きさを格納できます。この関数は、例えばタプルのように生成時にサイズを決定できるオブジェクトを実装する際に便利です。一連の複数のフィールドのメモリ割り当てを一度で行うことでアロケーション回数を減らし、メモリ管理の効率が向上します。"
77+ "plus *size* fields of the size given by the :c:member:`~PyTypeObject."
78+ "tp_itemsize` field of *type*. This is useful for implementing objects like "
79+ "tuples, which are able to determine their size at construction time. "
80+ "Embedding the array of fields into the same allocation decreases the number "
81+ "of allocations, improving the memory management efficiency."
82+ msgstr ""
83+ "C 構造体型 *TYPE* と Python 型オブジェクト *type* を使って新しい Python オブ"
84+ "ジェクトをメモリ上に確保します。 Python オブジェクトヘッダで定義されていない"
85+ "フィールドは初期化されません。確保されたメモリは、 *TYPE* 構造体に加え、"
86+ "*type* の :c:member:`~PyTypeObject.tp_itemsize` フィールドで指定されているサ"
87+ "イズを *size* 個分の大きさを格納できます。この関数は、例えばタプルのように生"
88+ "成時にサイズを決定できるオブジェクトを実装する際に便利です。一連の複数の"
89+ "フィールドのメモリ割り当てを一度で行うことでアロケーション回数を減らし、メモ"
90+ "リ管理の効率が向上します。"
6991
7092#: ../../c-api/allocation.rst:68
7193msgid ""
72- "Releases memory allocated to an object using :c:func:`PyObject_New` or "
73- ":c:func:`PyObject_NewVar`. This is normally called from the "
74- ":c:member:`~PyTypeObject.tp_dealloc` handler specified in the object's type."
75- " The fields of the object should not be accessed after this call as the "
76- "memory is no longer a valid Python object."
77- msgstr ":c:func:`PyObject_New` や :c:func:`PyObject_NewVar` で 確保したメモリを解放します。通常、この関数はオブジェクトの型に指定されている :c:member:`~PyTypeObject.tp_dealloc` ハンドラから呼び出されます。 この関数を呼び出した後は、メモリ領域はもはや有効な Python オブジェクトを表現していないので、オブジェクトのフィールド に対してアクセスしてはなりません。"
94+ "Releases memory allocated to an object using :c:func:`PyObject_New` or :c:"
95+ "func:`PyObject_NewVar`. This is normally called from the :c:member:"
96+ "`~PyTypeObject.tp_dealloc` handler specified in the object's type. The "
97+ "fields of the object should not be accessed after this call as the memory is "
98+ "no longer a valid Python object."
99+ msgstr ""
100+ ":c:func:`PyObject_New` や :c:func:`PyObject_NewVar` で 確保したメモリを解放し"
101+ "ます。通常、この関数はオブジェクトの型に指定されている :c:member:"
102+ "`~PyTypeObject.tp_dealloc` ハンドラから呼び出されます。 この関数を呼び出した"
103+ "後は、メモリ領域はもはや有効な Python オブジェクトを表現していないので、オブ"
104+ "ジェクトのフィールド に対してアクセスしてはなりません。"
78105
79106#: ../../c-api/allocation.rst:77
80107msgid ""
81- "Create a new module object based on a name and table of functions, returning"
82- " the new module object."
83- msgstr "*name* と関数のテーブルに基づいて新たなモジュールオブジェクトを生成し、生成されたモジュールオブジェクトを返します。"
108+ "Create a new module object based on a name and table of functions, returning "
109+ "the new module object."
110+ msgstr ""
111+ "*name* と関数のテーブルに基づいて新たなモジュールオブジェクトを生成し、生成さ"
112+ "れたモジュールオブジェクトを返します。"
84113
85114#: ../../c-api/allocation.rst:80 ../../c-api/allocation.rst:91
86115#: ../../c-api/allocation.rst:113
87116msgid ""
88117"Older versions of Python did not support *NULL* as the value for the "
89118"*methods* argument."
90- msgstr "以前のバージョンの Python では、 *methods* 引数の値として *NULL* をサポートしていませんでした."
119+ msgstr ""
120+ "以前のバージョンの Python では、 *methods* 引数の値として *NULL* をサポートし"
121+ "ていませんでした."
91122
92123#: ../../c-api/allocation.rst:87
93124msgid ""
94- "Create a new module object based on a name and table of functions, returning"
95- " the new module object. If *doc* is non-*NULL*, it will be used to define "
125+ "Create a new module object based on a name and table of functions, returning "
126+ "the new module object. If *doc* is non-*NULL*, it will be used to define "
96127"the docstring for the module."
97- msgstr "*name* と関数のテーブルに基づいて新たなモジュールオブジェクトを生成し、生成されたモジュールオブジェクトを返します。 *doc* が *NULL* でない場合、モジュールの docstring として使われます。"
128+ msgstr ""
129+ "*name* と関数のテーブルに基づいて新たなモジュールオブジェクトを生成し、生成さ"
130+ "れたモジュールオブジェクトを返します。 *doc* が *NULL* でない場合、モジュール"
131+ "の docstring として使われます。"
98132
99133#: ../../c-api/allocation.rst:98
100134msgid ""
101- "Create a new module object based on a name and table of functions, returning"
102- " the new module object. If *doc* is non-*NULL*, it will be used to define "
103- "the docstring for the module. If *self* is non-*NULL*, it will be passed to"
104- " the functions of the module as their (otherwise *NULL*) first parameter. "
135+ "Create a new module object based on a name and table of functions, returning "
136+ "the new module object. If *doc* is non-*NULL*, it will be used to define "
137+ "the docstring for the module. If *self* is non-*NULL*, it will be passed to "
138+ "the functions of the module as their (otherwise *NULL*) first parameter. "
105139"(This was added as an experimental feature, and there are no known uses in "
106140"the current version of Python.) For *apiver*, the only value which should "
107141"be passed is defined by the constant :const:`PYTHON_API_VERSION`."
108- msgstr "*name* と関数のテーブルに基づいて新たなモジュールオブジェクトを生成し、生成されたモジュールオブジェクトを返します。 *doc* が *NULL* でない場合、モジュールの docstring として使われます。 *self* が *NULL* でない場合、モジュール内の各関数の第一引数として渡されます (*NULL* の時には第一引数も *NULL* になります)。 (この関数は実験的な機能のために追加されたもので、現在の Python のバージョンで使われてはいないはずです。) *apiver* に渡してよい値は、 :const:`PYTHON_API_VERSION` で定義されている定数だけです。"
142+ msgstr ""
143+ "*name* と関数のテーブルに基づいて新たなモジュールオブジェクトを生成し、生成さ"
144+ "れたモジュールオブジェクトを返します。 *doc* が *NULL* でない場合、モジュール"
145+ "の docstring として使われます。 *self* が *NULL* でない場合、モジュール内の各"
146+ "関数の第一引数として渡されます (*NULL* の時には第一引数も *NULL* になりま"
147+ "す)。 (この関数は実験的な機能のために追加されたもので、現在の Python のバー"
148+ "ジョンで使われてはいないはずです。) *apiver* に渡してよい値は、 :const:"
149+ "`PYTHON_API_VERSION` で定義されている定数だけです。"
109150
110151#: ../../c-api/allocation.rst:109
111152msgid ""
112- "Most uses of this function should probably be using the "
113- ":c:func:`Py_InitModule3` instead; only use this if you are sure you need it."
114- msgstr "この関数のほとんどの用途は、代わりに :c:func:`Py_InitModule3` を使えるはずです; 本当にこの関数の必要性を理解しているときにだけ利用してください。"
153+ "Most uses of this function should probably be using the :c:func:"
154+ "`Py_InitModule3` instead; only use this if you are sure you need it."
155+ msgstr ""
156+ "この関数のほとんどの用途は、代わりに :c:func:`Py_InitModule3` を使えるはずで"
157+ "す; 本当にこの関数の必要性を理解しているときにだけ利用してください。"
115158
116159#: ../../c-api/allocation.rst:120
117160msgid ""
118- "Object which is visible in Python as ``None``. This should only be accessed"
119- " using the ``Py_None`` macro, which evaluates to a pointer to this object."
120- msgstr "Python からは ``None`` に見えるオブジェクトです。この値へのアクセスは、このオブジェクトへのポインタを評価する ``Py_None`` マクロを使わねばなりません。"
161+ "Object which is visible in Python as ``None``. This should only be accessed "
162+ "using the ``Py_None`` macro, which evaluates to a pointer to this object."
163+ msgstr ""
164+ "Python からは ``None`` に見えるオブジェクトです。この値へのアクセスは、このオ"
165+ "ブジェクトへのポインタを評価する ``Py_None`` マクロを使わねばなりません。"