File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1422,6 +1422,9 @@ msgid ""
14221422"of the *value* argument; however, there is a standard formatting syntax that "
14231423"is used by most built-in types: :ref:`formatspec`."
14241424msgstr ""
1425+ "*value* を *format_spec* で指示された通りに \" 整形\" した文字列表現に変換しま"
1426+ "す。 *format_spec* の解釈は *value* 引数の型に依存しますが、ほとんどの組み込"
1427+ "み型で使われる標準的な構文が存在します: :ref:`formatspec`。"
14251428
14261429#: ../../library/functions.rst:696
14271430msgid ""
@@ -1483,6 +1486,13 @@ msgid ""
14831486"exist, *default* is returned if provided, otherwise :exc:`AttributeError` is "
14841487"raised. *name* need not be a Python identifier (see :func:`setattr`)."
14851488msgstr ""
1489+ "*object* の指定された属性の値を返します。 *name* は文字列でなければなりませ"
1490+ "ん。与えられた文字列がオブジェクトの属性名のうちいずれかに一致すれば、戻り値"
1491+ "はその属性の値になります。たとえば、 ``getattr(x, 'foobar')`` は ``x."
1492+ "foobar`` と等価です。もし指定された属性が存在しない場合、 *default* が指定さ"
1493+ "れていればその値が返されます。そうでない場合は :exc:`AttributeError` が送出さ"
1494+ "れます。 *name* は Python 識別子である必要はありません (:func:`setattr` を参"
1495+ "照してください)。"
14861496
14871497#: ../../library/functions.rst:735
14881498msgid ""
You can’t perform that action at this time.
0 commit comments