(programming) A style of dynamic typing in which an object's current set of methods and properties determines the valid semantics, rather than its inheritance from a particular class or implementation of a specific interface.
duck typing
ライブラリを評価する際、多くのPython開発者は、オブジェクトの持つメソッドやプロパティの集合が有効な振る舞いを決定し、特定のクラスの継承や特定のインターフェースの実装に依存しないという動的型付けの手法を好みます。なぜならそれによってより柔軟なコードを書けるからです。
アカウントを持っていませんか? 新規登録
アカウントを持っていますか? ログイン
DiQt(ディクト)
無料
★★★★★★★★★★