Results of 1 - 10 of about 121 for AttributeError (0.058 sec.)
- デスクリプタ ガイド — Python 3.14.8 ドキュメント 11239
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » デスクリプタ ガイド テーマ 自動 ライト ダーク | デスクリプタ ガイド ¶ Author : Raymond Hettinger Contact : <python at rcn dot com> デスクリプタ を
...の方が優先されます。 To make a read-only data descriptor, define both __get__() and __set__() with the __set__() raising an AttributeError when called. Defining the __set__() method with an exception raising placeholder is enough to make it a data descriptor. デ...descr_get ( cls_var , obj , objtype ) # non-data descriptor if cls_var is not null : return cls_var # class variable raise AttributeError ( name ) Note, there is no __getattr__() hook in the __getattribute__() code. That is why calling __getattribute__() direc...operator and the getattr() function that are responsible for invoking __getattr__() whenever __getattribute__() raises an AttributeError . Their logic is encapsulated in a helper function: def getattr_hook ( obj , name ): "Emulate slot_tp_getattr_hook() in Ob... - https://man.mtool.work/python/3.14/howto/descriptor.html
- 変更履歴 — Python 3.14.8 ドキュメント 11239
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...plied to the members of the set, so that [^bc] no longer matches b'B' . gh-156408 : Fix asyncio.print_call_graph() raising AttributeError when called on a task that has already finished. gh-156353 : Fix configparser parsing when using whitespace in delimiters...r deletion of the _msg_callback attribute of ssl.SSLContext no longer removes the current callback. Deleting it now raises AttributeError instead of TypeError . gh-156173 : Calling zlib.Decompress.flush() on invalid compressed data now raises zlib.error instea...raise an exception. gh-156099 : Fix a crash when deleting the keylog_filename attribute of ssl.SSLContext . It now raises AttributeError . gh-156067 : Fix error handling in the zoneinfo accelerator module when a transition index is -1 or a TZ string's __bool_... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- デスクリプタ ガイド — Python 3.14.8 ドキュメント 11239
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » デスクリプタ ガイド テーマ 自動 ライト ダーク | デスクリプタ ガイド ¶ Author : Raymond Hettinger Contact : <python at rcn dot com> デスクリプタ を
...の方が優先されます。 To make a read-only data descriptor, define both __get__() and __set__() with the __set__() raising an AttributeError when called. Defining the __set__() method with an exception raising placeholder is enough to make it a data descriptor. デ...descr_get ( cls_var , obj , objtype ) # non-data descriptor if cls_var is not null : return cls_var # class variable raise AttributeError ( name ) Note, there is no __getattr__() hook in the __getattribute__() code. That is why calling __getattribute__() direc...operator and the getattr() function that are responsible for invoking __getattr__() whenever __getattribute__() raises an AttributeError . Their logic is encapsulated in a helper function: def getattr_hook ( obj , name ): "Emulate slot_tp_getattr_hook() in Ob... - https://man.mtool.work/python/3.14/howto/descriptor.html
- unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 10706
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ
...引数によって別のオブジェクトからの仕様を受け取るよう設定できます。 spec にないモックの属性やメソッドにアクセスを試みた場合、 AttributeError で失敗します。 patch() デコレータ / コンテキストマネージャーによってテスト対象のモジュール内のクラスやオブジェクトを簡単に...よって文字列のリストが生成されます (サポートされない特殊属性や特殊メソッドは除く) 。このリストにない属性にアクセスした際には AttributeError が発生します。 spec が (文字列のリストではなく) オブジェクトの場合、 __class__ はスペックオブジェクトのクラスを返します。こ...厳しい spec です。こちらを利用した場合、 spec_set に渡されたオブジェクトに存在しない属性に対し 設定 や取得をしようとした際に AttributeError が発生します。 side_effect : モックが呼び出された際に呼び出される関数を指定します。 side_effect 属性を参考にしてください。... - https://man.mtool.work/python/3.14/library/unittest.mock.html
- unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 10706
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ
...引数によって別のオブジェクトからの仕様を受け取るよう設定できます。 spec にないモックの属性やメソッドにアクセスを試みた場合、 AttributeError で失敗します。 patch() デコレータ / コンテキストマネージャーによってテスト対象のモジュール内のクラスやオブジェクトを簡単に...よって文字列のリストが生成されます (サポートされない特殊属性や特殊メソッドは除く) 。このリストにない属性にアクセスした際には AttributeError が発生します。 spec が (文字列のリストではなく) オブジェクトの場合、 __class__ はスペックオブジェクトのクラスを返します。こ...厳しい spec です。こちらを利用した場合、 spec_set に渡されたオブジェクトに存在しない属性に対し 設定 や取得をしようとした際に AttributeError が発生します。 side_effect : モックが呼び出された際に呼び出される関数を指定します。 side_effect 属性を参考にしてください。... - https://man.mtool.work/python/3.14/library/unittest.mock.html
- 索引 — Python 3.14.8 ドキュメント 9293
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – 例 例外 , [1] AssertionError AttributeError GeneratorExit , [1] ImportError NameError raising StopAsyncIteration StopIteration , [1] T
...DivisionError ハンドラ 連鎖 , [1] 例外を扱う 例外を送出する 例外ハンドラ 関連キーワード 例外 ハンドラ Index AssertionError AttributeError GeneratorExit ImportError NameError raising StopAsyncIteration StopIteration TypeError ValueError ZeroDivisionError 連鎖 送... - https://man.mtool.work/python/3.14/genindex-例.html
- 索引 — Python 3.14.8 ドキュメント 9293
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – 例 例外 , [1] AssertionError AttributeError GeneratorExit , [1] ImportError NameError raising StopAsyncIteration StopIteration , [1] T
...ZeroDivisionError ハンドラ 連鎖 , [1] 例外を扱う 例外を送出する 例外ハンドラ 関連キーワード ハンドラ Index AssertionError AttributeError GeneratorExit ImportError NameError raising StopAsyncIteration StopIteration TypeError ValueError ZeroDivisionError 連鎖 送... - https://man.mtool.work/python/3.14/genindex-例.html
- 変更履歴 — Python 3.14.8 ドキュメント 8413
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...plied to the members of the set, so that [^bc] no longer matches b'B' . gh-156408 : Fix asyncio.print_call_graph() raising AttributeError when called on a task that has already finished. gh-156353 : Fix configparser parsing when using whitespace in delimiters...r deletion of the _msg_callback attribute of ssl.SSLContext no longer removes the current callback. Deleting it now raises AttributeError instead of TypeError . gh-156173 : Calling zlib.Decompress.flush() on invalid compressed data now raises zlib.error instea...raise an exception. gh-156099 : Fix a crash when deleting the keylog_filename attribute of ssl.SSLContext . It now raises AttributeError . gh-156067 : Fix error handling in the zoneinfo accelerator module when a transition index is -1 or a TZ string's __bool_... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- オブジェクトプロトコル (object protocol) — Python 3.14.8 ドキュメント 8240
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » オブジェクトプロトコル (object protocol) テーマ 自動 ライト ダーク | オブジェク
...Object * * result ) ; ¶ 次に属します: Stable ABI (バージョン 3.13 より). Variant of PyObject_GetAttr() which doesn't raise AttributeError if the attribute is not found. If the attribute is found, return 1 and set *result to a new strong reference to the attrib...ute. If the attribute is not found, return 0 and set *result to NULL ; the AttributeError is silenced. If an error other than AttributeError is raised, return -1 and set *result to NULL . Added in version 3.13. i...る通り、データのデスクリプタはインスタンスの属性より優先され、非データデスクリプタは後回しにされます。見付からなかった場合は AttributeError を送出します。 int PyObject_SetAttr ( PyObject * o , PyObject * attr_name , PyObject * v ) ¶ 次に属します: Stable ABI . オ... - https://man.mtool.work/python/3.14/c-api/object.html
- オブジェクトプロトコル (object protocol) — Python 3.14.8 ドキュメント 7707
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » オブジェクトプロトコル (object protocol) テーマ 自動 ライト ダーク | オブジェク
...Object * * result ) ; ¶ 次に属します: Stable ABI (バージョン 3.13 より). Variant of PyObject_GetAttr() which doesn't raise AttributeError if the attribute is not found. If the attribute is found, return 1 and set *result to a new strong reference to the attrib...ute. If the attribute is not found, return 0 and set *result to NULL ; the AttributeError is silenced. If an error other than AttributeError is raised, return -1 and set *result to NULL . Added in version 3.13. i...る通り、データのデスクリプタはインスタンスの属性より優先され、非データデスクリプタは後回しにされます。見付からなかった場合は AttributeError を送出します。 int PyObject_SetAttr ( PyObject * o , PyObject * attr_name , PyObject * v ) ¶ 次に属します: Stable ABI . オ... - https://man.mtool.work/python/3.14/c-api/object.html