per page, with , order by , clip by
Results of 1 - 10 of about 114 for KeyError (0.006 sec.)
マップ型プロトコル (mapping protocol) — Python 3.14.8 ドキュメント 10382
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » マップ型プロトコル (mapping protocol) テーマ 自動 ライト ダーク | マップ型プロト ... PyObject * * result ) ¶ 次に属します: Stable ABI (バージョン 3.13 より). Variant of PyObject_GetItem() which doesn't raise KeyError if the key is not found. If the key is found, return 1 and set *result to a new strong reference to the corresponding valu ... e. If the key is not found, return 0 and set *result to NULL ; the KeyError is silenced. If an error other than KeyError is raised, return -1 and set *result to NULL . Added in version 3.13. int PyM ... Stable specified encoded bytes rather 成功 GetItem DelItem キー return Added タプル mapping getitem method GetOptionalItem KeyError found HasKeyWithError マップ protocol SetItem Return 前のトピックへ シーケンス型プロトコル (sequence protocol) 次のトピック ...
https://man.mtool.work/python/3.14/c-api/mapping.html
grp --- グループデータベース — Python 3.14.8 ドキュメント 9903
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Unix-specific services » grp --- グループデータベース テーマ 自動 ライト ダーク | grp --- グループデータベース ¶ このモジュールでは ... id ( id ) ¶ 与えられたグループ ID に対するグループデータベースエントリを返します。要求したエントリが見つからなかった場合、 KeyError が送出されます。 バージョン 3.10 で変更: 浮動小数点数や文字列のような、整数でない引数には TypeError が送出されます。 grp. ... am ( name ) ¶ 与えられたグループ名に対するグループデータベースエントリを返します。要求したエントリが見つからなかった場合、 KeyError が送出されます。 grp. getgrall ( ) ¶ 全ての入手可能なグループエントリを返します。順番は決まっていません。 参考 pwd モジュー ... ェース。 関連キーワード グループ データベース エントリ メンバ Unix 属性 パスワード group 整数 ユーザ getgrnam getgrgid 要求 KeyError 機構 提供 Availability Android タプル 報告 構造体 インデックス 意味 passwd 暗号化 前のトピックへ pwd --- パスワードデータベ ...
https://man.mtool.work/python/3.14/library/grp.html
mailbox --- 様々な形式のメールボックスを操作する — Python 3.14.8 ドキュメント 9664
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » mailbox --- 様々な形式のメールボックスを操作する テーマ 自動 ライト ダーク | mailbox --- 様々な形式 ... メッセージは黙ってスキップされますが、イテレータからのキーを使ったときにはそのキーに対応するメッセージが削除されているならば KeyError を受け取ることになります。 警告 十分な注意を、何か他のプロセスによっても同時に変更される可能性のあるメールボックスを更新す ... るメッセージを削除します。 対応するメッセージが無い場合、メソッドが remove() または __delitem__() として呼び出されている時は KeyError 例外が送出されます。しかし、 discard() として呼び出されている場合は例外は発生しません。基づいているメールボックス形式が別の ... key , message ) ¶ key に対応するメッセージを message で置き換えます。 key に対応しているメッセージが既に無くなっている場合 KeyError 例外が送出されます。 add() と同様に、引数の message には Message インスタンス、 email.message.Message インスタンス、文字列 ...
https://man.mtool.work/python/3.14/library/mailbox.html
unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 9664
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ ... て、モック呼び出し時の例外発生などの副作用を実行できます: >>> from unittest.mock import Mock >>> mock = Mock ( side_effect = KeyError ( 'foo' )) >>> mock () Traceback (most recent call last): ... KeyError : 'foo' >>> values = { 'a' : 1 , 'b' : 2 , 'c' : 3 ... メソッドの呼び出し時にアンパックされます: >>> mock = Mock () >>> attrs = { 'method.return_value' : 3 , 'other.side_effect' : KeyError } >>> mock . configure_mock ( ** attrs ) >>> mock . method () 3 >>> mock . other () Traceback (most recent call last): ... ... KeyError コンストラクタの呼び出しでも同様に行うことができます: >>> attrs = { 'method.return_value' : 3 , 'other.side_effect' : KeyE ...
https://man.mtool.work/python/3.14/library/unittest.mock.html
mailbox --- 様々な形式のメールボックスを操作する — Python 3.14.8 ドキュメント 9664
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » mailbox --- 様々な形式のメールボックスを操作する テーマ 自動 ライト ダーク | mailbox --- 様々な形式 ... メッセージは黙ってスキップされますが、イテレータからのキーを使ったときにはそのキーに対応するメッセージが削除されているならば KeyError を受け取ることになります。 警告 十分な注意を、何か他のプロセスによっても同時に変更される可能性のあるメールボックスを更新す ... るメッセージを削除します。 対応するメッセージが無い場合、メソッドが remove() または __delitem__() として呼び出されている時は KeyError 例外が送出されます。しかし、 discard() として呼び出されている場合は例外は発生しません。基づいているメールボックス形式が別の ... key , message ) ¶ key に対応するメッセージを message で置き換えます。 key に対応しているメッセージが既に無くなっている場合 KeyError 例外が送出されます。 add() と同様に、引数の message には Message インスタンス、 email.message.Message インスタンス、文字列 ...
https://man.mtool.work/python/3.14/library/mailbox.html
unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 9664
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ ... て、モック呼び出し時の例外発生などの副作用を実行できます: >>> from unittest.mock import Mock >>> mock = Mock ( side_effect = KeyError ( 'foo' )) >>> mock () Traceback (most recent call last): ... KeyError : 'foo' >>> values = { 'a' : 1 , 'b' : 2 , 'c' : 3 ... メソッドの呼び出し時にアンパックされます: >>> mock = Mock () >>> attrs = { 'method.return_value' : 3 , 'other.side_effect' : KeyError } >>> mock . configure_mock ( ** attrs ) >>> mock . method () 3 >>> mock . other () Traceback (most recent call last): ... ... KeyError コンストラクタの呼び出しでも同様に行うことができます: >>> attrs = { 'method.return_value' : 3 , 'other.side_effect' : KeyE ...
https://man.mtool.work/python/3.14/library/unittest.mock.html
マップ型プロトコル (mapping protocol) — Python 3.14.8 ドキュメント 8934
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » マップ型プロトコル (mapping protocol) テーマ 自動 ライト ダーク | マップ型プロト ... PyObject * * result ) ¶ 次に属します: Stable ABI (バージョン 3.13 より). Variant of PyObject_GetItem() which doesn't raise KeyError if the key is not found. If the key is found, return 1 and set *result to a new strong reference to the corresponding valu ... e. If the key is not found, return 0 and set *result to NULL ; the KeyError is silenced. If an error other than KeyError is raised, return -1 and set *result to NULL . Added in version 3.13. int PyM ...
https://man.mtool.work/python/3.14/c-api/mapping.html
selectors --- 高水準の I/O 多重化 — Python 3.14.8 ドキュメント 8934
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » selectors --- 高水準の I/O 多重化 テーマ 自動 ライト ダーク | selectors --- 高水準の I/O 多重化 ... スタンスを返します。不正なイベントマスク化ファイル記述子のときは ValueError が、ファイルオブジェクトがすでに登録済みのときは KeyError が送出されます。 abstractmethod unregister ( fileobj ) ¶ ファイルオブジェクトのセレクション登録を解除し、監視対象から外しま ... ァイルオブジェクトでなければなりません。 関連付けられた SelectorKey インスタンスを返します。 fileobj が登録されていない場合 KeyError を送出します。 fileobj が不正な場合 (例えば fileobj に fileno() メソッドが無い場合や fileno() メソッドの戻り値が不正な場合 ... タンスを返します。 イベントマスクやファイル記述子が不正な場合は ValueError を、ファイルオブジェクトが登録されていない場合は KeyError を送出します。 abstractmethod select ( timeout = None ) ¶ 登録されたいくつかのファイルオブジェクトが準備できたか、タイムア ...
https://man.mtool.work/python/3.14/library/selectors.html
dbm --- Unix "データベース" へのインターフェース — Python 3.14.8 ドキュメント 8695
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データの永続化 » dbm --- Unix "データベース" へのインターフェース テーマ 自動 ライト ダーク | dbm --- Unix "データベース" へのインタ ... ) . バージョン 3.8 で変更: Deleting a key from a read-only database raises a database module specific exception instead of KeyError . バージョン 3.13 で変更: clear() methods are now available for all dbm backends. 以下の例ではホスト名と対応するタイトルを ... をサポートしません。 Availability : Unix. exception dbm.gnu. error ¶ Raised on dbm.gnu -specific errors, such as I/O errors. KeyError is raised for general mapping errors like specifying an incorrect key. dbm.gnu. open_flags ¶ A string of characters the fl ... サポートしません。 Availability : Unix. exception dbm.ndbm. error ¶ Raised on dbm.ndbm -specific errors, such as I/O errors. KeyError is raised for general mapping errors like specifying an incorrect key. dbm.ndbm. library ¶ Name of the NDBM implementation ...
https://man.mtool.work/python/3.14/library/dbm.html
email.contentmanager: Managing MIME Content — Python 3.14.8 ドキュメント 8695
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email.contentmanager : Managing MIME Content ... MIME 型を表す文字列 ( maintype/subtype ) maintype を表す文字列 空の文字列 If none of these keys produce a handler, raise a KeyError for the full MIME type. set_content ( msg , obj , * args , ** kw ) ¶ If the maintype is multipart , raise a TypeError ; ot ... inally, if no other key yields a handler, check for a handler for the key None . If there is no handler for None , raise a KeyError for the fully qualified name of the type. Also add a MIME-Version header if one is not present (see also MIMEPart ). add_g ... parts), an EmailMessage object (for message/rfc822 parts), or a bytes object (for all other non-multipart types). Raise a KeyError if called on a multipart . If the part is a text part and errors is specified, use it as the error handler when decoding t ...
https://man.mtool.work/python/3.14/library/email.contentmanager.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT