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

Commit9ec9562

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

File tree

1 file changed

+31
-5
lines changed

1 file changed

+31
-5
lines changed

‎extending/newtypes_tutorial.po

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# Arihiro TAKASE, 2018
88
# Nozomu Kaneko <nozom.kaneko@gmail.com>, 2018
99
# 秘湯 <xwhhsprings@gmail.com>, 2018
10-
# Osamu NAKAMURA, 2018
1110
# tomo, 2018
11+
# Osamu NAKAMURA, 2019
1212
#
1313
#,fuzzy
1414
msgid ""
@@ -17,7 +17,7 @@ msgstr ""
1717
"Report-Msgid-Bugs-To:\n"
1818
"POT-Creation-Date:2019-04-23 11:14+0900\n"
1919
"PO-Revision-Date:2018-04-08 04:04+0000\n"
20-
"Last-Translator:tomo, 2018\n"
20+
"Last-Translator:Osamu NAKAMURA, 2019\n"
2121
"Language-Team:Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n"
2222
"MIME-Version:1.0\n"
2323
"Content-Type:text/plain; charset=UTF-8\n"
@@ -311,6 +311,8 @@ msgid ""
311311
"to that directory and fire up Python --- you should be able to ``import "
312312
"custom`` and play around with Custom objects."
313313
msgstr""
314+
"すると :file:`custom.so` ファイルがサブディレクトリに生成されます。そのディレクトリに移動して、Pythonを起動します -- これで"
315+
" ``import custom`` して、Custom オブジェクトで遊べるようになっているはずです。"
314316

315317
#:../../extending/newtypes_tutorial.rst:211
316318
msgid"That wasn't so hard, was it?"
@@ -321,6 +323,7 @@ msgid ""
321323
"Of course, the current Custom type is pretty uninteresting. It has no data "
322324
"and doesn't do anything. It can't even be subclassed."
323325
msgstr""
326+
"もちろん、現在の Custom 型は面白みに欠けています。何もデータを持っていないし、何もできません。継承してサブクラスを作ることさえできないのです。"
324327

325328
#:../../extending/newtypes_tutorial.rst:217
326329
msgid""
@@ -331,6 +334,11 @@ msgid ""
331334
"Packaging User's Guide <https://packaging.python.org/tutorials/distributing-"
332335
"packages/>`_."
333336
msgstr""
337+
"この文書では、標準の :mod:`distutils` モジュールを使って C "
338+
"拡張をビルドしていますが、現実のユースケースでは、より新しく、保守されている ``setuptools`` "
339+
"ライブラリを利用することを推奨します。これを行う方法を文書化することはこのドキュメントの範囲外ですので、 `Python Packaging "
340+
"User's Guide <https://packaging.python.org/tutorials/distributing-"
341+
"packages/>`_ を参照してください。"
334342

335343
#:../../extending/newtypes_tutorial.rst:225
336344
msgid"Adding data and methods to the Basic example"
@@ -342,6 +350,8 @@ msgid ""
342350
"make the type usable as a base class. We'll create a new module, "
343351
":mod:`custom2` that adds these capabilities:"
344352
msgstr""
353+
"この基本のサンプルにデータとメソッドを追加してみましょう。ついでに、この型を基底クラスとしても利用できるようにします。ここでは新しいモジュール "
354+
":mod:`custom2` をつくり、これらの機能を追加します:"
345355

346356
#:../../extending/newtypes_tutorial.rst:234
347357
msgid"This version of the module has a number of changes."
@@ -364,6 +374,9 @@ msgid ""
364374
"strings containing first and last names. The *number* attribute is a C "
365375
"integer."
366376
msgstr""
377+
":class:`Custom` 型は そのC構造体に 3つのデータ属性 *first* 、 *last* 、および *number* "
378+
"をもつようになりました。 *first* と *last* 属性はファーストネームとラストネームを格納した Python 文字列で、 *number* "
379+
"属性は C言語での整数の値です。"
367380

