エラーコードポータル
PythonPythonエラーコード

MemoryError

MemoryError

コード MemoryError · Pythonが報告した問題です。

操作でメモリが不足した場合に発生しますが、(一部のオブジェクトを削除することで) この状況はまだ救われる可能性があります。関連する値は、どのような種類の (内部) 操作でメモリ不足が発生したかを示す文字列です。基礎となるメモリ管理アーキテクチャ (C の malloc() 関数) のため、インタプリタはこの状況から常に完全に回復できるとは限らないことに注意してください。ただし、暴走プログラムが原因である場合に備えて、スタック トレースバックを出力できるように例外が発生します。

Google Translate · 自動翻訳です。専門用語や適用条件は英語の原文で確認してください。

Raised when an operation runs out of memory but the situation may still be rescued (by deleting some objects). The associated value is a string indicating what kind of (internal) operation ran out of memory. Note that because of the underlying memory management architecture (C’s malloc() function), the interpreter may not always be able to completely recover from this situation; it nevertheless raises an exception so that a stack traceback can be printed, in case a run-away program was the cause.

トラブルシューティング・診断リンク

まず、文書の製品・バージョン・発生環境が現在の状況と一致しているか確認してください。