per page, with , order by , clip by
Results of 1 - 2 of about 2 for monomorphic (0.001 sec.)
numbers --- 数の抽象基底クラス — Python 3.14.8 ドキュメント 11228
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » numbers --- 数の抽象基底クラス テーマ 自動 ライト ダーク | numbers --- 数の抽象基底クラス ¶ ソースコード: Li ... 数を定義することは役に立ちます。たとえば、 fractions.Fraction では次のようなものを利用しています: def _operator_fallbacks ( monomorphic_operator , fallback_operator ): def forward ( a , b ): if isinstance ( b , ( int , Fraction )): return monomorphic_operato ... a ), b ) else : return NotImplemented forward . __name__ = '__' + fallback_operator . __name__ + '__' forward . __doc__ = monomorphic_operator . __doc__ def reverse ( b , a ): if isinstance ( a , Rational ): # Includes ints. return monomorphic_operator ( a ... x ( b )) else : return NotImplemented reverse . __name__ = '__r' + fallback_operator . __name__ + '__' reverse . __doc__ = monomorphic_operator . __doc__ return forward , reverse def _add ( a , b ): """a + b""" return Fraction ( a . numerator * b . denomina ...
https://man.mtool.work/python/3.14/library/numbers.html
numbers --- 数の抽象基底クラス — Python 3.14.8 ドキュメント 7485
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » numbers --- 数の抽象基底クラス テーマ 自動 ライト ダーク | numbers --- 数の抽象基底クラス ¶ ソースコード: Li ... 数を定義することは役に立ちます。たとえば、 fractions.Fraction では次のようなものを利用しています: def _operator_fallbacks ( monomorphic_operator , fallback_operator ): def forward ( a , b ): if isinstance ( b , ( int , Fraction )): return monomorphic_operato ... a ), b ) else : return NotImplemented forward . __name__ = '__' + fallback_operator . __name__ + '__' forward . __doc__ = monomorphic_operator . __doc__ def reverse ( b , a ): if isinstance ( a , Rational ): # Includes ints. return monomorphic_operator ( a ... x ( b )) else : return NotImplemented reverse . __name__ = '__r' + fallback_operator . __name__ + '__' reverse . __doc__ = monomorphic_operator . __doc__ return forward , reverse def _add ( a , b ): """a + b""" return Fraction ( a . numerator * b . denomina ...
https://man.mtool.work/python/3.14/library/numbers.html
PREV 1 NEXT