368381
#:../../extending/newtypes_tutorial.rst:247
369382
msgid"The object structure is updated accordingly::"
@@ -390,6 +403,11 @@ msgid ""
390403
" might not be :class:`CustomType`, because the object may be an instance of "
391404
"a subclass."
392405
msgstr""
406+
"このメソッドは、まず二つのPython 属性の参照カウントをクリアします。 :c:func:`Py_XDECREF` は引数が *NULL* "
407+
"のケースを正しく扱えます( これは、``tp_new`` が途中で失敗した場合に起こりえます)。つぎにオブジェクトの型 "
408+
"(``Py_TYPE(self)`` で算出します)のメンバ :c:member:`~PyTypeObject.tp_free` "
409+
"を呼び出し、オブジェクトのメモリを開放します。オブジェクトはサブクラスのインスタンスかもしれず、その場合オブジェクトの型が "
410+
":class:`CustomType` とは限らない点に注意してください。"
393411

394412
#:../../extending/newtypes_tutorial.rst:280
395413
msgid""
@@ -404,7 +422,7 @@ msgstr ""
404422
msgid""
405423
"We want to make sure that the first and last names are initialized to empty "
406424
"strings, so we provide a ``tp_new`` implementation::"
407-
msgstr""
425+
msgstr"ファーストネームとラストネームを空文字列に初期化しておきたいので、``tp_new`` の実装を追加することにしましょう::"
408426

409427
#:../../extending/newtypes_tutorial.rst:310
410428
msgid"and install it in the :c:member:`~PyTypeObject.tp_new` member::"
@@ -435,19 +453,22 @@ msgstr ""
435453
msgid""
436454
"``tp_new`` shouldn't call ``tp_init`` explicitly, as the interpreter will do"
437455
" it itself."
438-
msgstr""
456+
msgstr"``tp_new`` は明示的に ``tp_init`` を呼び出してはいけません、これはインタープリタが自分で行うためです。"
439457

440458
#:../../extending/newtypes_tutorial.rst:333
441459
msgid""
442460
"The ``tp_new`` implementation calls the :c:member:`~PyTypeObject.tp_alloc` "
443461
"slot to allocate memory::"
444462
msgstr""
463+
"この ``tp_new`` の実装は、:c:member:`~PyTypeObject.tp_alloc` スロットを呼び出してメモリを割り当てます::"
445464

446465
#:../../extending/newtypes_tutorial.rst:338
447466
msgid""
448467
"Since memory allocation may fail, we must check the "
449468
":c:member:`~PyTypeObject.tp_alloc` result against *NULL* before proceeding."
450469
msgstr""
470+
"メモリ割り当ては失敗するかもしれないので、先に進む前に :c:member:`~PyTypeObject.tp_alloc` "
471+
"の結果がNULLでないかチェックしなければなりません。"
451472

452473
#:../../extending/newtypes_tutorial.rst:342
453474
msgid""
@@ -525,7 +546,7 @@ msgstr ""
525546

526547
#:../../extending/newtypes_tutorial.rst:421
527548
msgid"when we absolutely know that the reference count is greater than 1;"
528-
msgstr""
549+
msgstr"その参照カウントが 1 より大きいと確信できる場合"
529550

530551
#:../../extending/newtypes_tutorial.rst:423
531552
msgid""
@@ -579,6 +600,8 @@ msgid ""
579600
"We define a single method, :meth:`Custom.name()`, that outputs the objects "
580601
"name as the concatenation of the first and last names. ::"
581602
msgstr""
603+
"ここでは :meth:`Custom.name()` と呼ばれるメソッドを定義しましょう。これはファーストネーム first とラストネーム last "
604+
"を連結した文字列をそのオブジェクトの名前として返します。 ::"
582605

583606
#:../../extending/newtypes_tutorial.rst:474
584607
msgid""
@@ -589,6 +612,9 @@ msgid ""
589612
" to accept a positional argument tuple or keyword argument dictionary. This "
590613
"method is equivalent to the Python method:"
591614
msgstr""
615+
"このメソッドは C 関数として実装され、 :class:`Custom` (あるいは :class:`Custom` のサブクラス) "
616+
"のインスタンスを第一引数として受けとります。メソッドはつねにそのインスタンスを最初の引数として受けとらなければなりません。しばしば位置引数とキーワード引数も受けとりますが、今回はなにも必要ないので、固定引数のタプルもキーワード引数の辞書も取らないことにします。このメソッドは"
617+
" Python の以下のメソッドと等価です:"
592618

593619
#:../../extending/newtypes_tutorial.rst:486
594620
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp