Python Documentation contents¶
- What's New in Python
- What's New In Python 3.13
- What's New In Python 3.12
- What's New In Python 3.11
- What's New In Python 3.10
- 概要 -- リリースハイライト
- 新しい機能
- 型ヒントに関連する新しい機能
- その他の言語変更
- 新たなモジュール
- 改良されたモジュール
- asyncio
- argparse
- array
- asynchat, asyncore, smtpd
- base64
- bdb
- bisect
- codecs
- collections.abc
- contextlib
- curses
- データクラス
- distutils
- doctest
- エンコーディング
- enum
- fileinput
- faulthandler
- gc
- glob
- hashlib
- hmac
- IDLE と idelelib
- importlib.metadata
- inspect
- itertools
- linecache
- os
- os.path
- pathlib
- プラットフォーム
- pprint
- py_compile
- pyclbr
- shelve
- statistics
- site
- socket
- ssl
- sqlite3
- sys
- _thread
- threading
- traceback
- types
- typing
- unittest
- urllib.parse
- xml
- zipimport
- 最適化
- 非推奨
- 削除
- Porting to Python 3.10
- CPython バイトコードの変更
- Build Changes
- C API の変更
- What's New In Python 3.9
- What's New In Python 3.8
- 概要 -- リリースハイライト
- 新しい機能
- その他の言語変更
- 新たなモジュール
- 改良されたモジュール
- ast
- asyncio
- builtins
- collections
- cProfile
- csv
- curses
- ctypes
- datetime
- functools
- gc
- gettext
- gzip
- IDLE と idelelib
- inspect
- io
- itertools
- json.tool
- logging
- math
- mmap
- multiprocessing
- os
- os.path
- pathlib
- pickle
- plistlib
- pprint
- py_compile
- shlex
- shutil
- socket
- ssl
- statistics
- sys
- tarfile
- threading
- tokenize
- tkinter
- time
- typing
- unicodedata
- unittest
- venv
- weakref
- xml
- xmlrpc
- 最適化
- ビルドならびに C API の変更
- 非推奨
- API と機能の削除
- Python 3.8 への移植
- Python3.8.1 での重要な変更点
- Python3.8.8 での重要な変更点
- Notable changes in Python 3.8.12
- What's New In Python 3.7
- 概要 -- リリースハイライト
- 新しい機能
- PEP 563: アノテーションの遅延評価
- PEP 538: レガシーな C ロケールの抑圧
- PEP 540: 強制 UTF-8 実行モード
- PEP 553: 組み込みの
breakpoint()
- PEP 539: スレッドローカルストレージのための新しい C API
- PEP 562: モジュール属性へのアクセスのカスタマイズ
- PEP 564: ナノ秒単位の分解能を持つ新しい時間関数
- PEP 565: Show DeprecationWarning in
__main__
- PEP 560:
typing
モジュールとジェネリック型に対する言語コアによるサポート - PEP 552: Hash-based .pyc Files
- PEP 545: Python Documentation Translations
- Python Development Mode (-X dev)
- その他の言語変更
- 新たなモジュール
- 改良されたモジュール
- argparse
- asyncio
- binascii
- calendar
- collections
- compileall
- concurrent.futures
- contextlib
- cProfile
- crypt
- datetime
- dbm
- decimal
- dis
- distutils
- enum
- functools
- gc
- hmac
- http.client
- http.server
- idlelib と IDLE
- importlib
- io
- ipaddress
- itertools
- locale
- logging
- math
- mimetypes
- msilib
- multiprocessing
- os
- pathlib
- pdb
- py_compile
- pydoc
- queue
- re
- signal
- socket
- socketserver
- sqlite3
- ssl
- string
- subprocess
- sys
- time
- tkinter
- tracemalloc
- types
- unicodedata
- unittest
- unittest.mock
- urllib.parse
- uu
- uuid
- warnings
- xml.etree
- xmlrpc.server
- zipapp
- zipfile
- C API の変更
- Build Changes
- 最適化
- その他の CPython の実装の変更
- 非推奨の Python の挙動
- 非推奨の Python モジュール、関数、メソッド
- C API の非推奨の関数ならびに型
- サポート対象プラットフォームからの除外
- API と機能の削除
- Module Removals
- Windows-only Changes
- Python 3.7 への移植
- Python 3.7.1 での重要な変更点
- Python 3.7.2 での重要な変更点
- Python 3.7.6 での重要な変更点
- Python 3.7.10 での重要な変更点
- What's New In Python 3.6
- 概要 -- リリースハイライト
- 新しい機能
- PEP 498: フォーマット済み文字列リテラル
- PEP 526: 変数アノテーションの文法
- PEP 515: 数値リテラル内のアンダースコア
- PEP 525: 非同期ジェネレータ
- PEP 530: 非同期内包表記
- PEP 487: Simpler customization of class creation
- PEP 487: 記述子プロトコルの改善
- PEP 519: ファイルシステムパスプロトコルの追加
- PEP 495: 地域時間の曖昧さ回避
- PEP 529: Windows ファイルシステムのエンコーディングを UTF-8 に変更
- PEP 528: Windows コンソールのエンコーディングを UTF-8 に変更
- PEP 520: クラス属性の定義の順番を保持
- PEP 468: キーワード引数の順番の保持
- 新たな dict 実装
- PEP 523: CPython にフレーム評価 API を追加
- PYTHONMALLOC 環境変数
- DTrace and SystemTap probing support
- その他の言語変更
- 新たなモジュール
- 改良されたモジュール
- array
- ast
- asyncio
- binascii
- cmath
- collections
- concurrent.futures
- contextlib
- datetime
- decimal
- distutils
- エンコーディング
- enum
- faulthandler
- fileinput
- hashlib
- http.client
- idlelib と IDLE
- importlib
- inspect
- json
- logging
- math
- multiprocessing
- os
- pathlib
- pdb
- pickle
- pickletools
- pydoc
- random
- re
- readline
- rlcompleter
- shlex
- site
- sqlite3
- socket
- socketserver
- ssl
- statistics
- struct
- subprocess
- sys
- telnetlib
- time
- timeit
- tkinter
- traceback
- tracemalloc
- typing
- unicodedata
- unittest.mock
- urllib.request
- urllib.robotparser
- venv
- warnings
- winreg
- winsound
- xmlrpc.client
- zipfile
- zlib
- 最適化
- ビルドならびに C API の変更
- その他の改善
- 非推奨
- 削除
- Python 3.6 への移植
- Notable changes in Python 3.6.2
- Notable changes in Python 3.6.4
- Notable changes in Python 3.6.5
- Notable changes in Python 3.6.7
- Notable changes in Python 3.6.10
- Notable changes in Python 3.6.13
- What's New In Python 3.5
- 概要 -- リリースハイライト
- 新しい機能
- PEP 492 - コルーチン、 async と await 構文
- PEP 465 - 行列の乗算専用の中置演算子
- PEP 448 - 追加可能なアンパックへの一般化
- PEP 461 - bytes および bytearray のパーセント書式化サポート
- PEP 484 - 型ヒント
- PEP 471 - os.scandir() 関数 -- より良く、速いディレクトリイテレータ
- PEP 475: EINTR で失敗したシステムコールの再試行
- PEP 479: ジェネレータ内の StopIteration の処理の変更
- PEP 485: 近似的に等しいことを調べる関数
- PEP 486: Python ランチャーが仮想環境を認識する
- PEP 488: PYO ファイルの廃止
- PEP 489: 拡張モジュールの多段階初期化
- その他の言語変更
- 新たなモジュール
- 改良されたモジュール
- argparse
- asyncio
- bz2
- cgi
- cmath
- コード
- collections
- collections.abc
- compileall
- concurrent.futures
- configparser
- contextlib
- csv
- curses
- dbm
- difflib
- distutils
- doctest
- enum
- faulthandler
- functools
- glob
- gzip
- heapq
- http
- http.client
- idlelib と IDLE
- imaplib
- imghdr
- importlib
- inspect
- io
- ipaddress
- json
- linecache
- locale
- logging
- lzma
- math
- multiprocessing
- operator
- os
- pathlib
- pickle
- poplib
- re
- readline
- selectors
- shutil
- signal
- smtpd
- smtplib
- sndhdr
- socket
- ssl
- sqlite3
- subprocess
- sys
- sysconfig
- tarfile
- threading
- time
- timeit
- tkinter
- traceback
- types
- unicodedata
- unittest
- unittest.mock
- urllib
- wsgiref
- xmlrpc
- xml.sax
- zipfile
- その他のモジュールレベルの変更
- 最適化
- ビルドならびに C API の変更
- 非推奨
- 削除
- Python 3.5 への移植
- Notable changes in Python 3.5.4
- What's New In Python 3.4
- 概要 -- リリースハイライト
- 新しい機能
- 新たなモジュール
- 改良されたモジュール
- abc
- aifc
- argparse
- audioop
- base64
- collections
- colorsys
- contextlib
- dbm
- dis
- doctest
- filecmp
- functools
- gc
- glob
- hashlib
- hmac
- html
- http
- idlelib と IDLE
- importlib
- inspect
- ipaddress
- logging
- marshal
- mmap
- multiprocessing
- operator
- os
- pdb
- pickle
- plistlib
- poplib
- pprint
- pty
- pydoc
- re
- resource
- select
- shelve
- shutil
- smtpd
- smtplib
- socket
- sqlite3
- ssl
- stat
- struct
- subprocess
- sunau
- sys
- tarfile
- textwrap
- threading
- traceback
- types
- urllib
- unittest
- venv
- wave
- weakref
- xml.etree
- zipfile
- CPython の実装の変更
- 非推奨
- 削除
- Python 3.4 への移植
- 3.4.3 の変更
- What's New In Python 3.3
- 概要 -- リリースハイライト
- PEP 405: 仮想環境
- PEP 420: 暗黙的な名前空間パッケージ
- PEP 3118: 新たなメモリビューの実装とバッファプロトコルのドキュメント
- PEP 393: 文字列の柔軟な表現
- PEP 397: Windows の Python ランチャ
- PEP 3151: OS および IO 例外階層の手直し
- PEP 380: サブジェネレータへの委譲構文
- PEP 409: 例外コンテキストの抑制
- PEP 414: 明示的なユニコードリテラル
- PEP 3155: クラスと関数の正規名
- PEP 412: キー共有辞書
- PEP 362: 関数シグニチャオブジェクト
- PEP 421: sys.implementation の追加
- インポート実装としての importlib の使用
- その他の言語変更
- 細粒度のインポートロック
- 組み込みの関数と型
- 新たなモジュール
- 改良されたモジュール
- abc
- array
- base64
- binascii
- bz2
- codecs
- collections
- contextlib
- crypt
- curses
- datetime
- decimal
- ftplib
- functools
- gc
- hmac
- http
- html
- imaplib
- inspect
- io
- itertools
- logging
- math
- mmap
- multiprocessing
- nntplib
- os
- pdb
- pickle
- pydoc
- re
- sched
- select
- shlex
- shutil
- signal
- smtpd
- smtplib
- socket
- socketserver
- sqlite3
- ssl
- stat
- struct
- subprocess
- sys
- tarfile
- tempfile
- textwrap
- threading
- time
- types
- unittest
- urllib
- webbrowser
- xml.etree.ElementTree
- zlib
- 最適化
- ビルドならびに C API の変更
- 非推奨
- Python 3.3 への移植
- What's New In Python 3.2
- PEP 384: 安定 ABI の定義
- PEP 389: argparse コマンドライン解析モジュール
- PEP 391: logging の辞書ベースの設定
- PEP 3148:
concurrent.futures
モジュール - PEP 3147: PYC リポジトリーディレクトリ
- PEP 3149: ABI バージョンでタグ付けされた .so ファイル
- PEP 3333: Python Web Server Gateway Interface v1.0.1
- その他の言語変更
- 新たなモジュール、改良されたモジュール、非推奨のモジュール
- elementtree
- functools
- itertools
- collections
- threading
- datetime と time
- math
- abc
- io
- reprlib
- logging
- csv
- contextlib
- decimal と fractions
- ftp
- popen
- select
- gzip と zipfile
- tarfile
- hashlib
- ast
- os
- shutil
- sqlite3
- html
- socket
- ssl
- nntp
- certificates
- imaplib
- http.client
- unittest
- random
- poplib
- asyncore
- tempfile
- inspect
- pydoc
- dis
- dbm
- ctypes
- site
- sysconfig
- pdb
- configparser
- urllib.parse
- mailbox
- turtledemo
- マルチスレッディング
- 最適化
- Unicode 文字列型
- Codecs
- ドキュメント
- IDLE
- コードリポジトリ
- ビルドならびに C API の変更
- Python 3.2 への移植
- What's New In Python 3.1
- What's New In Python 3.0
- What's New in Python 2.7
- Python 2.x の今後
- Deprecation Warnings の扱いの変更
- Python 3.1 の機能
- PEP 372: collections に順序付き辞書を追加
- PEP 378: 1000区切りのための書式指定子
- PEP 389: コマンドライン解析のための argparse モジュール
- PEP 391: logging の辞書ベースの設定
- PEP 3106: 辞書 View
- PEP 3137: memoryview オブジェクト
- その他の言語変更
- 新しいモジュールと改良されたモジュール
- ビルドならびに C API の変更
- その他の変更と修正
- Python 2.7 への移植
- Python 2.7 メンテナンスリリースで追加された新機能
- デバッグモード用の2つの新しい環境変数
- PEP 434: IDLE 拡張についての全てのブランチにおける例外的な扱い
- PEP 466: Python 2.7 のためのネットワークセキュリティ拡張
- PEP 477: Python 2.7 への ensurepip (PEP 453) バックポート
- PEP 476: stdlib http クライアントが証明書の検証を行うのをデフォルトで有効化
- PEP 493: HTTPS verification migration tools for Python 2.7
- New
make regen-all
build target - Removal of
make touch
build target
- 謝辞
- What's New in Python 2.6
- Python 3.0
- 開発プロセスに関する変更
- PEP 343: "with" ステートメント
- PEP 366: メインモジュールからの明示的相対インポート
- PEP 370: ユーザごとの
site-packages
ディレクトリ - PEP 371:
multiprocessing
パッケージ - PEP 3101: 進化版文字列フォーマッティング
- PEP 3105:
print
を関数にする - PEP 3110: 例外処理の変更
- PEP 3112: バイトリテラル
- PEP 3116: 新しい I/O ライブラリ
- PEP 3118: 改訂版バッファプロトコル
- PEP 3119: 抽象基底クラス
- PEP 3127: 整数リテラルのサポートと文法
- PEP 3129: クラスデコレータ
- PEP 3141: 数値の型階層
- その他の言語変更
- 新しいモジュールと改良されたモジュール
- 非推奨と削除
- ビルドならびに C API の変更
- Python 2.6 への移植
- 謝辞
- What's New in Python 2.5
- PEP 308: 条件式 (Conditional Expressions)
- PEP 309: 関数の部分適用
- PEP 314: Metadata for Python Software Packages v1.1
- PEP 328: 絶対インポート、相対インポート
- PEP 338 - モジュールをスクリプトとして実行する
- PEP 341: try/except/finally の一体化
- PEP 342: ジェネレータの新機能
- PEP 343: "with" ステートメント
- PEP 352: 例外の新スタイルクラス化
- PEP 353: 添え字型に ssize_t を使う
- PEP 357: '__index__' メソッド
- その他の言語変更
- 新たなモジュール、改良されたモジュール、削除されたモジュール
- ビルドならびに C API の変更
- Python 2.5 への移植
- 謝辞
- What's New in Python 2.4
- PEP 218: ビルトインの集合オブジェクト
- PEP 237: 長整数と整数を一体化していく
- PEP 289: ジェネレータ式
- PEP 292: より単純な文字列置換 (string substitution)
- PEP 318: 関数とメソッドのためのデコレータ
- PEP 322: 逆順のイテレーション
- PEP 324: 新しい subprocess モジュール
- PEP 327: Decimal データ型
- PEP 328: マルチラインインポート
- PEP 331: Locale に依存しない Float/String 変換
- その他の言語変更
- 新たなモジュール、改良されたモジュール、非推奨のモジュール
- ビルドならびに C API の変更
- Python 2.4 への移植
- 謝辞
- What's New in Python 2.3
- PEP 218: 標準の集合データ型
- PEP 255: 単純なジェネレータ
- PEP 263: ソースコードのエンコーディング
- PEP 273: Zip アーカイブからモジュールをインポートする
- PEP 277: Windows NT での Unicode ファイル名サポート
- PEP 278: Universal Newline サポート
- PEP 279: enumerate()
- PEP 282: ロギングパッケージ
- PEP 285: Boolean 型
- PEP 293: コーデックエラーを処理するコールバック
- PEP 301: パッケージインデクスと、 Distutils のためのメタデータ
- PEP 302: 新たなインポートフック
- PEP 305: カンマ区切り形式ファイル
- PEP 307: Pickle の機能拡張
- 拡張スライス
- その他の言語変更
- 新たなモジュール、改良されたモジュール、非推奨のモジュール
- Pymalloc: 特殊化されたオブジェクトアロケータ
- ビルドならびに C API の変更
- その他の変更と修正
- Python 2.3 への移植
- 謝辞
- What's New in Python 2.2
- What's New in Python 2.1
- What's New in Python 2.0
- 変更履歴
- Python next
- Python 3.13.0 alpha 2
- Python 3.13.0 alpha 1
- Python 3.12.0 beta 1
- Python 3.12.0 alpha 7
- Python 3.12.0 alpha 6
- Python 3.12.0 alpha 5
- Python 3.12.0 alpha 4
- Python 3.12.0 alpha 3
- Python 3.12.0 alpha 2
- Python 3.12.0 alpha 1
- Python 3.11.0 beta 1
- Python 3.11.0 alpha 7
- Python 3.11.0 alpha 6
- Python 3.11.0 alpha 5
- Python 3.11.0 alpha 4
- Python 3.11.0 alpha 3
- Python 3.11.0 alpha 2
- Python 3.11.0 alpha 1
- Python 3.10.0 beta 1
- Python 3.10.0 alpha 7
- Python 3.10.0 alpha 6
- Python 3.10.0 alpha 5
- Python 3.10.0 alpha 4
- Python 3.10.0 alpha 3
- Python 3.10.0 alpha 2
- Python 3.10.0 alpha 1
- Python 3.9.0 beta 1
- Python 3.9.0 alpha 6
- Python 3.9.0 alpha 5
- Python 3.9.0 alpha 4
- Python 3.9.0 alpha 3
- Python 3.9.0 alpha 2
- Python 3.9.0 alpha 1
- Python 3.8.0 beta 1
- Python 3.8.0 alpha 4
- Python 3.8.0 alpha 3
- Python 3.8.0 alpha 2
- Python 3.8.0 alpha 1
- Python 3.7.0 final
- Python 3.7.0 release candidate 1
- Python 3.7.0 beta 5
- Python 3.7.0 beta 4
- Python 3.7.0 beta 3
- Python 3.7.0 beta 2
- Python 3.7.0 beta 1
- Python 3.7.0 alpha 4
- Python 3.7.0 alpha 3
- Python 3.7.0 alpha 2
- Python 3.7.0 alpha 1
- Python 3.6.6 final
- Python 3.6.6 release candidate 1
- Python 3.6.5 final
- Python 3.6.5 release candidate 1
- Python 3.6.4 final
- Python 3.6.4 release candidate 1
- Python 3.6.3 final
- Python 3.6.3 release candidate 1
- Python 3.6.2 final
- Python 3.6.2 release candidate 2
- Python 3.6.2 release candidate 1
- Python 3.6.1 final
- Python 3.6.1 release candidate 1
- Python 3.6.0 final
- Python 3.6.0 release candidate 2
- Python 3.6.0 release candidate 1
- Python 3.6.0 beta 4
- Python 3.6.0 beta 3
- Python 3.6.0 beta 2
- Python 3.6.0 beta 1
- Python 3.6.0 alpha 4
- Python 3.6.0 alpha 3
- Python 3.6.0 alpha 2
- Python 3.6.0 alpha 1
- Python 3.5.5 final
- Python 3.5.5 release candidate 1
- Python 3.5.4 final
- Python 3.5.4 release candidate 1
- Python 3.5.3 final
- Python 3.5.3 release candidate 1
- Python 3.5.2 final
- Python 3.5.2 release candidate 1
- Python 3.5.1 final
- Python 3.5.1 release candidate 1
- Python 3.5.0 final
- Python 3.5.0 release candidate 4
- Python 3.5.0 release candidate 3
- Python 3.5.0 release candidate 2
- Python 3.5.0 release candidate 1
- Python 3.5.0 beta 4
- Python 3.5.0 beta 3
- Python 3.5.0 beta 2
- Python 3.5.0 beta 1
- Python 3.5.0 alpha 4
- Python 3.5.0 alpha 3
- Python 3.5.0 alpha 2
- Python 3.5.0 alpha 1
- Python チュートリアル
- 1. やる気を高めよう
- 2. Python インタプリタを使う
- 3. 形式ばらない Python の紹介
- 4. その他の制御フローツール
- 5. データ構造
- 6. モジュール
- 7. 入力と出力
- 8. エラーと例外
- 9. クラス
- 10. 標準ライブラリミニツアー
- 11. 標準ライブラリミニツアー --- その 2
- 12. 仮想環境とパッケージ
- 13. さあ何を?
- 14. 対話入力編集と履歴置換
- 15. 浮動小数点演算、その問題と制限
- 16. 付録
- Python のセットアップと利用
- 1. コマンドラインと環境
- 2. Unix プラットフォームで Python を使う
- 3. Configure
- 3.1. Build Requirements
- 3.2. Generated files
- 3.3. Configureオプション
- 3.3.1. 一般的なオプション
- 3.3.2. C compiler options
- 3.3.3. Linker options
- 3.3.4. Options for third-party dependencies
- 3.3.5. WebAssembly Options
- 3.3.6. Install Options
- 3.3.7. Performance options
- 3.3.8. Python Debug Build
- 3.3.9. Debug options
- 3.3.10. Linker options
- 3.3.11. Libraries options
- 3.3.12. Security Options
- 3.3.13. macOS Options
- 3.3.14. Cross Compiling Options
- 3.4. Python Build System
- 3.5. Compiler and linker flags
- 4. Windows で Python を使う
- 4.1. 完全版インストーラ
- 4.2. Microsoft ストアパッケージ
- 4.3. nuget.org パッケージ
- 4.4. 埋め込み可能なパッケージ
- 4.5. 別のバンドル
- 4.6. Python を構成する
- 4.7. UTF-8 モード
- 4.8. Windows の Python ランチャ
- 4.9. モジュールの検索
- 4.10. 追加のモジュール
- 4.11. Windows 上で Python をコンパイルする
- 4.12. ほかのプラットフォーム
- 5. Mac で Python を使う
- 6. エディタと IDE
- Python 言語リファレンス
- 1. はじめに
- 2. 字句解析
- 3. データモデル
- 3.1. オブジェクト、値、および型
- 3.2. 標準型の階層
- 3.3. 特殊メソッド名
- 3.3.1. 基本的なカスタマイズ
- 3.3.2. 属性値アクセスをカスタマイズする
- 3.3.3. クラス生成をカスタマイズする
- 3.3.4. インスタンスのカスタマイズとサブクラスチェック
- 3.3.5. ジェネリック型をエミュレートする
- 3.3.6. 呼び出し可能オブジェクトをエミュレートする
- 3.3.7. コンテナをエミュレートする
- 3.3.8. 数値型をエミュレートする
object.__add__()
object.__sub__()
object.__mul__()
object.__matmul__()
object.__truediv__()
object.__floordiv__()
object.__mod__()
object.__divmod__()
object.__pow__()
object.__lshift__()
object.__rshift__()
object.__and__()
object.__xor__()
object.__or__()
object.__radd__()
object.__rsub__()
object.__rmul__()
object.__rmatmul__()
object.__rtruediv__()
object.__rfloordiv__()
object.__rmod__()
object.__rdivmod__()
object.__rpow__()
object.__rlshift__()
object.__rrshift__()
object.__rand__()
object.__rxor__()
object.__ror__()
object.__iadd__()
object.__isub__()
object.__imul__()
object.__imatmul__()
object.__itruediv__()
object.__ifloordiv__()
object.__imod__()
object.__ipow__()
object.__ilshift__()
object.__irshift__()
object.__iand__()
object.__ixor__()
object.__ior__()
object.__neg__()
object.__pos__()
object.__abs__()
object.__invert__()
object.__complex__()
object.__int__()
object.__float__()
object.__index__()
object.__round__()
object.__trunc__()
object.__floor__()
object.__ceil__()
- 3.3.9. with文とコンテキストマネージャ
- 3.3.10. クラスパターンマッチの位置引数のカスタマイズ
- 3.3.11. Emulating buffer types
- 3.3.12. 特殊メソッド検索
- 3.4. コルーチン
- 4. 実行モデル
- 5. インポートシステム
- 6. 式 (expression)
- 6.1. 算術変換 (arithmetic conversion)
- 6.2. アトム、原子的要素 (atom)
- 6.3. プライマリ
- 6.4. Await 式
- 6.5. べき乗演算 (power operator)
- 6.6. 単項算術演算とビット単位演算 (unary arithmetic and bitwise operation)
- 6.7. 二項算術演算 (binary arithmetic operation)
- 6.8. シフト演算 (shifting operation)
- 6.9. ビット単位演算の二項演算 (binary bitwise operation)
- 6.10. 比較
- 6.11. ブール演算 (boolean operation)
- 6.12. 代入式
- 6.13. 条件式 (Conditional Expressions)
- 6.14. ラムダ (lambda)
- 6.15. 式のリスト
- 6.16. 評価順序
- 6.17. 演算子の優先順位
- 7. 単純文 (simple statement)
- 8. 複合文 (compound statement)
- 9. トップレベル要素
- 10. 完全な文法仕様
- Python 標準ライブラリ
- はじめに
- 組み込み関数
abs()
aiter()
all()
anext()
any()
ascii()
bin()
bool
breakpoint()
callable()
chr()
classmethod()
compile()
complex
delattr()
dir()
divmod()
enumerate()
eval()
exec()
filter()
float
format()
getattr()
globals()
hasattr()
hash()
help()
hex()
id()
input()
int
isinstance()
issubclass()
iter()
len()
locals()
map()
max()
min()
next()
object
oct()
open()
ord()
pow()
print()
property
repr()
reversed()
round()
setattr()
slice
sorted()
staticmethod()
sum()
super
type
vars()
zip()
__import__()
- 組み込み定数
- 組み込み型
- 真理値判定
- ブール演算 ---
and
,or
,not
- 比較
- 数値型
int
,float
,complex
- ブーリアン型 -
bool
- イテレータ型
- シーケンス型 ---
list
,tuple
,range
- テキストシーケンス型 ---
str
str
- 文字列メソッド
str.capitalize()
str.casefold()
str.center()
str.count()
str.encode()
str.endswith()
str.expandtabs()
str.find()
str.format()
str.format_map()
str.index()
str.isalnum()
str.isalpha()
str.isascii()
str.isdecimal()
str.isdigit()
str.isidentifier()
str.islower()
str.isnumeric()
str.isprintable()
str.isspace()
str.istitle()
str.isupper()
str.join()
str.ljust()
str.lower()
str.lstrip()
str.maketrans()
str.partition()
str.removeprefix()
str.removesuffix()
str.replace()
str.rfind()
str.rindex()
str.rjust()
str.rpartition()
str.rsplit()
str.rstrip()
str.split()
str.splitlines()
str.startswith()
str.strip()
str.swapcase()
str.title()
str.translate()
str.upper()
str.zfill()
printf
形式の文字列書式化
- バイナリシーケンス型 ---
bytes
,bytearray
,memoryview
- バイトオブジェクト
- bytearray オブジェクト
- bytes と bytearray の操作
bytes.count()
bytearray.count()
bytes.removeprefix()
bytearray.removeprefix()
bytes.removesuffix()
bytearray.removesuffix()
bytes.decode()
bytearray.decode()
bytes.endswith()
bytearray.endswith()
bytes.find()
bytearray.find()
bytes.index()
bytearray.index()
bytes.join()
bytearray.join()
bytes.maketrans()
bytearray.maketrans()
bytes.partition()
bytearray.partition()
bytes.replace()
bytearray.replace()
bytes.rfind()
bytearray.rfind()
bytes.rindex()
bytearray.rindex()
bytes.rpartition()
bytearray.rpartition()
bytes.startswith()
bytearray.startswith()
bytes.translate()
bytearray.translate()
bytes.center()
bytearray.center()
bytes.ljust()
bytearray.ljust()
bytes.lstrip()
bytearray.lstrip()
bytes.rjust()
bytearray.rjust()
bytes.rsplit()
bytearray.rsplit()
bytes.rstrip()
bytearray.rstrip()
bytes.split()
bytearray.split()
bytes.strip()
bytearray.strip()
bytes.capitalize()
bytearray.capitalize()
bytes.expandtabs()
bytearray.expandtabs()
bytes.isalnum()
bytearray.isalnum()
bytes.isalpha()
bytearray.isalpha()
bytes.isascii()
bytearray.isascii()
bytes.isdigit()
bytearray.isdigit()
bytes.islower()
bytearray.islower()
bytes.isspace()
bytearray.isspace()
bytes.istitle()
bytearray.istitle()
bytes.isupper()
bytearray.isupper()
bytes.lower()
bytearray.lower()
bytes.splitlines()
bytearray.splitlines()
bytes.swapcase()
bytearray.swapcase()
bytes.title()
bytearray.title()
bytes.upper()
bytearray.upper()
bytes.zfill()
bytearray.zfill()
printf
形式での bytes の書式化- メモリビュー
memoryview
memoryview.__eq__()
memoryview.tobytes()
memoryview.hex()
memoryview.tolist()
memoryview.toreadonly()
memoryview.release()
memoryview.cast()
memoryview.obj
memoryview.nbytes
memoryview.readonly
memoryview.format
memoryview.itemsize
memoryview.ndim
memoryview.shape
memoryview.strides
memoryview.suboffsets
memoryview.c_contiguous
memoryview.f_contiguous
memoryview.contiguous
- set(集合)型 ---
set
,frozenset
set
frozenset
frozenset.isdisjoint()
frozenset.issubset()
frozenset.issuperset()
frozenset.union()
frozenset.intersection()
frozenset.difference()
frozenset.symmetric_difference()
frozenset.copy()
frozenset.update()
frozenset.intersection_update()
frozenset.difference_update()
frozenset.symmetric_difference_update()
frozenset.add()
frozenset.remove()
frozenset.discard()
frozenset.pop()
frozenset.clear()
- マッピング型 ---
dict
- コンテキストマネージャ型
- 型アノテーション型 --- ジェネリックエイリアス 、 ユニオン
- その他の組み込み型
- 特殊属性
- Integer string conversion length limitation
- 組み込み例外
- 例外コンテキスト
- Inheriting from built-in exceptions
- 基底クラス
- 具象例外
AssertionError
AttributeError
EOFError
FloatingPointError
GeneratorExit
ImportError
ModuleNotFoundError
IndexError
KeyError
KeyboardInterrupt
MemoryError
NameError
NotImplementedError
OSError
OverflowError
RecursionError
ReferenceError
RuntimeError
StopIteration
StopAsyncIteration
SyntaxError
IndentationError
TabError
SystemError
SystemExit
TypeError
UnboundLocalError
UnicodeError
UnicodeEncodeError
UnicodeDecodeError
UnicodeTranslateError
ValueError
ZeroDivisionError
EnvironmentError
IOError
WindowsError
- OS 例外
- 警告
- Exception groups
- 例外のクラス階層
- テキスト処理サービス
string
--- 一般的な文字列操作re
--- 正規表現操作difflib
--- 差分の計算を助けるDiffer
HtmlDiff
context_diff()
get_close_matches()
ndiff()
restore()
unified_diff()
diff_bytes()
IS_LINE_JUNK()
IS_CHARACTER_JUNK()
- SequenceMatcherオブジェクト
SequenceMatcher
SequenceMatcher.set_seqs()
SequenceMatcher.set_seq1()
SequenceMatcher.set_seq2()
SequenceMatcher.find_longest_match()
SequenceMatcher.get_matching_blocks()
SequenceMatcher.get_opcodes()
SequenceMatcher.get_grouped_opcodes()
SequenceMatcher.ratio()
SequenceMatcher.quick_ratio()
SequenceMatcher.real_quick_ratio()
- SequenceMatcher の例
- Differ オブジェクト
- Differ の例
- difflib のコマンドラインインターフェース
- ndiff example
textwrap
--- テキストの折り返しと詰め込みwrap()
fill()
shorten()
dedent()
indent()
TextWrapper
TextWrapper.width
TextWrapper.expand_tabs
TextWrapper.tabsize
TextWrapper.replace_whitespace
TextWrapper.drop_whitespace
TextWrapper.initial_indent
TextWrapper.subsequent_indent
TextWrapper.fix_sentence_endings
TextWrapper.break_long_words
TextWrapper.break_on_hyphens
TextWrapper.max_lines
TextWrapper.placeholder
TextWrapper.wrap()
TextWrapper.fill()
unicodedata
--- Unicode データベースstringprep
--- インターネットのための文字列調製readline
--- GNU readline のインターフェースrlcompleter
--- GNU readline向け補完関数
- バイナリデータ処理
struct
--- バイト列をパックされたバイナリデータとして解釈するcodecs
--- codec レジストリと基底クラスencode()
decode()
lookup()
CodecInfo
getencoder()
getdecoder()
getincrementalencoder()
getincrementaldecoder()
getreader()
getwriter()
register()
unregister()
open()
EncodedFile()
iterencode()
iterdecode()
BOM
BOM_BE
BOM_LE
BOM_UTF8
BOM_UTF16
BOM_UTF16_BE
BOM_UTF16_LE
BOM_UTF32
BOM_UTF32_BE
BOM_UTF32_LE
- Codec 基底クラス
- エンコーディングと Unicode
- 標準エンコーディング
- Python 特有のエンコーディング
encodings.idna
--- アプリケーションにおける国際化ドメイン名 (IDNA)encodings.mbcs
--- Windows ANSI コードページencodings.utf_8_sig
--- BOM 印付き UTF-8
- データ型
datetime
--- 基本的な日付型および時間型- Aware オブジェクトと Naive オブジェクト
- 定数
- 利用可能なデータ型
timedelta
オブジェクトdate
オブジェクトdate
date.today()
date.fromtimestamp()
date.fromordinal()
date.fromisoformat()
date.fromisocalendar()
date.min
date.max
date.resolution
date.year
date.month
date.day
date.replace()
date.timetuple()
date.toordinal()
date.weekday()
date.isoweekday()
date.isocalendar()
date.isoformat()
date.__str__()
date.ctime()
date.strftime()
date.__format__()
- 使用例:
date
datetime
オブジェクトdatetime
datetime.today()
datetime.now()
datetime.utcnow()
datetime.fromtimestamp()
datetime.utcfromtimestamp()
datetime.fromordinal()
datetime.combine()
datetime.fromisoformat()
datetime.fromisocalendar()
datetime.strptime()
datetime.min
datetime.max
datetime.resolution
datetime.year
datetime.month
datetime.day
datetime.hour
datetime.minute
datetime.second
datetime.microsecond
datetime.tzinfo
datetime.fold
datetime.date()
datetime.time()
datetime.timetz()
datetime.replace()
datetime.astimezone()
datetime.utcoffset()
datetime.dst()
datetime.tzname()
datetime.timetuple()
datetime.utctimetuple()
datetime.toordinal()
datetime.timestamp()
datetime.weekday()
datetime.isoweekday()
datetime.isocalendar()
datetime.isoformat()
datetime.__str__()
datetime.ctime()
datetime.strftime()
datetime.__format__()
- 使用例:
datetime
time
オブジェクトtzinfo
オブジェクトtimezone
オブジェクトstrftime()
とstrptime()
の振る舞い
zoneinfo
--- IANA タイムゾーンのサポートcalendar
--- 一般的なカレンダーに関する関数群Calendar
Calendar.iterweekdays()
Calendar.itermonthdates()
Calendar.itermonthdays()
Calendar.itermonthdays2()
Calendar.itermonthdays3()
Calendar.itermonthdays4()
Calendar.monthdatescalendar()
Calendar.monthdays2calendar()
Calendar.monthdayscalendar()
Calendar.yeardatescalendar()
Calendar.yeardays2calendar()
Calendar.yeardayscalendar()
TextCalendar
HTMLCalendar
LocaleTextCalendar
LocaleHTMLCalendar
setfirstweekday()
firstweekday()
isleap()
leapdays()
weekday()
weekheader()
monthrange()
monthcalendar()
prmonth()
month()
prcal()
calendar()
timegm()
day_name
day_abbr
MONDAY
TUESDAY
WEDNESDAY
THURSDAY
FRIDAY
SATURDAY
SUNDAY
Day
month_name
month_abbr
JANUARY
FEBRUARY
MARCH
APRIL
MAY
JUNE
JULY
AUGUST
SEPTEMBER
OCTOBER
NOVEMBER
DECEMBER
Month
IllegalMonthError
IllegalWeekdayError
- コマンドラインからの使用
collections
--- コンテナデータ型collections.abc
--- コレクションの抽象基底クラスheapq
--- ヒープキューアルゴリズムbisect
--- 配列二分法アルゴリズムarray
--- 効率のよい数値アレイtypecodes
array
array.typecode
array.itemsize
array.append()
array.buffer_info()
array.byteswap()
array.count()
array.extend()
array.frombytes()
array.fromfile()
array.fromlist()
array.fromunicode()
array.index()
array.insert()
array.pop()
array.remove()
array.reverse()
array.tobytes()
array.tofile()
array.tolist()
array.tounicode()
weakref
--- 弱参照types
--- 動的な型生成と組み込み型に対する名前- 動的な型生成
- 標準的なインタプリタ型
NoneType
FunctionType
LambdaType
GeneratorType
CoroutineType
AsyncGeneratorType
CodeType
CellType
MethodType
BuiltinFunctionType
BuiltinMethodType
WrapperDescriptorType
MethodWrapperType
NotImplementedType
MethodDescriptorType
ClassMethodDescriptorType
ModuleType
EllipsisType
GenericAlias
UnionType
TracebackType
FrameType
GetSetDescriptorType
MemberDescriptorType
MappingProxyType
CapsuleType
- 追加のユーティリティクラスと関数
- コルーチンユーティリティ関数
copy
--- 浅いコピーおよび深いコピー操作pprint
--- データ出力の整然化reprlib
--- もう一つのrepr()
の実装enum
--- 列挙型のサポートgraphlib
--- Functionality to operate with graph-like structures
- 数値と数学モジュール
numbers
--- 数の抽象基底クラスmath
--- 数学関数cmath
--- 複素数のための数学関数decimal
--- 十進固定及び浮動小数点数の算術演算- クイックスタートチュートリアル
- Decimal オブジェクト
Decimal
Decimal.adjusted()
Decimal.as_integer_ratio()
Decimal.as_tuple()
Decimal.canonical()
Decimal.compare()
Decimal.compare_signal()
Decimal.compare_total()
Decimal.compare_total_mag()
Decimal.conjugate()
Decimal.copy_abs()
Decimal.copy_negate()
Decimal.copy_sign()
Decimal.exp()
Decimal.from_float()
Decimal.fma()
Decimal.is_canonical()
Decimal.is_finite()
Decimal.is_infinite()
Decimal.is_nan()
Decimal.is_normal()
Decimal.is_qnan()
Decimal.is_signed()
Decimal.is_snan()
Decimal.is_subnormal()
Decimal.is_zero()
Decimal.ln()
Decimal.log10()
Decimal.logb()
Decimal.logical_and()
Decimal.logical_invert()
Decimal.logical_or()
Decimal.logical_xor()
Decimal.max()
Decimal.max_mag()
Decimal.min()
Decimal.min_mag()
Decimal.next_minus()
Decimal.next_plus()
Decimal.next_toward()
Decimal.normalize()
Decimal.number_class()
Decimal.quantize()
Decimal.radix()
Decimal.remainder_near()
Decimal.rotate()
Decimal.same_quantum()
Decimal.scaleb()
Decimal.shift()
Decimal.sqrt()
Decimal.to_eng_string()
Decimal.to_integral()
Decimal.to_integral_exact()
Decimal.to_integral_value()
- 論理引数
- Context オブジェクト
getcontext()
setcontext()
localcontext()
BasicContext
ExtendedContext
DefaultContext
Context
Context.clear_flags()
Context.clear_traps()
Context.copy()
Context.copy_decimal()
Context.create_decimal()
Context.create_decimal_from_float()
Context.Etiny()
Context.Etop()
Context.abs()
Context.add()
Context.canonical()
Context.compare()
Context.compare_signal()
Context.compare_total()
Context.compare_total_mag()
Context.copy_abs()
Context.copy_negate()
Context.copy_sign()
Context.divide()
Context.divide_int()
Context.divmod()
Context.exp()
Context.fma()
Context.is_canonical()
Context.is_finite()
Context.is_infinite()
Context.is_nan()
Context.is_normal()
Context.is_qnan()
Context.is_signed()
Context.is_snan()
Context.is_subnormal()
Context.is_zero()
Context.ln()
Context.log10()
Context.logb()
Context.logical_and()
Context.logical_invert()
Context.logical_or()
Context.logical_xor()
Context.max()
Context.max_mag()
Context.min()
Context.min_mag()
Context.minus()
Context.multiply()
Context.next_minus()
Context.next_plus()
Context.next_toward()
Context.normalize()
Context.number_class()
Context.plus()
Context.power()
Context.quantize()
Context.radix()
Context.remainder()
Context.remainder_near()
Context.rotate()
Context.same_quantum()
Context.scaleb()
Context.shift()
Context.sqrt()
Context.subtract()
Context.to_eng_string()
Context.to_integral_exact()
Context.to_sci_string()
- 定数
- 丸めモード
- シグナル
- 浮動小数点数に関する注意
- スレッドを使った処理
- レシピ
- Decimal FAQ
fractions
--- 有理数random
--- 擬似乱数を生成するstatistics
--- 数理統計関数
- 関数型プログラミング用モジュール
itertools
--- 効率的なループ実行のためのイテレータ生成関数functools
--- 高階関数と呼び出し可能オブジェクトの操作operator
--- 関数形式の標準演算子lt()
le()
eq()
ne()
ge()
gt()
__lt__()
__le__()
__eq__()
__ne__()
__ge__()
__gt__()
not_()
__not__()
truth()
is_()
is_not()
abs()
__abs__()
add()
__add__()
and_()
__and__()
floordiv()
__floordiv__()
index()
__index__()
inv()
invert()
__inv__()
__invert__()
lshift()
__lshift__()
mod()
__mod__()
mul()
__mul__()
matmul()
__matmul__()
neg()
__neg__()
or_()
__or__()
pos()
__pos__()
pow()
__pow__()
rshift()
__rshift__()
sub()
__sub__()
truediv()
__truediv__()
xor()
__xor__()
concat()
__concat__()
contains()
__contains__()
countOf()
delitem()
__delitem__()
getitem()
__getitem__()
indexOf()
setitem()
__setitem__()
length_hint()
call()
__call__()
attrgetter()
itemgetter()
methodcaller()
- 演算子から関数への対応表
- インプレース (in-place) 演算子
- ファイルとディレクトリへのアクセス
pathlib
--- オブジェクト指向のファイルシステムパス- 基本的な使い方
- Exceptions
- 純粋パス
PurePath
PurePosixPath
PureWindowsPath
- 全般的な性質
- 演算子
- 個別の構成要素へのアクセス
- メソッドとプロパティ
PurePath.pathmod
PurePath.drive
PurePath.root
PurePath.anchor
PurePath.parents
PurePath.parent
PurePath.name
PurePath.suffix
PurePath.suffixes
PurePath.stem
PurePath.as_posix()
PurePath.as_uri()
PurePath.is_absolute()
PurePath.is_relative_to()
PurePath.is_reserved()
PurePath.joinpath()
PurePath.match()
PurePath.relative_to()
PurePath.with_name()
PurePath.with_stem()
PurePath.with_suffix()
PurePath.with_segments()
- 具象パス
Path
PosixPath
WindowsPath
- メソッド
Path.cwd()
Path.home()
Path.from_uri()
Path.stat()
Path.chmod()
Path.exists()
Path.expanduser()
Path.glob()
Path.group()
Path.is_dir()
Path.is_file()
Path.is_junction()
Path.is_mount()
Path.is_symlink()
Path.is_socket()
Path.is_fifo()
Path.is_block_device()
Path.is_char_device()
Path.iterdir()
Path.walk()
Path.lchmod()
Path.lstat()
Path.mkdir()
Path.open()
Path.owner()
Path.read_bytes()
Path.read_text()
Path.readlink()
Path.rename()
Path.replace()
Path.absolute()
Path.resolve()
Path.rglob()
Path.rmdir()
Path.samefile()
Path.symlink_to()
Path.hardlink_to()
Path.touch()
Path.unlink()
Path.write_bytes()
Path.write_text()
os
モジュールにあるツールとの対応付け
os.path
--- 共通のパス名操作abspath()
basename()
commonpath()
commonprefix()
dirname()
exists()
lexists()
expanduser()
expandvars()
getatime()
getmtime()
getctime()
getsize()
isabs()
isfile()
isdir()
isjunction()
islink()
ismount()
isdevdrive()
join()
normcase()
normpath()
realpath()
relpath()
samefile()
sameopenfile()
samestat()
split()
splitdrive()
splitroot()
splitext()
supports_unicode_filenames
fileinput
--- 複数の入力ストリームをまたいだ行の繰り返し処理をサポートするstat
---stat()
の結果を解釈するS_ISDIR()
S_ISCHR()
S_ISBLK()
S_ISREG()
S_ISFIFO()
S_ISLNK()
S_ISSOCK()
S_ISDOOR()
S_ISPORT()
S_ISWHT()
S_IMODE()
S_IFMT()
filemode()
ST_MODE
ST_INO
ST_DEV
ST_NLINK
ST_UID
ST_GID
ST_SIZE
ST_ATIME
ST_MTIME
ST_CTIME
S_IFSOCK
S_IFLNK
S_IFREG
S_IFBLK
S_IFDIR
S_IFCHR
S_IFIFO
S_IFDOOR
S_IFPORT
S_IFWHT
S_ISUID
S_ISGID
S_ISVTX
S_IRWXU
S_IRUSR
S_IWUSR
S_IXUSR
S_IRWXG
S_IRGRP
S_IWGRP
S_IXGRP
S_IRWXO
S_IROTH
S_IWOTH
S_IXOTH
S_ENFMT
S_IREAD
S_IWRITE
S_IEXEC
UF_NODUMP
UF_IMMUTABLE
UF_APPEND
UF_OPAQUE
UF_NOUNLINK
UF_COMPRESSED
UF_HIDDEN
SF_ARCHIVED
SF_IMMUTABLE
SF_APPEND
SF_NOUNLINK
SF_SNAPSHOT
FILE_ATTRIBUTE_ARCHIVE
FILE_ATTRIBUTE_COMPRESSED
FILE_ATTRIBUTE_DEVICE
FILE_ATTRIBUTE_DIRECTORY
FILE_ATTRIBUTE_ENCRYPTED
FILE_ATTRIBUTE_HIDDEN
FILE_ATTRIBUTE_INTEGRITY_STREAM
FILE_ATTRIBUTE_NORMAL
FILE_ATTRIBUTE_NOT_CONTENT_INDEXED
FILE_ATTRIBUTE_NO_SCRUB_DATA
FILE_ATTRIBUTE_OFFLINE
FILE_ATTRIBUTE_READONLY
FILE_ATTRIBUTE_REPARSE_POINT
FILE_ATTRIBUTE_SPARSE_FILE
FILE_ATTRIBUTE_SYSTEM
FILE_ATTRIBUTE_TEMPORARY
FILE_ATTRIBUTE_VIRTUAL
IO_REPARSE_TAG_SYMLINK
IO_REPARSE_TAG_MOUNT_POINT
IO_REPARSE_TAG_APPEXECLINK
filecmp
--- ファイルおよびディレクトリの比較cmp()
cmpfiles()
clear_cache()
dircmp
クラスdircmp
dircmp.report()
dircmp.report_partial_closure()
dircmp.report_full_closure()
dircmp.left
dircmp.right
dircmp.left_list
dircmp.right_list
dircmp.common
dircmp.left_only
dircmp.right_only
dircmp.common_dirs
dircmp.common_files
dircmp.common_funny
dircmp.same_files
dircmp.diff_files
dircmp.funny_files
dircmp.subdirs
DEFAULT_IGNORES
tempfile
--- 一時ファイルやディレクトリの作成glob
--- Unix 形式のパス名のパターン展開fnmatch
--- Unix ファイル名のパターンマッチlinecache
--- テキストラインにランダムアクセスするshutil
--- 高水準のファイル操作
- データの永続化
pickle
--- Python オブジェクトの直列化copyreg
---pickle
サポート関数を登録するshelve
--- Python オブジェクトの永続化marshal
--- 内部使用向けの Python オブジェクト整列化dbm
--- Unix "データベース" へのインターフェースsqlite3
--- SQLite データベースに対する DB-API 2.0 インターフェース- チュートリアル
- リファレンス
- モジュール関数
- モジュール定数
LEGACY_TRANSACTION_CONTROL
PARSE_COLNAMES
PARSE_DECLTYPES
SQLITE_OK
SQLITE_DENY
SQLITE_IGNORE
apilevel
paramstyle
sqlite_version
sqlite_version_info
threadsafety
version
version_info
SQLITE_DBCONFIG_DEFENSIVE
SQLITE_DBCONFIG_DQS_DDL
SQLITE_DBCONFIG_DQS_DML
SQLITE_DBCONFIG_ENABLE_FKEY
SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER
SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION
SQLITE_DBCONFIG_ENABLE_QPSG
SQLITE_DBCONFIG_ENABLE_TRIGGER
SQLITE_DBCONFIG_ENABLE_VIEW
SQLITE_DBCONFIG_LEGACY_ALTER_TABLE
SQLITE_DBCONFIG_LEGACY_FILE_FORMAT
SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE
SQLITE_DBCONFIG_RESET_DATABASE
SQLITE_DBCONFIG_TRIGGER_EQP
SQLITE_DBCONFIG_TRUSTED_SCHEMA
SQLITE_DBCONFIG_WRITABLE_SCHEMA
- Connection オブジェクト
Connection
Connection.cursor()
Connection.blobopen()
Connection.commit()
Connection.rollback()
Connection.close()
Connection.execute()
Connection.executemany()
Connection.executescript()
Connection.create_function()
Connection.create_aggregate()
Connection.create_window_function()
Connection.create_collation()
Connection.interrupt()
Connection.set_authorizer()
Connection.set_progress_handler()
Connection.set_trace_callback()
Connection.enable_load_extension()
Connection.load_extension()
Connection.iterdump()
Connection.backup()
Connection.getlimit()
Connection.setlimit()
Connection.getconfig()
Connection.setconfig()
Connection.serialize()
Connection.deserialize()
Connection.autocommit
Connection.in_transaction
Connection.isolation_level
Connection.row_factory
Connection.text_factory
Connection.total_changes
- Cursor オブジェクト
- Row オブジェクト
- Blob オブジェクト
- PrepareProtocol オブジェクト
- 例外
- SQLite と Python の型
- デフォルトの適合関数(adapters)とデフォルトの変換関数(converters)(非推奨)
- コマンドライン・インターフェース
- ハウツー・ガイド
- 説明
- データ圧縮とアーカイブ
zlib
--- gzip 互換の圧縮gzip
--- gzip ファイルのサポートbz2
--- bzip2 圧縮のサポートlzma
--- LZMA アルゴリズムを使用した圧縮zipfile
--- ZIP アーカイブの処理BadZipFile
BadZipfile
LargeZipFile
ZipInfo
is_zipfile()
ZIP_STORED
ZIP_DEFLATED
ZIP_BZIP2
ZIP_LZMA
- ZipFile オブジェクト
- Path オブジェクト
- PyZipFile オブジェクト
- ZipInfo オブジェクト
ZipInfo.from_file()
ZipInfo.is_dir()
ZipInfo.filename
ZipInfo.date_time
ZipInfo.compress_type
ZipInfo.comment
ZipInfo.extra
ZipInfo.create_system
ZipInfo.create_version
ZipInfo.extract_version
ZipInfo.reserved
ZipInfo.flag_bits
ZipInfo.volume
ZipInfo.internal_attr
ZipInfo.external_attr
ZipInfo.header_offset
ZipInfo.CRC
ZipInfo.compress_size
ZipInfo.file_size
- コマンドラインインターフェイス
- Decompression pitfalls
tarfile
--- tar アーカイブファイルの読み書きopen()
is_tarfile()
TarError
ReadError
CompressionError
StreamError
ExtractError
HeaderError
FilterError
AbsolutePathError
OutsideDestinationError
SpecialFileError
AbsoluteLinkError
LinkOutsideDestinationError
ENCODING
USTAR_FORMAT
GNU_FORMAT
PAX_FORMAT
DEFAULT_FORMAT
- TarFile オブジェクト
- TarInfo オブジェクト
TarInfo
TarInfo.frombuf()
TarInfo.fromtarfile()
TarInfo.tobuf()
TarInfo.name
TarInfo.size
TarInfo.mtime
TarInfo.mode
TarInfo.type
TarInfo.linkname
TarInfo.uid
TarInfo.gid
TarInfo.uname
TarInfo.gname
TarInfo.pax_headers
TarInfo.isfile()
TarInfo.isreg()
TarInfo.isdir()
TarInfo.issym()
TarInfo.islnk()
TarInfo.ischr()
TarInfo.isblk()
TarInfo.isfifo()
TarInfo.isdev()
- Extraction filters
- コマンドラインインターフェイス
- 使用例
- サポートしている tar フォーマット
- Unicode に関する問題
- ファイルフォーマット
csv
--- CSV ファイルの読み書きconfigparser
--- 設定ファイルのパーサー- クイックスタート
- サポートされるデータ型
- 代替値
- サポートするINI ファイルの構造
- 値の補間
- マップ型プロトコルアクセス
- パーサーの振る舞いをカスタマイズする
- レガシーな API の例
- ConfigParser オブジェクト
ConfigParser
ConfigParser.defaults()
ConfigParser.sections()
ConfigParser.add_section()
ConfigParser.has_section()
ConfigParser.options()
ConfigParser.has_option()
ConfigParser.read()
ConfigParser.read_file()
ConfigParser.read_string()
ConfigParser.read_dict()
ConfigParser.get()
ConfigParser.getint()
ConfigParser.getfloat()
ConfigParser.getboolean()
ConfigParser.items()
ConfigParser.set()
ConfigParser.write()
ConfigParser.remove_option()
ConfigParser.remove_section()
ConfigParser.optionxform()
MAX_INTERPOLATION_DEPTH
- RawConfigParser オブジェクト
- 例外
tomllib
--- TOMLファイルの解析netrc
--- netrc ファイルの処理plistlib
--- Apple.plist
ファイルの生成と解析
- 暗号関連のサービス
- 汎用オペレーティングシステムサービス
os
--- 雑多なオペレーティングシステムインターフェースerror
name
- ファイル名、コマンドライン引数、および環境変数
- Python UTF-8 Mode
- プロセスのパラメーター
ctermid()
environ
environb
fsencode()
fsdecode()
fspath()
PathLike
getenv()
getenvb()
get_exec_path()
getegid()
geteuid()
getgid()
getgrouplist()
getgroups()
getlogin()
getpgid()
getpgrp()
getpid()
getppid()
getpriority()
PRIO_PROCESS
PRIO_PGRP
PRIO_USER
PRIO_DARWIN_THREAD
PRIO_DARWIN_PROCESS
PRIO_DARWIN_BG
PRIO_DARWIN_NONUI
getresuid()
getresgid()
getuid()
initgroups()
putenv()
setegid()
seteuid()
setgid()
setgroups()
setns()
setpgrp()
setpgid()
setpriority()
setregid()
setresgid()
setresuid()
setreuid()
getsid()
setsid()
setuid()
strerror()
supports_bytes_environ
umask()
uname()
unsetenv()
unshare()
CLONE_FILES
CLONE_FS
CLONE_NEWCGROUP
CLONE_NEWIPC
CLONE_NEWNET
CLONE_NEWNS
CLONE_NEWPID
CLONE_NEWTIME
CLONE_NEWUSER
CLONE_NEWUTS
CLONE_SIGHAND
CLONE_SYSVSEM
CLONE_THREAD
CLONE_VM
- ファイルオブジェクトの生成
- ファイル記述子の操作
close()
closerange()
copy_file_range()
device_encoding()
dup()
dup2()
fchmod()
fchown()
fdatasync()
fpathconf()
fstat()
fstatvfs()
fsync()
ftruncate()
get_blocking()
isatty()
lockf()
F_LOCK
F_TLOCK
F_ULOCK
F_TEST
login_tty()
lseek()
SEEK_SET
SEEK_CUR
SEEK_END
SEEK_HOLE
SEEK_DATA
open()
O_RDONLY
O_WRONLY
O_RDWR
O_APPEND
O_CREAT
O_EXCL
O_TRUNC
O_DSYNC
O_RSYNC
O_SYNC
O_NDELAY
O_NONBLOCK
O_NOCTTY
O_CLOEXEC
O_BINARY
O_NOINHERIT
O_SHORT_LIVED
O_TEMPORARY
O_RANDOM
O_SEQUENTIAL
O_TEXT
O_EVTONLY
O_FSYNC
O_SYMLINK
O_NOFOLLOW_ANY
O_ASYNC
O_DIRECT
O_DIRECTORY
O_NOFOLLOW
O_NOATIME
O_PATH
O_TMPFILE
O_SHLOCK
O_EXLOCK
openpty()
pipe()
pipe2()
posix_fallocate()
posix_fadvise()
POSIX_FADV_NORMAL
POSIX_FADV_SEQUENTIAL
POSIX_FADV_RANDOM
POSIX_FADV_NOREUSE
POSIX_FADV_WILLNEED
POSIX_FADV_DONTNEED
pread()
preadv()
RWF_NOWAIT
RWF_HIPRI
pwrite()
pwritev()
RWF_DSYNC
RWF_SYNC
RWF_APPEND
read()
sendfile()
SF_NODISKIO
SF_MNOWAIT
SF_SYNC
SF_NOCACHE
set_blocking()
splice()
SPLICE_F_MOVE
SPLICE_F_NONBLOCK
SPLICE_F_MORE
readv()
tcgetpgrp()
tcsetpgrp()
ttyname()
write()
writev()
- ターミナルのサイズの問い合わせ
- ファイル記述子の継承
- ファイルとディレクトリ
access()
F_OK
R_OK
W_OK
X_OK
chdir()
chflags()
chmod()
chown()
chroot()
fchdir()
getcwd()
getcwdb()
lchflags()
lchmod()
lchown()
link()
listdir()
listdrives()
listmounts()
listvolumes()
lstat()
mkdir()
makedirs()
mkfifo()
mknod()
major()
minor()
makedev()
pathconf()
pathconf_names
readlink()
remove()
removedirs()
rename()
renames()
replace()
rmdir()
scandir()
DirEntry
stat()
stat_result
stat_result.st_mode
stat_result.st_ino
stat_result.st_dev
stat_result.st_nlink
stat_result.st_uid
stat_result.st_gid
stat_result.st_size
stat_result.st_atime
stat_result.st_mtime
stat_result.st_ctime
stat_result.st_atime_ns
stat_result.st_mtime_ns
stat_result.st_ctime_ns
stat_result.st_birthtime
stat_result.st_birthtime_ns
stat_result.st_blocks
stat_result.st_blksize
stat_result.st_rdev
stat_result.st_flags
stat_result.st_gen
stat_result.st_fstype
stat_result.st_rsize
stat_result.st_creator
stat_result.st_type
stat_result.st_file_attributes
stat_result.st_reparse_tag
statvfs()
supports_dir_fd
supports_effective_ids
supports_fd
supports_follow_symlinks
symlink()
sync()
truncate()
unlink()
utime()
walk()
fwalk()
memfd_create()
MFD_CLOEXEC
MFD_ALLOW_SEALING
MFD_HUGETLB
MFD_HUGE_SHIFT
MFD_HUGE_MASK
MFD_HUGE_64KB
MFD_HUGE_512KB
MFD_HUGE_1MB
MFD_HUGE_2MB
MFD_HUGE_8MB
MFD_HUGE_16MB
MFD_HUGE_32MB
MFD_HUGE_256MB
MFD_HUGE_512MB
MFD_HUGE_1GB
MFD_HUGE_2GB
MFD_HUGE_16GB
eventfd()
eventfd_read()
eventfd_write()
EFD_CLOEXEC
EFD_NONBLOCK
EFD_SEMAPHORE
- Timer File Descriptors
- Linux 拡張属性
- プロセス管理
abort()
add_dll_directory()
execl()
execle()
execlp()
execlpe()
execv()
execve()
execvp()
execvpe()
_exit()
EX_OK
EX_USAGE
EX_DATAERR
EX_NOINPUT
EX_NOUSER
EX_NOHOST
EX_UNAVAILABLE
EX_SOFTWARE
EX_OSERR
EX_OSFILE
EX_CANTCREAT
EX_IOERR
EX_TEMPFAIL
EX_PROTOCOL
EX_NOPERM
EX_CONFIG
EX_NOTFOUND
fork()
forkpty()
kill()
killpg()
nice()
pidfd_open()
PIDFD_NONBLOCK
plock()
popen()
posix_spawn()
POSIX_SPAWN_OPEN
POSIX_SPAWN_CLOSE
POSIX_SPAWN_DUP2
posix_spawnp()
register_at_fork()
spawnl()
spawnle()
spawnlp()
spawnlpe()
spawnv()
spawnve()
spawnvp()
spawnvpe()
P_NOWAIT
P_NOWAITO
P_WAIT
P_DETACH
P_OVERLAY
startfile()
system()
times()
wait()
waitid()
waitpid()
wait3()
wait4()
P_PID
P_PGID
P_ALL
P_PIDFD
WCONTINUED
WEXITED
WSTOPPED
WUNTRACED
WNOHANG
WNOWAIT
CLD_EXITED
CLD_KILLED
CLD_DUMPED
CLD_TRAPPED
CLD_STOPPED
CLD_CONTINUED
waitstatus_to_exitcode()
WCOREDUMP()
WIFCONTINUED()
WIFSTOPPED()
WIFSIGNALED()
WIFEXITED()
WEXITSTATUS()
WSTOPSIG()
WTERMSIG()
- スケジューラーへのインターフェイス
SCHED_OTHER
SCHED_BATCH
SCHED_IDLE
SCHED_SPORADIC
SCHED_FIFO
SCHED_RR
SCHED_RESET_ON_FORK
sched_param
sched_get_priority_min()
sched_get_priority_max()
sched_setscheduler()
sched_getscheduler()
sched_setparam()
sched_getparam()
sched_rr_get_interval()
sched_yield()
sched_setaffinity()
sched_getaffinity()
- 雑多なシステム情報
- 乱数
io
--- ストリームを扱うコアツールtime
--- 時刻データへのアクセスと変換- 関数
asctime()
pthread_getcpuclockid()
clock_getres()
clock_gettime()
clock_gettime_ns()
clock_settime()
clock_settime_ns()
ctime()
get_clock_info()
gmtime()
localtime()
mktime()
monotonic()
monotonic_ns()
perf_counter()
perf_counter_ns()
process_time()
process_time_ns()
sleep()
strftime()
strptime()
struct_time
time()
time_ns()
thread_time()
thread_time_ns()
tzset()
- Clock ID Constants
- Timezone Constants
- 関数
argparse
--- コマンドラインオプション、引数、サブコマンドのパーサー