-
-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathcobject.po
More file actions
95 lines (86 loc) · 4.18 KB
/
cobject.po
File metadata and controls
95 lines (86 loc) · 4.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 1990-2021, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
# Translators:
# 秘湯 <xwhhsprings@gmail.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Python 2.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-01-01 01:01+0900\n"
"PO-Revision-Date: 2017-09-22 17:56+0000\n"
"Last-Translator: 秘湯 <xwhhsprings@gmail.com>\n"
"Language-Team: Japanese (http://www.transifex.com/python-doc/python-27/"
"language/ja/)\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: ../../c-api/cobject.rst:6
msgid "CObjects"
msgstr "Cオブジェクト (CObject)"
#: ../../c-api/cobject.rst:13
msgid ""
"The CObject API is deprecated as of Python 2.7. Please switch to the new :"
"ref:`capsules` API."
msgstr ""
"CObject API は Python 2.7 から非推奨になりました。新しい :ref:`capsules` API"
"へ移行してください。"
#: ../../c-api/cobject.rst:18
msgid ""
"This subtype of :c:type:`PyObject` represents an opaque value, useful for C "
"extension modules who need to pass an opaque value (as a :c:type:`void\\*` "
"pointer) through Python code to other C code. It is often used to make a C "
"function pointer defined in one module available to other modules, so the "
"regular import mechanism can be used to access C APIs defined in dynamically "
"loaded modules."
msgstr ""
"この :c:type:`PyObject` のサブタイプは、任意の値を表し、C拡張モジュールから "
"Pythonコードを経由して他のC言語のコードに任意の値を(:c:type:`void\\*` ポイン"
"タの形で)渡す必要があるときに有用です。あるモジュール内で定義されているC言語"
"関数のポインタを、他のモジュールに渡してそこから呼び出せるようにするためによ"
"く使われます。これにより、動的にロードされるモジュールの中の C API に通常の "
"import 機構を通してアクセスすることができます。"
#: ../../c-api/cobject.rst:28
msgid "Return true if its argument is a :c:type:`PyCObject`."
msgstr "引数が :c:type:`PyCObject` の場合に真を返します。"
#: ../../c-api/cobject.rst:33
msgid ""
"Create a :c:type:`PyCObject` from the ``void *`` *cobj*. The *destr* "
"function will be called when the object is reclaimed, unless it is *NULL*."
msgstr ""
"``void*`` *cobj* から :c:type:`PyCObject` を生成します。関数 *destr* が "
"*NULL* でない場合、オブジェクトが回収される際に呼び出されます。"
#: ../../c-api/cobject.rst:39
msgid ""
"Create a :c:type:`PyCObject` from the :c:type:`void \\*` *cobj*. The "
"*destr* function will be called when the object is reclaimed. The *desc* "
"argument can be used to pass extra callback data for the destructor function."
msgstr ""
"``void*`` *cobj* から :c:type:`PyCObject` を生成します。関数 *destr* が "
"*NULL* でない場合、オブジェクトが回収される際に呼び出されます。引数 *desc* を"
"使って、デストラクタ関数に追加のコールバックデータを渡せます。"
#: ../../c-api/cobject.rst:46
msgid ""
"Return the object :c:type:`void \\*` that the :c:type:`PyCObject` *self* was "
"created with."
msgstr ""
":c:type:`PyCObject` オブジェクト *self* を生成するのに用いたオブジェクト :c:"
"type:`void \\*` を返します。"
#: ../../c-api/cobject.rst:52
msgid ""
"Return the description :c:type:`void \\*` that the :c:type:`PyCObject` "
"*self* was created with."
msgstr ""
":c:type:`PyCObject` オブジェクト *self* を生成するのに用いたコールバックデー"
"タ :c:type:`void \\*` を返します。"
#: ../../c-api/cobject.rst:58
msgid ""
"Set the void pointer inside *self* to *cobj*. The :c:type:`PyCObject` must "
"not have an associated destructor. Return true on success, false on failure."
msgstr ""
"*self* 内の void ポインタに *cobj* をセットします。 :c:type:`PyCObject` にデ"
"ストラクタが関連づけられていてはなりません。成功すると真値を返し、失敗すると"
"偽値を返します。"