파이썬 설명서 목차¶
- 파이썬의 새로운 기능
- 파이썬 3.8의 새로운 기능
- 요약 – 배포 주요 사항
- 새로운 기능
- 기타 언어 변경
- 새 모듈
- 개선된 모듈
- ast
- asyncio
- builtins
- collections
- cProfile
- csv
- curses
- ctypes
- datetime
- functools
- gc
- gettext
- gzip
- IDLE과 idlelib
- 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
- tempfile
- threading
- tokenize
- tkinter
- time
- typing
- unicodedata
- unittest
- venv
- weakref
- xml
- xmlrpc
- 최적화
- 빌드와 C API 변경
- 폐지
- API 및 기능 제거
- 파이썬 3.8로 이식하기
- 파이썬 3.8.1의 주목할만한 변경 사항
- Notable changes in Python 3.8.2
- Notable changes in Python 3.8.3
- Notable changes in Python 3.8.8
- Notable changes in Python 3.8.9
- Notable changes in Python 3.8.10
- Notable changes in Python 3.8.10
- Notable changes in Python 3.8.12
- Notable security feature in 3.8.14
- Notable Changes in 3.8.17
- Notable changes in 3.8.20
- 파이썬 3.7의 새로운 기능
- 요약 – 배포 주요 사항
- 새로운 기능
- PEP 563 : 어노테이션의 지연된 평가
- PEP 538: 레거시 C 로케일 강제 변경
- PEP 540: 강제 UTF-8 실행시간 모드
- PEP 553: 내장
breakpoint() - PEP 539: 스레드-로컬 저장소를 위한 새로운 C API
- PEP 562: 모듈 어트리뷰트에 대한 액세스 사용자 정의
- PEP 564: 나노초 해상도의 새로운 시간 함수
- PEP 565:
__main__의 DeprecationWarning 표시 - PEP 560:
typing모듈과 제네릭 형에 대한 코어 지원 - PEP 552: 해시 기반 .pyc 파일
- PEP 545: 파이썬 설명서 번역
- 개발 실행시간 모드: -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 변경
- 빌드 변경
- 최적화
- 기타 CPython 구현 변경
- 폐지된 파이썬 동작
- 폐지된 파이썬 모듈, 함수 및 메서드
- 폐지된 C API의 함수 및 형
- 플랫폼 지원 제거
- API 및 기능 제거
- 모듈 제거
- 윈도우 전용 변경
- 파이썬 3.7로 이식하기
- 파이썬 3.7.1의 주목할만한 변경 사항
- 파이썬 3.7.2의 주목할만한 변경 사항
- 파이썬 3.7.6의 주목할만한 변경 사항
- Notable changes in Python 3.7.10
- What’s New In Python 3.6
- Summary – Release highlights
- New Features
- PEP 498: Formatted string literals
- PEP 526: Syntax for variable annotations
- PEP 515: Underscores in Numeric Literals
- PEP 525: Asynchronous Generators
- PEP 530: Asynchronous Comprehensions
- PEP 487: Simpler customization of class creation
- PEP 487: Descriptor Protocol Enhancements
- PEP 519: Adding a file system path protocol
- PEP 495: Local Time Disambiguation
- PEP 529: Change Windows filesystem encoding to UTF-8
- PEP 528: Change Windows console encoding to UTF-8
- PEP 520: Preserving Class Attribute Definition Order
- PEP 468: Preserving Keyword Argument Order
- New dict implementation
- PEP 523: Adding a frame evaluation API to CPython
- PYTHONMALLOC environment variable
- DTrace and SystemTap probing support
- Other Language Changes
- New Modules
- Improved Modules
- array
- ast
- asyncio
- binascii
- cmath
- collections
- concurrent.futures
- contextlib
- datetime
- decimal
- distutils
- encodings
- enum
- faulthandler
- fileinput
- hashlib
- http.client
- idlelib and 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
- Optimizations
- Build and C API Changes
- Other Improvements
- Deprecated
- Removed
- Porting to 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
- Summary – Release highlights
- New Features
- PEP 492 - Coroutines with async and await syntax
- PEP 465 - A dedicated infix operator for matrix multiplication
- PEP 448 - Additional Unpacking Generalizations
- PEP 461 - percent formatting support for bytes and bytearray
- PEP 484 - Type Hints
- PEP 471 - os.scandir() function – a better and faster directory iterator
- PEP 475: Retry system calls failing with EINTR
- PEP 479: Change StopIteration handling inside generators
- PEP 485: A function for testing approximate equality
- PEP 486: Make the Python Launcher aware of virtual environments
- PEP 488: Elimination of PYO files
- PEP 489: Multi-phase extension module initialization
- Other Language Changes
- New Modules
- Improved Modules
- argparse
- asyncio
- bz2
- cgi
- cmath
- code
- collections
- collections.abc
- compileall
- concurrent.futures
- configparser
- contextlib
- csv
- curses
- dbm
- difflib
- distutils
- doctest
- enum
- faulthandler
- functools
- glob
- gzip
- heapq
- http
- http.client
- idlelib and 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
- Other module-level changes
- Optimizations
- Build and C API Changes
- Deprecated
- Removed
- Porting to Python 3.5
- Notable changes in Python 3.5.4
- What’s New In Python 3.4
- Summary – Release Highlights
- New Features
- New Modules
- Improved Modules
- abc
- aifc
- argparse
- audioop
- base64
- collections
- colorsys
- contextlib
- dbm
- dis
- doctest
- filecmp
- functools
- gc
- glob
- hashlib
- hmac
- html
- http
- idlelib and 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 Implementation Changes
- Deprecated
- Removed
- Porting to Python 3.4
- Changed in 3.4.3
- What’s New In Python 3.3
- Summary – Release highlights
- PEP 405: Virtual Environments
- PEP 420: Implicit Namespace Packages
- PEP 3118: New memoryview implementation and buffer protocol documentation
- PEP 393: Flexible String Representation
- PEP 397: Python Launcher for Windows
- PEP 3151: Reworking the OS and IO exception hierarchy
- PEP 380: Syntax for Delegating to a Subgenerator
- PEP 409: Suppressing exception context
- PEP 414: Explicit Unicode literals
- PEP 3155: Qualified name for classes and functions
- PEP 412: Key-Sharing Dictionary
- PEP 362: Function Signature Object
- PEP 421: Adding sys.implementation
- Using importlib as the Implementation of Import
- Other Language Changes
- A Finer-Grained Import Lock
- Builtin functions and types
- New Modules
- Improved Modules
- 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
- Optimizations
- Build and C API Changes
- Deprecated
- Porting to Python 3.3
- What’s New In Python 3.2
- PEP 384: Defining a Stable ABI
- PEP 389: Argparse Command Line Parsing Module
- PEP 391: Dictionary Based Configuration for Logging
- PEP 3148: The
concurrent.futuresmodule - PEP 3147: PYC Repository Directories
- PEP 3149: ABI Version Tagged .so Files
- PEP 3333: Python Web Server Gateway Interface v1.0.1
- Other Language Changes
- New, Improved, and Deprecated Modules
- elementtree
- functools
- itertools
- collections
- threading
- datetime and time
- math
- abc
- io
- reprlib
- logging
- csv
- contextlib
- decimal and fractions
- ftp
- popen
- select
- gzip and 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
- Multi-threading
- Optimizations
- Unicode
- Codecs
- Documentation
- IDLE
- Code Repository
- Build and C API Changes
- Porting to Python 3.2
- What’s New In Python 3.1
- What’s New In Python 3.0
- What’s New in Python 2.7
- The Future for Python 2.x
- Changes to the Handling of Deprecation Warnings
- Python 3.1 Features
- PEP 372: Adding an Ordered Dictionary to collections
- PEP 378: Format Specifier for Thousands Separator
- PEP 389: The argparse Module for Parsing Command Lines
- PEP 391: Dictionary-Based Configuration For Logging
- PEP 3106: Dictionary Views
- PEP 3137: The memoryview Object
- Other Language Changes
- New and Improved Modules
- Build and C API Changes
- Other Changes and Fixes
- Porting to Python 2.7
- New Features Added to Python 2.7 Maintenance Releases
- Two new environment variables for debug mode
- PEP 434: IDLE Enhancement Exception for All Branches
- PEP 466: Network Security Enhancements for Python 2.7
- PEP 477: Backport ensurepip (PEP 453) to Python 2.7
- PEP 476: Enabling certificate verification by default for stdlib http clients
- PEP 493: HTTPS verification migration tools for Python 2.7
- New
make regen-allbuild target - Removal of
make touchbuild target
- Acknowledgements
- What’s New in Python 2.6
- Python 3.0
- Changes to the Development Process
- PEP 343: The ‘with’ statement
- PEP 366: Explicit Relative Imports From a Main Module
- PEP 370: Per-user
site-packagesDirectory - PEP 371: The
multiprocessingPackage - PEP 3101: Advanced String Formatting
- PEP 3105:
printAs a Function - PEP 3110: Exception-Handling Changes
- PEP 3112: Byte Literals
- PEP 3116: New I/O Library
- PEP 3118: Revised Buffer Protocol
- PEP 3119: Abstract Base Classes
- PEP 3127: Integer Literal Support and Syntax
- PEP 3129: Class Decorators
- PEP 3141: A Type Hierarchy for Numbers
- Other Language Changes
- New and Improved Modules
- Deprecations and Removals
- Build and C API Changes
- Porting to Python 2.6
- Acknowledgements
- What’s New in Python 2.5
- PEP 308: Conditional Expressions
- PEP 309: Partial Function Application
- PEP 314: Metadata for Python Software Packages v1.1
- PEP 328: Absolute and Relative Imports
- PEP 338: Executing Modules as Scripts
- PEP 341: Unified try/except/finally
- PEP 342: New Generator Features
- PEP 343: The ‘with’ statement
- PEP 352: Exceptions as New-Style Classes
- PEP 353: Using ssize_t as the index type
- PEP 357: The ‘__index__’ method
- Other Language Changes
- New, Improved, and Removed Modules
- Build and C API Changes
- Porting to Python 2.5
- Acknowledgements
- What’s New in Python 2.4
- PEP 218: Built-In Set Objects
- PEP 237: Unifying Long Integers and Integers
- PEP 289: Generator Expressions
- PEP 292: Simpler String Substitutions
- PEP 318: Decorators for Functions and Methods
- PEP 322: Reverse Iteration
- PEP 324: New subprocess Module
- PEP 327: Decimal Data Type
- PEP 328: Multi-line Imports
- PEP 331: Locale-Independent Float/String Conversions
- Other Language Changes
- New, Improved, and Deprecated Modules
- Build and C API Changes
- Porting to Python 2.4
- Acknowledgements
- What’s New in Python 2.3
- PEP 218: A Standard Set Datatype
- PEP 255: Simple Generators
- PEP 263: Source Code Encodings
- PEP 273: Importing Modules from ZIP Archives
- PEP 277: Unicode file name support for Windows NT
- PEP 278: Universal Newline Support
- PEP 279: enumerate()
- PEP 282: The logging Package
- PEP 285: A Boolean Type
- PEP 293: Codec Error Handling Callbacks
- PEP 301: Package Index and Metadata for Distutils
- PEP 302: New Import Hooks
- PEP 305: Comma-separated Files
- PEP 307: Pickle Enhancements
- Extended Slices
- Other Language Changes
- New, Improved, and Deprecated Modules
- Pymalloc: A Specialized Object Allocator
- Build and C API Changes
- Other Changes and Fixes
- Porting to Python 2.3
- Acknowledgements
- What’s New in Python 2.2
- Introduction
- PEPs 252 and 253: Type and Class Changes
- PEP 234: Iterators
- PEP 255: Simple Generators
- PEP 237: Unifying Long Integers and Integers
- PEP 238: Changing the Division Operator
- Unicode Changes
- PEP 227: Nested Scopes
- New and Improved Modules
- Interpreter Changes and Fixes
- Other Changes and Fixes
- Acknowledgements
- What’s New in Python 2.1
- Introduction
- PEP 227: Nested Scopes
- PEP 236: __future__ Directives
- PEP 207: Rich Comparisons
- PEP 230: Warning Framework
- PEP 229: New Build System
- PEP 205: Weak References
- PEP 232: Function Attributes
- PEP 235: Importing Modules on Case-Insensitive Platforms
- PEP 217: Interactive Display Hook
- PEP 208: New Coercion Model
- PEP 241: Metadata in Python Packages
- New and Improved Modules
- Other Changes and Fixes
- Acknowledgements
- What’s New in Python 2.0
- Introduction
- What About Python 1.6?
- New Development Process
- Unicode
- List Comprehensions
- Augmented Assignment
- String Methods
- Garbage Collection of Cycles
- Other Core Changes
- Porting to 2.0
- Extending/Embedding Changes
- Distutils: Making Modules Easy to Install
- XML Modules
- Module changes
- New modules
- IDLE Improvements
- Deleted and Deprecated Modules
- Acknowledgements
- Changelog
- Python 3.8.20 final
- Python 3.8.19 final
- Python 3.8.18 final
- Python 3.8.17 final
- Python 3.8.16 final
- Python 3.8.15 final
- Python 3.8.14 final
- Python 3.8.13 final
- Python 3.8.12 final
- Python 3.8.11 final
- Python 3.8.10 final
- Python 3.8.9 final
- Python 3.8.8 final
- Python 3.8.8 release candidate 1
- Python 3.8.7 final
- Python 3.8.7 release candidate 1
- Python 3.8.6 final
- Python 3.8.6 release candidate 1
- Python 3.8.5 final
- Python 3.8.4 final
- Python 3.8.4 release candidate 1
- Python 3.8.3 final
- Python 3.8.3 release candidate 1
- Python 3.8.2 final
- Python 3.8.2 release candidate 2
- Python 3.8.2 release candidate 1
- Python 3.8.1 final
- Python 3.8.1 release candidate 1
- Python 3.8.0 final
- Python 3.8.0 release candidate 1
- Python 3.8.0 beta 4
- Python 3.8.0 beta 3
- Python 3.8.0 beta 2
- 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
- 파이썬 3.8의 새로운 기능
- 파이썬 자습서
- 1. 입맛 돋우기
- 2. 파이썬 인터프리터 사용하기
- 3. 파이썬의 간략한 소개
- 4. 기타 제어 흐름 도구
- 5. 자료 구조
- 6. 모듈
- 7. 입력과 출력
- 8. 에러와 예외
- 9. 클래스
- 10. 표준 라이브러리 둘러보기
- 11. 표준 라이브러리 둘러보기 — 2부
- 12. 가상 환경 및 패키지
- 13. 이제 뭘 하지?
- 14. 대화형 입력 편집 및 히스토리 치환
- 15. 부동 소수점 산술: 문제점 및 한계
- 16. 부록
- 파이썬 설정 및 사용법
- 파이썬 언어 레퍼런스
- 1. 개요
- 2. 어휘 분석
- 3. 데이터 모델
- 4. 실행 모델
- 5. 임포트 시스템
- 6. 표현식
- 6.1. 산술 변환
- 6.2. 아톰 (Atoms)
- 6.3. 프라이머리
- 6.4. 어웨이트 표현식
- 6.5. 거듭제곱 연산자
- 6.6. 일 항 산술과 비트 연산
- 6.7. 이항 산술 연산
- 6.8. 시프트 연산
- 6.9. 이항 비트 연산
- 6.10. 비교
- 6.11. 논리 연산(Boolean operations)
- 6.12. 대입 표현식
- 6.13. 조건 표현식(Conditional expressions)
- 6.14. 람다(Lambdas)
- 6.15. 표현식 목록(Expression lists)
- 6.16. 값을 구하는 순서
- 6.17. 연산자 우선순위
- 7. 단순문(Simple statements)
- 8. 복합문(Compound statements)
- 9. 최상위 요소들
- 10. 전체 문법 규격
- 파이썬 표준 라이브러리
- 소개
- 내장 함수
- 내장 상수
- 내장형
- 내장 예외
- 텍스트 처리 서비스
string— 일반적인 문자열 연산re— Regular expression operationsdifflib— 델타 계산을 위한 도우미textwrap— 텍스트 래핑과 채우기unicodedata— 유니코드 데이터베이스stringprep— 인터넷 문자열 준비readline— GNU readline 인터페이스rlcompleter— GNU readline을 위한 완성 함수
- 바이너리 데이터 서비스
- 데이터형
datetime— 기본 날짜와 시간 형calendar— 일반 달력 관련 함수collections— Container datatypescollections.abc— 컨테이너의 추상 베이스 클래스heapq— Heap queue algorithmbisect— 배열 이진 분할 알고리즘array— 효율적인 숫자 배열weakref— 약한 참조types— 동적 형 생성과 내장형 이름copy— 얕은 복사와 깊은 복사 연산pprint— 예쁜 데이터 인쇄기reprlib— 대안repr()구현enum— Support for enumerations- Module Contents
- Creating an Enum
- Programmatic access to enumeration members and their attributes
- Duplicating enum members and values
- Ensuring unique enumeration values
- Using automatic values
- Iteration
- Comparisons
- Allowed members and attributes of enumerations
- Restricted Enum subclassing
- Pickling
- Functional API
- Derived Enumerations
- When to use
__new__()vs.__init__() - Interesting examples
- How are Enums different?
- 숫자와 수학 모듈
- 함수형 프로그래밍 모듈
- 파일과 디렉터리 액세스
pathlib— Object-oriented filesystem pathsos.path— Common pathname manipulationsfileinput— 여러 입력 스트림에서 줄을 이터레이트 하기stat—stat()결과 해석하기filecmp— 파일과 디렉터리 비교tempfile— Generate temporary files and directoriesglob— 유닉스 스타일 경로명 패턴 확장fnmatch— 유닉스 파일명 패턴 일치linecache— 텍스트 줄에 대한 무작위 액세스shutil— 고수준 파일 연산
- 데이터 지속성
- 데이터 압축 및 보관
- 파일 형식
- 암호화 서비스
- 일반 운영 체제 서비스
os— 기타 운영 체제 인터페이스io— Core tools for working with streamstime— 시간 액세스와 변환argparse— 명령행 옵션, 인자와 부속 명령을 위한 파서getopt— 명령 줄 옵션용 C 스타일 구문 분석기logging— 파이썬 로깅 시설logging.config— 로깅 구성logging.handlers— 로깅 처리기getpass— 이식성 있는 암호 입력curses— 문자 셀 디스플레이를 위한 터미널 처리curses.textpad— curses 프로그램을 위한 텍스트 입력 위젯curses.ascii— ASCII 문자용 유틸리티curses.panel— curses 용 패널 스택 확장platform— 하부 플랫폼의 식별 데이터에 대한 액세스errno— 표준 errno 시스템 기호ctypes— 파이썬용 외부 함수 라이브러리
- 동시 실행
threading— 스레드 기반 병렬 처리multiprocessing— 프로세스 기반 병렬 처리multiprocessing.shared_memory— 프로세스 간 직접 액세스를 위한 공유 메모리를 제공합니다concurrent패키지concurrent.futures— 병렬 작업 실행하기subprocess— Subprocess managementsched— 이벤트 스케줄러queue— 동기화된 큐 클래스contextvars— 컨텍스트 변수_thread— 저수준 스레드 API_dummy_thread—_thread모듈의 드롭인 교체dummy_threading—threading모듈의 드롭인 교체
- 네트워킹과 프로세스 간 통신
asyncio— 비동기 I/Osocket— 저수준 네트워킹 인터페이스ssl— 소켓 객체용 TLS/SSL 래퍼select— I/O 완료 대기selectors— 고수준 I/O 다중화asyncore— Asynchronous socket handlerasynchat— Asynchronous socket command/response handlersignal— 비동기 이벤트에 대한 처리기 설정mmap— 메모리 맵 파일 지원
- 인터넷 데이터 처리
email— 전자 메일과 MIME 처리 패키지email.message: 전자 메일 메시지 표현email.parser: 전자 메일 메시지 구문 분석email.generator: MIME 문서 생성email.policy: 정책 객체email.errors: 예외와 결함 클래스email.headerregistry: 사용자 정의 헤더 객체email.contentmanager: MIME 콘텐츠 관리email: 예제email.message.Message:compat32API를 사용하여 이메일 메시지 표현하기email.mime: 처음부터 이메일과 MIME 객체 만들기email.header: 국제화된 헤더email.charset: 문자 집합 표현email.encoders: 인코더email.utils: 기타 유틸리티email.iterators: 이터레이터
json— JSON 인코더와 디코더mailcap— Mailcap 파일 처리mailbox— 다양한 형식의 사서함 조작하기mimetypes— 파일명을 MIME 유형에 매핑base64— Base16, Base32, Base64, Base85 데이터 인코딩binhex— binhex4 파일 인코딩과 디코딩binascii— 바이너리와 ASCII 간의 변환quopri— MIME quoted-printable 데이터 인코딩과 디코딩uu— uuencode 파일 인코딩과 디코딩
- 구조화된 마크업 처리 도구
html— 하이퍼텍스트 마크업 언어 지원html.parser— 간단한 HTML과 XHTML 구문 분석기html.entities— HTML 일반 엔티티의 정의- XML 처리 모듈
xml.etree.ElementTree— ElementTree XML APIxml.dom— 문서 객체 모델 APIxml.dom.minidom— 최소 DOM 구현xml.dom.pulldom— 부분 DOM 트리 구축 지원xml.sax— SAX2 구문 분석기 지원xml.sax.handler— SAX 처리기의 베이스 클래스xml.sax.saxutils— SAX 유틸리티xml.sax.xmlreader— XML 구문 분석기 인터페이스xml.parsers.expat— Expat을 사용한 빠른 XML 구문 분석
- 인터넷 프로토콜과 지원
webbrowser— 편리한 웹 브라우저 제어기cgi— Common Gateway Interface supportcgitb— CGI 스크립트를 위한 트레이스백 관리자wsgiref— WSGI 유틸리티와 참조 구현urllib— URL 처리 모듈urllib.request— Extensible library for opening URLs- Request Objects
- OpenerDirector Objects
- BaseHandler Objects
- HTTPRedirectHandler Objects
- HTTPCookieProcessor Objects
- ProxyHandler Objects
- HTTPPasswordMgr Objects
- HTTPPasswordMgrWithPriorAuth Objects
- AbstractBasicAuthHandler Objects
- HTTPBasicAuthHandler Objects
- ProxyBasicAuthHandler Objects
- AbstractDigestAuthHandler Objects
- HTTPDigestAuthHandler Objects
- ProxyDigestAuthHandler Objects
- HTTPHandler Objects
- HTTPSHandler Objects
- FileHandler Objects
- DataHandler Objects
- FTPHandler Objects
- CacheFTPHandler Objects
- UnknownHandler Objects
- HTTPErrorProcessor Objects
- Examples
- Legacy interface
urllib.requestRestrictions
urllib.response— Response classes used by urlliburllib.parse— URL을 구성 요소로 구문 분석urllib.error— urllib.request에 의해 발생하는 예외 클래스urllib.robotparser— robots.txt 구문 분석기http— HTTP 모듈http.client— HTTP 프로토콜 클라이언트ftplib— FTP 프로토콜 클라이언트poplib— POP3 프로토콜 클라이언트imaplib— IMAP4 프로토콜 클라이언트nntplib— NNTP 프로토콜 클라이언트smtplib— SMTP 프로토콜 클라이언트smtpd— SMTP Servertelnetlib— 텔넷 클라이언트uuid— RFC 4122 에 따른 UUID 객체socketserver— 네트워크 서버를 위한 프레임워크http.server— HTTP 서버http.cookies— HTTP 상태 관리http.cookiejar— HTTP 클라이언트를 위한 쿠키 처리xmlrpc— XMLRPC 서버와 클라이언트 모듈xmlrpc.client— XML-RPC 클라이언트 액세스xmlrpc.server— 기본 XML-RPC 서버ipaddress— IPv4/IPv6 조작 라이브러리
- 멀티미디어 서비스
- 국제화
- 프로그램 프레임워크
turtle— Turtle graphicscmd— 줄 지향 명령 인터프리터 지원shlex— 간단한 어휘 분석
- Tk를 사용한 그래픽 사용자 인터페이스
- 개발 도구
typing— Support for type hintspydoc— 설명서 생성과 온라인 도움말 시스템doctest— 대화형 파이썬 예제 테스트unittest— 단위 테스트 프레임워크unittest.mock— 모의 객체 라이브러리unittest.mock— 시작하기- 2to3 - 파이썬 2에서 파이썬 3으로 자동 코드 변환
test— Regression tests package for Pythontest.support— Utilities for the Python test suitetest.support.script_helper— Utilities for the Python execution tests
- 디버깅과 프로파일링
- 소프트웨어 패키징 및 배포
- 파이썬 실행시간 서비스
sys— 시스템 특정 파라미터와 함수sysconfig— 파이썬의 구성 정보에 접근하기builtins— 내장 객체__main__— 최상위 스크립트 환경warnings— Warning controldataclasses— 데이터 클래스contextlib—with문 컨텍스트를 위한 유틸리티abc— 추상 베이스 클래스atexit— 종료 처리기traceback— 스택 트레이스백 인쇄와 조회__future__— 퓨처 문 정의gc— 가비지 수거기 인터페이스inspect— 라이브 객체 검사site— 사이트별 구성 훅
- 사용자 정의 파이썬 인터프리터
- 모듈 임포트 하기
- 파이썬 언어 서비스
parser— Access Python parse treesast— 추상 구문 트리symtable— 컴파일러 심볼 테이블 액세스symbol— 파이썬 구문 분석 트리에 사용되는 상수token— 파이썬 구문 분석 트리에 사용되는 상수keyword— 파이썬 키워드 검사tokenize— 파이썬 소스를 위한 토크나이저tabnanny— 모호한 들여쓰기 감지pyclbr— 파이썬 모듈 브라우저 지원py_compile— 파이썬 소스 파일 컴파일compileall— 파이썬 라이브러리 바이트 컴파일하기dis— 파이썬 바이트 코드 역 어셈블러pickletools— 피클 개발자를 위한 도구
- 기타 서비스
- MS 윈도우 특정 서비스
- 유닉스 특정 서비스
posix— 가장 일반적인 POSIX 시스템 호출pwd— 암호 데이터베이스spwd— 섀도 암호 데이터베이스grp— 그룹 데이터베이스crypt— 유닉스 비밀번호 확인 함수termios— POSIX 스타일 tty 제어tty— 터미널 제어 함수pty— 의사 터미널 유틸리티fcntl—fcntl과ioctl시스템 호출pipes— 셸 파이프라인에 대한 인터페이스resource— 자원 사용 정보nis— Sun의 NIS(옐로 페이지)에 대한 인터페이스syslog— 유닉스 syslog 라이브러리 루틴
- 대체된 모듈
optparse— Parser for command line options- Background
- Tutorial
- Reference Guide
- Option Callbacks
- Defining a callback option
- How callbacks are called
- Raising errors in a callback
- Callback example 1: trivial callback
- Callback example 2: check option order
- Callback example 3: check option order (generalized)
- Callback example 4: check arbitrary condition
- Callback example 5: fixed arguments
- Callback example 6: variable arguments
- Extending
optparse
imp— Access the import internals
- 문서로 만들어지지 않은 모듈
- 파이썬 인터프리터 확장 및 내장
- 파이썬/C API 레퍼런스 설명서
- 파이썬 모듈 배포하기
- 파이썬 모듈 설치하기
- 파이썬 HOWTO
- 파이썬 2 코드를 파이썬 3으로 이식하기
- 확장 모듈을 파이썬 3에 이식하기
- 파이썬 curses 프로그래밍
- 디스크립터 사용법 안내서
- 함수형 프로그래밍 HOWTO
- 로깅 HOWTO
- 로깅 요리책
- 여러 모듈에서 로깅 사용하기
- 여러 스레드에서 로깅 하기
- 다중 처리기 및 포매터
- 여러 대상으로 로깅 하기
- 구성 서버 예제
- 블록 하는 처리기 다루기
- 네트워크에서 로깅 이벤트 보내고 받기
- 로그 출력에 문맥 정보 추가
- 여러 프로세스에서 단일 파일에 로깅 하기
- 파일 회전 사용하기
- 대체 포매팅 스타일 사용하기
- 사용자 정의
LogRecord - QueueHandler 서브 클래스 만들기 - ZeroMQ 예제
- QueueListener 서브 클래스 만들기 - ZeroMQ 예제
- 딕셔너리 기반 구성의 예
- rotator와 namer를 사용해서 로그 회전 처리하기
- 좀 더 정교한 multiprocessing 예제
- SysLogHandler로 전송된 메시지에 BOM 삽입하기
- 구조적 로깅 구현
dictConfig()로 처리기를 사용자 정의하기- 응용 프로그램 전체에서 특정 포맷 스타일 사용하기
dictConfig()로 필터 구성하기- 사용자 정의된 예외 포매팅
- 로깅 메시지 말하기
- 로깅 메시지를 버퍼링하고 조건부 출력하기
- 구성을 통해 UTC(GMT)로 시간을 포맷하기
- 선택적 로깅을 위해 컨텍스트 관리자 사용하기
- CLI 응용 프로그램 시작 템플릿
- 로깅을 위한 Qt GUI
- 정규식 HOWTO
- 소켓 프로그래밍 HOWTO
- 정렬 HOW TO
- 유니코드 HOWTO
- HOWTO Fetch Internet Resources Using The urllib Package
- Argparse 자습서
- ipaddress 모듈에 대한 소개
- Argument Clinic How-To
- The Goals Of Argument Clinic
- Basic Concepts And Usage
- Converting Your First Function
- Advanced Topics
- Symbolic default values
- Renaming the C functions and variables generated by Argument Clinic
- Converting functions using PyArg_UnpackTuple
- Optional Groups
- Using real Argument Clinic converters, instead of “legacy converters”
- Py_buffer
- Advanced converters
- Parameter default values
- The
NULLdefault value - Expressions specified as default values
- Using a return converter
- Cloning existing functions
- Calling Python code
- Using a “self converter”
- Writing a custom converter
- Writing a custom return converter
- METH_O and METH_NOARGS
- tp_new and tp_init functions
- Changing and redirecting Clinic’s output
- The #ifdef trick
- Using Argument Clinic in Python files
- DTrace와 SystemTap으로 CPython 계측하기
- 파이썬 자주 나오는 질문들
- 일반적인 파이썬 FAQ
- 프로그래밍 FAQ
- 설계와 역사 FAQ
- 파이썬은 왜 문장의 그룹화에 들여쓰기를 사용합니까?
- 간단한 산술 연산으로 이상한 결과가 나오는 이유는 무엇입니까?
- 부동 소수점 계산이 왜 그렇게 부정확합니까?
- 파이썬 문자열이 불변인 이유는 무엇입니까?
- 메서드 정의와 호출에서 ‘self’를 명시적으로 사용해야 하는 이유는 무엇입니까?
- 표현식에서 대입을 사용할 수 없는 이유는 무엇입니까?
- 파이썬은 왜 일부 기능(예를 들어 list.index())에는 메서드를 사용하고 다른 기능(예를 들어 len(list))에는 함수를 사용합니까?
- join()이 리스트나 튜플 메서드가 아니라 문자열 메서드인 이유는 무엇입니까?
- 예외는 얼마나 빠릅니까?
- 파이썬에 switch 나 case 문이 없는 이유는 무엇입니까?
- OS별 스레드 구현에 의존하는 대신 인터프리터에서 스레드를 에뮬레이션할 수 없습니까?
- 람다 표현식이 문장을 포함할 수 없는 이유는 무엇입니까?
- 파이썬을 기계 코드, C 또는 다른 언어로 컴파일 할 수 있습니까?
- 파이썬은 메모리를 어떻게 관리합니까?
- CPython이 더 전통적인 가비지 수거 체계를 사용하지 않는 이유는 무엇입니까?
- CPython이 종료될 때 모든 메모리가 해제되지 않는 이유는 무엇입니까?
- 별도의 튜플과 리스트 데이터형이 있는 이유는 무엇입니까?
- CPython에서 리스트는 어떻게 구현됩니까?
- CPython에서 딕셔너리는 어떻게 구현됩니까?
- 딕셔너리 키가 불변이어야 하는 이유는 무엇입니까?
- list.sort()가 정렬된 리스트를 반환하지 않는 이유는 무엇입니까?
- 파이썬에서 인터페이스 명세를 어떻게 지정하고 강제합니까?
- goto가 없는 이유는 무엇입니까?
- 날 문자열(r-strings)이 역 슬래시로 끝날 수 없는 이유는 무엇입니까?
- 왜 파이썬에는 어트리뷰트 대입을 위한 “with” 문이 없습니까?
- if/while/def/class 문에 콜론이 필요한 이유는 무엇입니까?
- 파이썬은 왜 리스트와 튜플 끝에 쉼표를 허용합니까?
- 라이브러리와 확장 FAQ
- 확장/내장 FAQ
- C로 나만의 함수를 만들 수 있습니까?
- C++로 나만의 함수를 만들 수 있습니까?
- C를 쓰는 것은 어렵습니다; 대안이 있습니까?
- C에서 임의의 파이썬 문장을 어떻게 실행할 수 있습니까?
- C에서 임의의 파이썬 표현식을 어떻게 평가할 수 있습니까?
- 파이썬 객체에서 C값을 어떻게 추출합니까?
- Py_BuildValue()를 사용하여 임의 길이의 튜플을 만드는 방법은 무엇입니까?
- C에서 객체의 메서드를 어떻게 호출합니까?
- PyErr_Print()의 출력(또는 stdout/stderr로 인쇄되는 모든 것)을 어떻게 잡습니까?
- C에서 파이썬으로 작성된 모듈에 어떻게 액세스합니까?
- 파이썬에서 C++ 객체에 어떻게 인터페이스 합니까?
- Setup 파일을 사용하여 모듈을 추가했는데 make가 실패합니다; 왜 그렇습니까?
- 확장을 어떻게 디버깅합니까?
- 리눅스 시스템에서 파이썬 모듈을 컴파일하고 싶지만, 일부 파일이 없습니다. 왜 그렇습니까?
- “잘못된 입력”과 “불완전한 입력”을 어떻게 구별할 수 있습니까?
- 정의되지 않은 g++ 기호 __builtin_new나 __pure_virtual을 어떻게 찾을 수 있습니까?
- 일부 메서드는 C로 구현되고 그 밖의 것은 파이썬으로 구현된 (예를 들어 상속을 통해) 객체 클래스를 만들 수 있습니까?
- 윈도우 파이썬 FAQ
- 그래픽 사용자 인터페이스 FAQ
- “왜 내 컴퓨터에 파이썬이 설치되어 있습니까?” FAQ
- 용어집
- 이 설명서에 관하여
- 버그 다루기
- 저작권
- 역사와 라이센스