per page, with , order by , clip by
Results of 1 - 10 of about 22 for UnboundLocalError (0.035 sec.)
4. 実行モデル — Python 3.14.8 ドキュメント 12390
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 4. 実行モデル テーマ 自動 ライト ダーク | 4. 実行モデル ¶ 4.1. プログラムの構造 ¶ Python プログラムはコードブロックから構成されます。 ブ ... eError 例外が送出されます。 現在のスコープが関数のもので、名前が使われる場所でローカル変数がまだ値に束縛されていない場合、 UnboundLocalError 例外が送出されます。 UnboundLocalError は NameError の子クラスです。 ある名前がコードブロック内のどこかで束縛操作されていた ... できます。あるコードブロックにおけるローカル変数は、ブロックのテキスト全体から名前束縛操作を走査することで決定されます。例は UnboundLocalError についての FAQ 項目 を参照してください。 If the global statement occurs within a block, all uses of the names specified in ...
https://man.mtool.work/python/3.14/reference/executionmodel.html
4. 実行モデル — Python 3.14.8 ドキュメント 12390
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 4. 実行モデル テーマ 自動 ライト ダーク | 4. 実行モデル ¶ 4.1. プログラムの構造 ¶ Python プログラムはコードブロックから構成されます。 ブ ... eError 例外が送出されます。 現在のスコープが関数のもので、名前が使われる場所でローカル変数がまだ値に束縛されていない場合、 UnboundLocalError 例外が送出されます。 UnboundLocalError は NameError の子クラスです。 ある名前がコードブロック内のどこかで束縛操作されていた ... できます。あるコードブロックにおけるローカル変数は、ブロックのテキスト全体から名前束縛操作を走査することで決定されます。例は UnboundLocalError についての FAQ 項目 を参照してください。 If the global statement occurs within a block, all uses of the names specified in ...
https://man.mtool.work/python/3.14/reference/executionmodel.html
プログラミング FAQ — Python 3.14.8 ドキュメント 10824
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python よくある質問 » プログラミング FAQ テーマ 自動 ライト ダーク | プログラミング FAQ ¶ 一般的な質問 ¶ ブレークポイントやステップ実行ができる、ソースコードレベ ... 準ライブラリモジュールに求められるコーディングスタイルは PEP 8 として文書化されています。 コア言語 ¶ なぜ変数に値があるのに UnboundLocalError が出るのですか? ¶ もともと動いていたコードが、関数の本体のどこかに代入文を加えるという変更をしたら UnboundLocalError を出す ... r (): ... print ( x ) ... >>> bar () 10 は動きますが、このコード: >>> x = 10 >>> def foo (): ... print ( x ) ... x += 1 は UnboundLocalError になります: >>> foo () Traceback (most recent call last): ... UnboundLocalError : cannot access local variable 'x' where i ... cls . C )) '0x4198d0' 関連キーワード インポート 変数 コード デバッガ import ローカル スコープ squares print config ツール UnboundLocalError ループ インスタンス ライブラリ 代入 宣言 最初 バイナリ 共有 Cross platform 一般的 ブレークポイント ソースコード 目次 プログ ...
https://man.mtool.work/python/3.14/faq/programming.html
プログラミング FAQ — Python 3.14.8 ドキュメント 10050
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python よくある質問 » プログラミング FAQ テーマ 自動 ライト ダーク | プログラミング FAQ ¶ 一般的な質問 ¶ ブレークポイントやステップ実行ができる、ソースコードレベ ... 準ライブラリモジュールに求められるコーディングスタイルは PEP 8 として文書化されています。 コア言語 ¶ なぜ変数に値があるのに UnboundLocalError が出るのですか? ¶ もともと動いていたコードが、関数の本体のどこかに代入文を加えるという変更をしたら UnboundLocalError を出す ... r (): ... print ( x ) ... >>> bar () 10 は動きますが、このコード: >>> x = 10 >>> def foo (): ... print ( x ) ... x += 1 は UnboundLocalError になります: >>> foo () Traceback (most recent call last): ... UnboundLocalError : cannot access local variable 'x' where i ...
https://man.mtool.work/python/3.14/faq/programming.html
組み込み例外 — Python 3.14.8 ドキュメント 8484
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » 組み込み例外 テーマ 自動 ライト ダーク | 組み込み例外 ¶ Python において、すべての例外は BaseException から派生したクラスのインスタン ... なるべきです。しかし、誤った値(例えば、期待する範囲外の数)が引数として渡された場合は、 ValueError となるべきです。 exception UnboundLocalError ¶ 関数やメソッド内のローカルな変数に対して参照を行ったが、その変数には値が代入されていなかった場合に送出されます。 NameErr ... ImportError │ └── ModuleNotFoundError ├── LookupError │ ├── IndexError │ └── KeyError ├── MemoryError ├── NameError │ └── UnboundLocalError ├── OSError │ ├── BlockingIOError │ ├── ChildProcessError │ ├── ConnectionError │ │ ├── BrokenPipeError │ │ ├── Connection ...
https://man.mtool.work/python/3.14/builtins/exceptions.html
例外処理 — Python 3.14.8 ドキュメント 8484
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 例外処理 テーマ 自動 ライト ダーク | 例外処理 ¶ この章で説明する関数を使うと、 Python の例外の処理や例外の送出ができるようになりま ... ABI (バージョン 3.7 より). TimeoutError PyObject * PyExc_TypeError ¶ 次に属します: Stable ABI . TypeError PyObject * PyExc_UnboundLocalError ¶ 次に属します: Stable ABI . UnboundLocalError PyObject * PyExc_UnicodeDecodeError ¶ 次に属します: Stable ABI . UnicodeDec ...
https://man.mtool.work/python/3.14/c-api/exceptions.html
索引 — Python 3.14.8 ドキュメント 8484
ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – U U (re モジュール) u" 文字列リテラル u' 文字列リテラル UAdd (ast のクラス) ucd_3_2_0 (unicodedata モジュール) udata (select.kevent の ... ) (tkinter.Misc のメソッド) unbind_all() (tkinter.Misc のメソッド) unbind_class() (tkinter.Misc のメソッド) unbinding name UnboundLocalError , [1] unbuffered I/O UNC パス os.makedirs() uncancel() (asyncio.Task のメソッド) UNCHECKED_HASH (py_compile.PycInvalidatio ...
https://man.mtool.work/python/3.14/genindex-U.html
dis --- Python バイトコードの逆アセンブラー — Python 3.14.8 ドキュメント 8484
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » dis --- Python バイトコードの逆アセンブラー テーマ 自動 ライト ダーク | dis --- Python バイトコードの逆アセンブ ... で変更: This opcode is now only used in situations where the local variable is guaranteed to be initialized. It cannot raise UnboundLocalError . LOAD_FAST_BORROW ( var_num ) ¶ Pushes a borrowed reference to the local co_varnames[var_num] onto the stack. Added in ve ... ersion 3.14. LOAD_FAST_CHECK ( var_num ) ¶ Pushes a reference to the local co_varnames[var_num] onto the stack, raising an UnboundLocalError if the local variable has not been initialized. Added in version 3.12. LOAD_FAST_AND_CLEAR ( var_num ) ¶ Pushes a referenc ...
https://man.mtool.work/python/3.14/library/dis.html
変更履歴 — Python 3.14.8 ドキュメント 8484
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac ... buteError when accessing concurrent.futures.InterpreterPoolExecutor and subinterpreters are not available. gh-134759 : Fix UnboundLocalError in email.message.Message.get_payload() when the payload to decode is a bytes object. Patch by Kliment Lamonov. gh-134657 : ... 34235 : Updated tab completion on REPL to include builtin modules. Contributed by Tom Wang, Hunter Young gh-134152 : Fixed UnboundLocalError that could occur during email header parsing if an expected trailing delimiter is missing in some contexts. gh-134168 : ht ... ior does not apply if the GIL has been explicitly enabled or disabled with PYTHON_GIL or -Xgil . gh-118513 : Fix incorrect UnboundLocalError when two comprehensions in the same function both reference the same name, and in one comprehension the name is bound whil ...
https://man.mtool.work/python/3.14/whatsnew/changelog.html
組み込み例外 — Python 3.14.8 ドキュメント 8484
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » 組み込み例外 テーマ 自動 ライト ダーク | 組み込み例外 ¶ Python において、すべての例外は BaseException から派生したクラスのインスタン ... なるべきです。しかし、誤った値(例えば、期待する範囲外の数)が引数として渡された場合は、 ValueError となるべきです。 exception UnboundLocalError ¶ 関数やメソッド内のローカルな変数に対して参照を行ったが、その変数には値が代入されていなかった場合に送出されます。 NameErr ... ImportError │ └── ModuleNotFoundError ├── LookupError │ ├── IndexError │ └── KeyError ├── MemoryError ├── NameError │ └── UnboundLocalError ├── OSError │ ├── BlockingIOError │ ├── ChildProcessError │ ├── ConnectionError │ │ ├── BrokenPipeError │ │ ├── Connection ...
https://man.mtool.work/python/3.14/builtins/exceptions.html
PREV 1 2 3 NEXT