파이썬 설명서 목차¶
- 파이썬의 새로운 기능
- 파이썬 3.9의 새로운 기능
- 요약 – 배포 주요 사항
- 여러분의 코드에서 DeprecationWarning을 확인해야합니다
- 새로운 기능
- 기타 언어 변경
- 새 모듈
- 개선된 모듈
- 최적화
- 폐지
- 제거
- 파이썬 3.9로 이식하기
- 빌드 변경
- C API 변경
- 파이썬 3.9.1의 주목할만한 변경 사항
- 파이썬 3.9.2의 주목할만한 변경 사항
- 파이썬 3.9.3의 주목할만한 변경 사항
- Notable changes in Python 3.9.5
- Notable security feature in 3.9.14
- Notable Changes in 3.9.17
- Notable changes in 3.9.20
- Notable changes in 3.9.23
- 파이썬 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
- threading
- tokenize
- tkinter
- time
- typing
- unicodedata
- unittest
- venv
- weakref
- xml
- xmlrpc
- 최적화
- 빌드와 C API 변경
- 폐지
- API 및 기능 제거
- 파이썬 3.8로 이식하기
- 파이썬 3.8.1의 주목할만한 변경 사항
- 파이썬 3.8.8의 주목할만한 변경 사항
- Notable changes in Python 3.8.12
- 파이썬 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의 주목할만한 변경 사항
- 파이썬 3.7.10의 주목할만한 변경 사항
- 파이썬 3.6의 새로운 기능
- 요약 – 배포 주요 사항
- 새로운 기능
- PEP 498: 포맷 문자열 리터럴
- PEP 526: 변수 어노테이션 문법
- PEP 515: 숫자 리터럴의 밑줄
- PEP 525: 비동기 제너레이터
- PEP 530: 비동기 컴프리헨션
- PEP 487: 더 간단한 클래스 생성 사용자 정의
- PEP 487: 디스크립터 프로토콜 향상
- PEP 519: 파일 시스템 경로 프로토콜 추가
- PEP 495: 현지 시간 명확성
- PEP 529: 윈도우 파일 시스템 인코딩을 UTF-8로 변경
- PEP 528: 윈도우 콘솔 인코딩을 UTF-8로 변경
- PEP 520: 클래스 어트리뷰트 정의 순서 유지
- PEP 468: 키워드 인자 순서 유지
- 새로운 dict 구현
- PEP 523: CPython에 프레임 평가 API 추가
- PYTHONMALLOC 환경 변수
- DTrace와 SystemTap 프로브 지원
- 기타 언어 변경
- 새로운 모듈
- 개선된 모듈
- array
- ast
- asyncio
- Binascii
- cmath
- collections
- concurrent.futures
- contextlib
- datetime
- decimal
- distutils
- encodings
- 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 변경
- 기타 개선 사항
- 폐지
- 제거
- 파이썬 3.6으로 이식하기
- 파이썬 3.6.2의 주목할만한 변경 사항
- 파이썬 3.6.4의 주목할만한 변경 사항
- 파이썬 3.6.5의 주목할만한 변경 사항
- 파이썬 3.6.7의 주목할만한 변경 사항
- 파이썬 3.6.10의 주목할만한 변경 사항
- 파이썬 3.6.13의 주목할만한 변경 사항
- 파이썬 3.5의 새로운 기능
- 요약 – 배포 주요 사항
- 새로운 기능
- PEP 492 - async와 await 구문을 사용하는 코루틴
- PEP 465 - 행렬 곱셈을 위한 전용 중위(infix) 연산자
- PEP 448 - 추가적인 언 패킹 일반화
- PEP 461 - bytes와 bytearray를 위한 퍼센트 포매팅 지원
- PEP 484 - 형 힌트
- PEP 471 - os.scandir() 함수 – 더 빠르고 더 나은 디렉터리 이터레이터
- PEP 475: EINTR로 실패한 시스템 호출 재시도
- PEP 479: 제너레이터 내부에서의 StopIteration 처리 변경
- PEP 485: 대략적인 동등성을 테스트하는 함수
- PEP 486: 파이썬 런처가 가상 환경을 인식하도록 만들기
- PEP 488: PYO 파일 제거
- PEP 489: 다단계 확장 모듈 초기화
- 기타 언어 변경
- 새로운 모듈
- 개선된 모듈
- 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 및 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 변경
- 폐지
- 제거
- 파이썬 3.5로 이식하기
- 파이썬 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 next
- Python 3.9.24 final
- Python 3.9.23 final
- Python 3.9.22 final
- Python 3.9.21 final
- Python 3.9.20 final
- Python 3.9.19 final
- Python 3.9.18 final
- Python 3.9.17 final
- Python 3.9.16 final
- Python 3.9.15 final
- Python 3.9.14 final
- Python 3.9.13 final
- Python 3.9.12 final
- Python 3.9.11 final
- Python 3.9.10 final
- Python 3.9.9 final
- Python 3.9.8 final
- Python 3.9.7 final
- Python 3.9.6 final
- Python 3.9.5 final
- Python 3.9.4 final
- Python 3.9.3 final
- Python 3.9.2 final
- Python 3.9.2 release candidate 1
- Python 3.9.1 final
- Python 3.9.1 release candidate 1
- Python 3.9.0 final
- Python 3.9.0 release candidate 2
- Python 3.9.0 release candidate 1
- Python 3.9.0 beta 5
- Python 3.9.0 beta 4
- Python 3.9.0 beta 3
- Python 3.9.0 beta 2
- 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
- 파이썬 3.9의 새로운 기능
- 파이썬 자습서
- 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. 전체 문법 규격
- 파이썬 표준 라이브러리
- 소개
- 내장 함수
- 내장 상수
- 내장형
- 내장 예외
- 텍스트 처리 서비스
- 바이너리 데이터 서비스
- 데이터형
datetime— 기본 날짜와 시간 형zoneinfo— IANA 시간대 지원calendar— 일반 달력 관련 함수collections— 컨테이너 데이터형collections.abc— 컨테이너의 추상 베이스 클래스heapq— 힙 큐 알고리즘bisect— 배열 이진 분할 알고리즘array— 효율적인 숫자 배열weakref— 약한 참조types— 동적 형 생성과 내장형 이름copy— 얕은 복사와 깊은 복사 연산pprint— 예쁜 데이터 인쇄기reprlib— 대안repr()구현enum— 열거형 지원graphlib— 그래프와 유사한 구조에 작동하는 기능
- 숫자와 수학 모듈
- 함수형 프로그래밍 모듈
- 파일과 디렉터리 액세스
- 데이터 지속성
- 데이터 압축 및 보관
- 파일 형식
- 암호화 서비스
- 일반 운영 체제 서비스
os— 기타 운영 체제 인터페이스io— 스트림 작업을 위한 핵심 도구time— 시간 액세스와 변환argparse— 명령행 옵션, 인자와 부속 명령을 위한 파서getopt— 명령 줄 옵션용 C 스타일 구문 분석기logging— 파이썬 로깅 시설logging.config— 로깅 구성logging.handlers— 로깅 처리기getpass— 이식성 있는 암호 입력curses— 문자 셀 디스플레이를 위한 터미널 처리curses.textpad— curses 프로그램을 위한 텍스트 입력 위젯curses.ascii— ASCII 문자용 유틸리티curses.panel— curses 용 패널 스택 확장platform— 하부 플랫폼의 식별 데이터에 대한 액세스errno— 표준 errno 시스템 기호ctypes— 파이썬용 외부 함수 라이브러리
- 동시 실행
- 네트워킹과 프로세스 간 통신
- 인터넷 데이터 처리
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 인코더와 디코더mailbox— 다양한 형식의 사서함 조작하기mimetypes— 파일명을 MIME 유형에 매핑base64— Base16, Base32, Base64, Base85 데이터 인코딩binhex— binhex4 파일 인코딩과 디코딩binascii— 바이너리와 ASCII 간의 변환quopri— MIME quoted-printable 데이터 인코딩과 디코딩
- 구조화된 마크업 처리 도구
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— 편리한 웹 브라우저 제어기wsgiref— WSGI 유틸리티와 참조 구현urllib— URL 처리 모듈urllib.request— URL을 열기 위한 확장 가능한 라이브러리- Request 객체
- OpenerDirector 객체
- BaseHandler 객체
- HTTPRedirectHandler 객체
- HTTPCookieProcessor 객체
- ProxyHandler 객체
- HTTPPasswordMgr 객체
- HTTPPasswordMgrWithPriorAuth 객체
- AbstractBasicAuthHandler 객체
- HTTPBasicAuthHandler 객체
- ProxyBasicAuthHandler 객체
- AbstractDigestAuthHandler 객체
- HTTPDigestAuthHandler 객체
- ProxyDigestAuthHandler 객체
- HTTPHandler 객체
- HTTPSHandler 객체
- FileHandler 객체
- DataHandler 객체
- FTPHandler 객체
- CacheFTPHandler 객체
- UnknownHandler 객체
- HTTPErrorProcessor 객체
- 예
- 레거시 인터페이스
urllib.request제약 사항
urllib.response— urllib가 사용하는 응답 클래스urllib.parse— URL을 구성 요소로 구문 분석urllib.error— urllib.request에 의해 발생하는 예외 클래스urllib.robotparser— robots.txt 구문 분석기http— HTTP 모듈http.client— HTTP 프로토콜 클라이언트ftplib— FTP 프로토콜 클라이언트poplib— POP3 프로토콜 클라이언트imaplib— IMAP4 프로토콜 클라이언트smtplib— SMTP 프로토콜 클라이언트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 조작 라이브러리
- 멀티미디어 서비스
- 국제화
- 프로그램 프레임워크
- Tk를 사용한 그래픽 사용자 인터페이스
tkinter— Tcl/Tk 파이썬 인터페이스tkinter.colorchooser— 색상 선택 대화 상자tkinter.font— Tkinter 글꼴 래퍼- Tkinter 대화 상자
tkinter.messagebox— Tkinter 메시지 프롬프트tkinter.scrolledtext— 스크롤 되는 Text 위젯tkinter.dnd— 드래그 앤드 드롭 지원tkinter.ttk— Tk 테마 위젯tkinter.tix— Extension widgets for Tk- IDLE
- 개발 도구
typing— 형 힌트 지원pydoc— 설명서 생성과 온라인 도움말 시스템- 파이썬 개발 모드
- 파이썬 개발 모드의 효과
- ResourceWarning 예
- 잘못된 파일 기술자 에러 예
doctest— 대화형 파이썬 예제 테스트unittest— 단위 테스트 프레임워크unittest.mock— 모의 객체 라이브러리unittest.mock— 시작하기- 2to3 - 파이썬 2에서 파이썬 3으로 자동 코드 변환
test— 파이썬 용 회귀 테스트 패키지test.support— 파이썬 테스트 스위트용 유틸리티test.support.socket_helper— 소켓 테스트용 유틸리티test.support.script_helper— 파이썬 실행 테스트용 유틸리티test.support.bytecode_helper— 올바른 바이트 코드 생성 테스트를 위한 지원 도구
- 디버깅과 프로파일링
- 소프트웨어 패키징 및 배포
- 파이썬 실행시간 서비스
sys— 시스템 특정 파라미터와 함수sysconfig— 파이썬의 구성 정보에 접근하기builtins— 내장 객체__main__— 최상위 스크립트 환경warnings— 경고 제어dataclasses— 데이터 클래스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 윈도우 특정 서비스
- 유닉스 특정 서비스
- 대체된 모듈
aifc— AIFF와 AIFC 파일 읽고 쓰기asynchat— Asynchronous socket command/response handlerasyncore— Asynchronous socket handleraudioop— Manipulate raw audio datacgi— Common Gateway Interface supportcgitb— CGI 스크립트를 위한 트레이스백 관리자chunk— IFF 청크된 데이터 읽기crypt— 유닉스 비밀번호 확인 함수imghdr— 이미지 유형 판단imp— Access the import internalsmailcap— Mailcap 파일 처리msilib— Read and write Microsoft Installer filesnis— Sun의 NIS(옐로 페이지)에 대한 인터페이스nntplib— NNTP 프로토콜 클라이언트optparse— 명령 줄 옵션용 구문 분석기ossaudiodev— Access to OSS-compatible audio devicespipes— 셸 파이프라인에 대한 인터페이스smtpd— SMTP Serversndhdr— 음향 파일 유형 판단spwd— 섀도 암호 데이터베이스sunau— Sun AU 파일 읽고 쓰기telnetlib— 텔넷 클라이언트uu— uuencode 파일 인코딩과 디코딩xdrlib— XDR 데이터 인코딩과 디코딩
- Security Considerations
- 파이썬 인터프리터 확장 및 내장
- 파이썬/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
- Patterns to avoid
- 정규식 HOWTO
- 소켓 프로그래밍 HOWTO
- 정렬 HOW TO
- 유니코드 HOWTO
- urllib 패키지를 사용하여 인터넷 리소스를 가져오는 방법
- Argparse 자습서
- ipaddress 모듈에 대한 소개
- 인자 클리닉 How-To
- 인자 클리닉의 목표
- 기본 개념과 사용법
- 첫 번째 함수 변환하기
- 고급 주제
- 기호 기본값
- 인자 클리닉에서 생성한 C 함수와 변수 이름 변경하기
- PyArg_UnpackTuple을 사용하여 함수 변환하기
- 선택적 그룹
- “레거시 변환기” 대신 실제 인자 클리닉 변환기 사용하기
- Py_buffer
- 고급 변환기
- 매개 변수 기본값
NULL기본값- 기본값으로 지정된 표현식
- 반환 변환기 사용하기
- 기존 함수 복제하기
- 파이썬 코드 호출하기
- “self 변환기” 사용하기
- 사용자 정의 변환기 작성하기
- 사용자 정의 반환 변환기 작성하기
- METH_O와 METH_NOARGS
- tp_new와 tp_init 함수
- 클리닉 출력을 변경하고 리디렉션하기
- #ifdef 트릭
- 파이썬 파일에서 인자 클리닉 사용하기
- 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” 문이 없습니까?
- Why don’t generators support the with statement?
- 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
- 용어집
- 이 설명서에 관하여
- 버그 다루기
- 저작권
- 역사와 라이센스