77# rise sjack <s.tk345@gmail.com>, 2021
88# tomo, 2021
99# Arihiro TAKASE, 2023
10- # qqfunc , 2024
10+ # 石井明久 , 2024
1111# Takeshi Nakazato, 2024
1212#
1313#, fuzzy
1414msgid ""
1515msgstr ""
1616"Project-Id-Version : Python 3.13\n "
1717"Report-Msgid-Bugs-To : \n "
18- "POT-Creation-Date : 2024-11-29 14:18+0000\n "
18+ "POT-Creation-Date : 2024-12-13 14:18+0000\n "
1919"PO-Revision-Date : 2021-06-28 01:08+0000\n "
2020"Last-Translator : Takeshi Nakazato, 2024\n "
2121"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -630,13 +630,20 @@ msgid ""
630630"with the ``value`` object of each member—is supplied, only members for which "
631631"the predicate returns a true value are included."
632632msgstr ""
633+ "オブジェクトの全てのメンバーを ``(name, value)`` ペアのリストで返します。リス"
634+ "トは名前 (name) でソートされます。オプション引数 *predicate* が指定された場"
635+ "合、各メンバーの ``value`` オブジェクトを引数として *predicate* が呼ばれ、そ"
636+ "の戻り値が真となるとなるメンバーだけがリストに含まれます。"
633637
634638#: ../../library/inspect.rst:297
635639msgid ""
636640":func:`getmembers` will only return class attributes defined in the "
637641"metaclass when the argument is a class and those attributes have been listed "
638642"in the metaclass' custom :meth:`~object.__dir__`."
639643msgstr ""
644+ "引数がクラスでその属性がメタクラスで特別に定義された :meth:`~object.__dir__` "
645+ "に列挙されている場合、:func:`getmembers` はメタクラスで定義されたクラス属性の"
646+ "みを返します。"
640647
641648#: ../../library/inspect.rst:304
642649msgid ""
@@ -645,6 +652,10 @@ msgid ""
645652"protocol, __getattr__ or __getattribute__. Optionally, only return members "
646653"that satisfy a given predicate."
647654msgstr ""
655+ "オブジェクトの全てのメンバーを ``(name, value)`` ペアのリストで返します。ただ"
656+ "し、デスクリプタプロトコルの __getattr__ や __getattribute__ を介した動的な"
657+ "ルックアップは行いません。オプションとして、引数に与えられた predicate を満た"
658+ "すメンバーのみを返すこともできます。"
648659
649660#: ../../library/inspect.rst:311
650661msgid ""
@@ -654,6 +665,11 @@ msgid ""
654665"It can also return descriptor objects instead of instance members in some "
655666"cases."
656667msgstr ""
668+ ":func:`getmembers_static` は getmembers が取得できるメンバーの全てを取り出す"
669+ "ことはできないかもしれません (たとえば動的に生成された属性など)が、逆に "
670+ "getmembers が見つけることのできなかったメンバーを取得できることもあります "
671+ "(AttributeError を送出するデスクリプタなど)。また、時にはインスタンスメンバー"
672+ "の代わりにデスクリプタオブジェクトを返すこともあります。"
657673
658674#: ../../library/inspect.rst:322
659675msgid ""
@@ -663,17 +679,25 @@ msgid ""
663679"the final path component is returned with the extension removed. Otherwise, "
664680"``None`` is returned."
665681msgstr ""
682+ "ファイル *path* で指定されたモジュールの名前を、そのモジュールを含むパッケー"
683+ "ジの名前を含まない形で返します。ファイル拡張子は、 :func:`importlib."
684+ "machinery.all_suffixes` の全てのエントリに対して一致するかどうかをチェックさ"
685+ "れます。拡張子が一致した場合、最後のパス成分から拡張子を除いたものを返しま"
686+ "す。それ以外の場合は ``None`` を返します。"
666687
667688#: ../../library/inspect.rst:328
668689msgid ""
669690"Note that this function *only* returns a meaningful name for actual Python "
670691"modules - paths that potentially refer to Python packages will still return "
671692"``None``."
672693msgstr ""
694+ "この関数は、実際の Python モジュールとして意味のある名前 *だけ* を返します。"
695+ "すなわち、 Python パッケージを指している可能性のあるパスに対しては、依然とし"
696+ "て ``None`` を返します。"
673697
674698#: ../../library/inspect.rst:332
675699msgid "The function is based directly on :mod:`importlib`."
676- msgstr ""
700+ msgstr "この関数は直接 :mod:`importlib` に依存するようになりました。 "
677701
678702#: ../../library/inspect.rst:338
679703msgid "Return ``True`` if the object is a module."
0 commit comments