File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1454,6 +1454,9 @@ msgid ""
1454
1454
"of the *value* argument; however, there is a standard formatting syntax that "
1455
1455
"is used by most built-in types: :ref:`formatspec`."
1456
1456
msgstr ""
1457
+ "*value* を *format_spec* で指示された通りに \" 整形\" した文字列表現に変換しま"
1458
+ "す。 *format_spec* の解釈は *value* 引数の型に依存しますが、ほとんどの組み込"
1459
+ "み型で使われる標準的な構文が存在します: :ref:`formatspec`。"
1457
1460
1458
1461
#: ../../library/functions.rst:717
1459
1462
msgid ""
@@ -1515,6 +1518,13 @@ msgid ""
1515
1518
"exist, *default* is returned if provided, otherwise :exc:`AttributeError` is "
1516
1519
"raised. *name* need not be a Python identifier (see :func:`setattr`)."
1517
1520
msgstr ""
1521
+ "*object* の指定された属性の値を返します。 *name* は文字列でなければなりませ"
1522
+ "ん。与えられた文字列がオブジェクトの属性名のうちいずれかに一致すれば、戻り値"
1523
+ "はその属性の値になります。たとえば、 ``getattr(x, 'foobar')`` は ``x."
1524
+ "foobar`` と等価です。もし指定された属性が存在しない場合、 *default* が指定さ"
1525
+ "れていればその値が返されます。そうでない場合は :exc:`AttributeError` が送出さ"
1526
+ "れます。 *name* は Python 識別子である必要はありません (:func:`setattr` を参"
1527
+ "照してください)。"
1518
1528
1519
1529
#: ../../library/functions.rst:757
1520
1530
msgid ""
You can’t perform that action at this time.
0 commit comments