8000 Merge 3.11 into 3.10 · python/python-docs-ja@33afd8c · GitHub
[go: up one dir, main page]

Skip to content

Commit 33afd8c

Browse files
author
github-actions
committed
Merge 3.11 into 3.10
1 parent 1bd8f25 commit 33afd8c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

library/functions.po

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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`."
14241424
msgstr ""
1425+
"*value* を *format_spec* で指示された通りに \"整形\" した文字列表現に変換しま"
1426+
"す。 *format_spec* の解釈は *value* 引数の型に依存しますが、ほとんどの組み込"
1427+
"み型で使われる標準的な構文が存在します: :ref:`formatspec`。"
14251428

14261429
#: ../../library/functions.rst:696
14271430
msgid ""
@@ -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`)."
14851488
msgstr ""
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
14881498
msgid ""

0 commit comments

Comments
 (0)
0