File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -2168,6 +2168,10 @@ msgid ""
2168
2168
"registered class even if hasn't directly or indirectly inherited from it. "
2169
2169
"To test for \" true inheritance\" , scan the :term:`MRO` of the class:"
2170
2170
msgstr ""
2171
+ "注意: :func:`isinstance` は :term:`abstract base class` (抽象基底クラス)から"
2172
+ "の仮想継承もチェックします。そのため、登録 (register) されたクラスが直接/間接"
2173
+ "的にそれを継承していなくても ``True`` を返します。「真のインスタンス」をテス"
2174
+ "トする場合は、クラスの :term:`MRO` を調べます:"
2171
2175
2172
2176
#: ../../faq/programming.rst:1534
2173
2177
msgid ""
@@ -2277,6 +2281,9 @@ msgid ""
2277
2281
"resolution order` (MRO) with ``type(self).__mro__``, and return the next in "
2278
2282
"line after ``Derived`` in the MRO: ``Base``."
2279
2283
msgstr ""
2284
+ "この例では、 :func:`super` は呼ばれたインスタンス (``self`` の値) を自動判断"
2285
+ "し、 ``type(self).__mro__`` で :term:`method resolution order` (MRO メソッド"
2286
+ "解決順) を検索し、そしてMRO内で ``Derived`` の次行を返します: ``Base`` 。"
2280
2287
2281
2288
#: ../../faq/programming.rst:1625
2282
2289
msgid "How can I organize my code to make it easier to change the base class?"
You can’t perform that action at this time.
0 commit comments