Python 3.6.5 ドキュメント 検索
Results of 31 - 40 of about 99 for except (0.293 sec.)
- デザインと歴史 FAQ — Python 3.6.5 ドキュメント 6452
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python よくある質問
...
ッドがあります。 例外はどれくらい速いのですか? ¶ try/except ブロックは例外が送出されなければ極端に効率的です。...
を使うのが一般的でした: try : value = mydict [ key ] except KeyError : mydict [ key ] = getvalue ( key ) value...
lt = result + ( hash ( el ) % 9999999 ) * 1001 + i except Exception : result = ( result % 7777777 ) + i * 33...
あると、広く感じられています。例えば: class label ( Exception ): pass # declare a label try : ... if conditio...
- https://man.plustar.jp/python/faq/design.html - [similar]
- Logging クックブック — Python 3.6.5 ドキュメント 6452
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Logg
...
debug ( 'Hello from main' ) time . sleep ( 0.75 ) except KeyboardInterrupt : info [ 'stop' ] = True break t...
critical ( 'critical message' ) time . sleep ( 5 ) except KeyboardInterrupt : # cleanup logging . config . s...
れていて、 debug() , info() , warning() , error() , exception() , critical() , log() の各メソッドを呼び出せる...
) # No level or filter logic applied - just do it! except Exception : import sys , traceback print ( 'Whoops...
- https://man.plustar.jp/python/howto/logging-cookbook.html - [similar]
- 18.5.4. Transports and protocols (callback based API) — Python 3.6.5 ドキュメン... 6452
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
0 ] . getsockname ())) try : loop . run_forever () except KeyboardInterrupt : pass # Close the server server...
il_complete ( listen ) try : loop . run_forever () except KeyboardInterrupt : pass transport . close () loop...
import asyncio try : from socket import socketpair except ImportError : from asyncio.windows_utils import so...
- https://man.plustar.jp/python/library/asyncio-protocol.html - [similar]
- 5. 組み込み例外 — Python 3.6.5 ドキュメント 6452
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
組み込み例外 ¶ Python において、すべての例外は BaseException から派生したクラスのインスタンスでなければなりま...
せん。特定のクラスを言及する except 節を伴う try 文において、その節はそのクラスから派生...
ためにサブクラス化することができます。新しい例外は、 Exception クラスかそのサブクラスの一つから派生することをお...
勧めします。 BaseException からは派生しないで下さい。例外を定義する上での詳...
- https://man.plustar.jp/python/library/exceptions.html - [similar]
- What's New In Python 3.3 — Python 3.6.5 ドキュメント 6452
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho
...
en ( "document.txt" ) as f : content = f . read () except IOError as err : if err . errno == ENOENT : print...
en ( "document.txt" ) as f : content = f . read () except FileNotFoundError : print ( "document.txt file is...
missing" ) except PermissionError : print ( "You are not allowed to...
ent.txt" ) 参考 PEP 3151 - Reworking the OS and IO Exception Hierarchy PEP written and implemented by Antoin...
- https://man.plustar.jp/python/whatsnew/3.3.html - [similar]
- 18.5.5. ストリーム (コルーチンベースの API) — Python 3.6.5 ドキュメント 6361
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
one ) ¶ このクラスは スレッド安全ではありません 。 exception ( ) ¶ 例外を取得します。 feed_eof ( ) ¶ EOF の肯...
。データを待っているあらゆる処理が再開されます。 set_exception ( exc ) ¶ 例外を設定します。 set_transport ( tr...
に実装されています) 18.5.5.5. IncompleteReadError ¶ exception asyncio. IncompleteReadError ¶ 不完全な読み込み...
字列 ( bytes ) です。 18.5.5.6. LimitOverrunError ¶ exception asyncio. LimitOverrunError ¶ 区切り文字を探して...
- https://man.plustar.jp/python/library/asyncio-stream.html - [similar]
- 17.4. concurrent.futures -- 並列タスク実行 — Python 3.6.5 ドキュメント 6361
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
, chunksize=1 ) ¶ Similar to map(func, *iterables) except: the iterables are collected immediately rather th...
o limit to the wait time. If a func call raises an exception, then that exception will be raised when its va...
_to_url [ future ] try : data = future . result () except Exception as exc : print ( ' %r generated an excep...
を送出した場合、このメソッドは同じ例外を送出します。 exception ( timeout=None ) ¶ 呼び出しによって送出された例...
- https://man.plustar.jp/python/library/concurrent.futures.html - [similar]
- 19.9. quopri --- MIME quoted-printable 形式データのエンコードおよびデコード — P... 6361
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
quotetabs=False , header=False ) ¶ Like encode() , except that it accepts a source bytes and returns the cor...
- https://man.plustar.jp/python/library/quopri.html - [similar]
- 11.10. shutil --- 高水準のファイル操作 — Python 3.6.5 ドキュメント 6361
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
後者は前者のサブクラスなのでこの変更は後方互換です。 exception shutil. SameFileError ¶ copyfile() のコピー元と...
'C:\\Python33\\python.EXE' バージョン 3.3 で追加. exception shutil. Error ¶ この例外は複数ファイルの操作を行...
対しては例外の引数は3つのタプル( srcname , dstname , exception )からなるリストです。 11.10.1.1. copytree の例...
dstname ) # XXX What about devices, sockets etc.? except OSError as why : errors . append (( srcname , dstn...
- https://man.plustar.jp/python/library/shutil.html - [similar]
- What's New in Python 2.6 — Python 3.6.5 ドキュメント 6361
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho
...
メソッド。 例外の捕捉の、これまでとは別の文法の追加: except TypeError as exc 。 組み込み関数 reduce() への別名...
( self , type , value , tb ): if tb is None : # No exception, so commit self . commit () else : # Exception...
cursor = connection . cursor () try : yield cursor except : connection . rollback () raise else : connection...
してしまう誤りの一つにこんなのがあります: try : ... except TypeError , ValueError : # Wrong! ... このコードの...
- https://man.plustar.jp/python/whatsnew/2.6.html - [similar]