Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2ffdb01

Browse files
author
Autobuild bot on TravisCI
committed
[skip ci] Update .po files
1 parent5cd1fcf commit2ffdb01

File tree

7 files changed

+3672
-3654
lines changed

7 files changed

+3672
-3654
lines changed

‎extending/extending.po

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgstr ""
1010
"Report-Msgid-Bugs-To:\n"
1111
"POT-Creation-Date:2018-06-30 05:56+0900\n"
1212
"PO-Revision-Date:YEAR-MO-DA HO:MI+ZONE\n"
13-
"Last-Translator:Nozomu Kaneko <nozom.kaneko@gmail.com>, 2017\n"
13+
"Last-Translator:TAKAHASHI Shuuji <shuuji3@gmail.com>, 2017\n"
1414
"Language-Team:Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n"
1515
"MIME-Version:1.0\n"
1616
"Content-Type:text/plain; charset=UTF-8\n"
@@ -48,7 +48,7 @@ msgstr ""
4848
msgid""
4949
"The compilation of an extension module depends on its intended use as well "
5050
"as on your system setup; details are given in later chapters."
51-
msgstr"拡張モジュールのコンパイル方法は、モジュールの用途やシステムの設定方法に依存します;詳細は後の章で説明します。"
51+
msgstr"拡張モジュールのコンパイル方法は、モジュールの用途やシステムの設定方法に依存します詳細は後の章で説明します。"
5252

5353
#:../../extending/extending.rst:25
5454
msgid""
@@ -62,6 +62,12 @@ msgid ""
6262
"with C code and are more portable between implementations of Python than "
6363
"writing and compiling a C extension module."
6464
msgstr""
65+
"C 拡張のインターフェイスは CPython に固有のものであり、これによる拡張モジュールはほかの Python 実装では動作しません。多くの場合、C "
66+
"拡張を書くことを避けてほかの Python 実装のために移植性を確保することは可能です。たとえば、あなたがしたいことが C "
67+
"ライブラリの関数やシステムコールを呼び出すことである場合、 :mod:`ctypes` あるいは `cffi "
68+
"<https://cffi.readthedocs.io/>`_ ライブラリの利用を検討すべきです。これらのモジュールは C "
69+
"コードとインターフェイスし、C 拡張を書いてコンパイルするのに較べて Python 実装間のより高い移植性をもった Python "
70+
"コードを書かせてくれます。"
6571

6672
#:../../extending/extending.rst:40
6773
msgid"A Simple Example"
@@ -75,6 +81,9 @@ msgid ""
7581
"terminated character string as argument and returns an integer. We want "
7682
"this function to be callable from Python as follows:"
7783
msgstr""
84+
"``spam`` (Monty Python ファンの好物ですね) という名の拡張モジュールを作成することにして、C ライブラリ関数 "
85+
":c:func:`system` に対する Python インターフェイスを作成したいとします。 [#]_ この関数は null "
86+
"で終端されたキャラクタ文字列を引数にとり、整数を返します。この関数を以下のようにして Python から呼び出せるようにしたいとします。"
7887

7988
#:../../extending/extending.rst:53
8089
msgid""
@@ -649,6 +658,10 @@ msgid ""
649658
"the :file:`Modules/` directory of an unpacked source distribution, add a "
650659
"line to the file :file:`Modules/Setup.local` describing your file:"
651660
msgstr""
661+
"動的読み込みを使えなかったり、モジュールを常時 Python "
662+
"インタプリタの一部にしておきたい場合には、インタプリタのビルド設定を変更して再ビルドしなければならなくなるでしょう。Unixでは、幸運なことにこの作業はとても単純です:"
663+
" 単に自作のモジュールファイル (例えば :file:`spammodule.c`) を展開したソース配布物の :file:`Modules/` "
664+
"ディレクトリに置き、 :file:`Modules/Setup.local` に自分のファイルを説明する以下の一行:"
652665

653666
#:../../extending/extending.rst:450
654667
msgid""
@@ -667,7 +680,7 @@ msgstr ""
667680
msgid""
668681
"If your module requires additional libraries to link with, these can be "
669682
"listed on the line in the configuration file as well, for instance:"
670-
msgstr""
683+
msgstr"モジュールが別のライブラリとリンクされている必要がある場合、ライブラリも設定ファイルに列挙できます。例えば以下のようにします。"
671684

672685
#:../../extending/extending.rst:467
673686
msgid"Calling Python Functions from C"
@@ -1154,6 +1167,9 @@ msgid ""
11541167
"borrowed. Using a borrowed reference after the owner has disposed of it "
11551168
"risks using freed memory and should be avoided completely [#]_."
11561169
msgstr""
1170+
"オブジェクトに対する参照は、借用 (:dfn:`borrow`) も可能です。 [#]_ 参照の借用者は、 :c:func:`Py_DECREF` "
1171+
"を呼んではなりません。借用者は、参照の所有者から借用した期間を超えて参照を保持し続けてはなりません。所有者が参照を放棄した後で借用参照を使うと、解放済みメモリを使用してしまう危険があるので、絶対に避けねばなりません。"
1172+
" [#]_"
11571173

11581174
#:../../extending/extending.rst:929
11591175
msgid""
@@ -1418,6 +1434,8 @@ msgid ""
14181434
" C functions (``args`` in the examples) is never *NULL* --- in fact it "
14191435
"guarantees that it is always a tuple [#]_."
14201436
msgstr""
1437+
"Python から C 関数を呼び出す機構は、C 関数に渡される引数リスト (例でいうところの ``args``) が決して *NULL* "
1438+
"にならないよう保証しています --- 実際には、常にタプル型になるよう保証しています。[#]_"
14211439

14221440
#:../../extending/extending.rst:1100
14231441
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp