파이썬 설명서 목차¶
- 파이썬의 새로운 기능
- What’s New In Python 3.10
- Summary – Release highlights
- New Features
- New Features Related to Type Hints
- Other Language Changes
- New Modules
- Improved Modules
- asyncio
- argparse
- array
- asynchat, asyncore, smtpd
- base64
- bdb
- bisect
- codecs
- collections.abc
- contextlib
- curses
- dataclasses
- distutils
- doctest
- encodings
- fileinput
- faulthandler
- gc
- glob
- hashlib
- hmac
- IDLE and idlelib
- importlib.metadata
- inspect
- itertools
- linecache
- os
- os.path
- pathlib
- platform
- pprint
- py_compile
- pyclbr
- shelve
- statistics
- site
- socket
- ssl
- sqlite3
- sys
- tempfile
- _thread
- threading
- traceback
- types
- typing
- unittest
- urllib.parse
- xml
- zipimport
- Optimizations
- Deprecated
- Removed
- Porting to Python 3.10
- CPython bytecode changes
- Build Changes
- C API Changes
- Notable security feature in 3.10.7
- Notable security feature in 3.10.8
- Notable Changes in 3.10.12
- Notable changes in 3.10.15
- Notable changes in 3.10.18
- 파이썬 3.9의 새로운 기능
- 파이썬 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의 주목할만한 변경 사항
- 파이썬 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 3.10.19 final
- Python 3.10.18 final
- Python 3.10.17 final
- Python 3.10.16 final
- Python 3.10.15 final
- Python 3.10.14 final
- Python 3.10.13 final
- Python 3.10.12 final
- Python 3.10.11 final
- Python 3.10.10 final
- Python 3.10.9 final
- Python 3.10.8 final
- Python 3.10.7 final
- Python 3.10.6 final
- Python 3.10.5 final
- Python 3.10.4 final
- Python 3.10.3 final
- Python 3.10.2 final
- Python 3.10.1 final
- Python 3.10.0 final
- Python 3.10.0 release candidate 2
- Python 3.10.0 release candidate 1
- Python 3.10.0 beta 4
- Python 3.10.0 beta 3
- Python 3.10.0 beta 2
- 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
- What’s New In Python 3.10
- 파이썬 자습서
- 1. 입맛 돋우기
- 2. 파이썬 인터프리터 사용하기
- 3. 파이썬의 간략한 소개
- 4. 기타 제어 흐름 도구
- 5. 자료 구조
- 6. 모듈
- 7. 입력과 출력
- 8. 에러와 예외
- 9. 클래스
- 10. 표준 라이브러리 둘러보기
- 11. 표준 라이브러리 둘러보기 — 2부
- 12. 가상 환경 및 패키지
- 13. 이제 뭘 하지?
- 14. 대화형 입력 편집 및 히스토리 치환
- 15. Floating Point Arithmetic: Issues and Limitations
- 16. 부록
- 파이썬 설정 및 사용법
- 1. 명령 줄과 환경
- 2. 유닉스 플랫폼에서 파이썬 사용하기
- 3. Configure Python
- 4. 윈도우에서 파이썬 사용하기
- 5. Using Python on a Mac
- 6. 편집기와 IDE
- 파이썬 언어 레퍼런스
- 1. 개요
- 2. 어휘 분석
- 3. 데이터 모델
- 3.1. 객체, 값, 형
- 3.2. 표준형 계층
- 3.3. 특수 메서드 이름들
- 3.4. 코루틴(Coroutines)
- 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. 전체 문법 규격
- 파이썬 표준 라이브러리
- 소개
- 내장 함수
- 내장 상수
- 내장형
- 논리값 검사
- 논리 연산 —
and,or,not - 비교
- 숫자 형 —
int,float,complex - 이터레이터 형
- 시퀀스 형 —
list,tuple,range - 텍스트 시퀀스 형 —
str - 바이너리 시퀀스 형 —
bytes,bytearray,memoryview - 집합 형 —
set,frozenset - 매핑 형 —
dict - 컨텍스트 관리자 형
- Type Annotation Types — Generic Alias, Union
- 기타 내장형
- 특수 어트리뷰트
- Integer string conversion length limitation
- 내장 예외
- 텍스트 처리 서비스
string— Common string operationsre— Regular expression operationsdifflib— Helpers for computing deltastextwrap— Text wrapping and fillingunicodedata— Unicode Databasestringprep— Internet String Preparationreadline— GNU readline interfacerlcompleter— Completion function for GNU readline
- 바이너리 데이터 서비스
- 데이터형
datetime— Basic date and time typeszoneinfo— IANA time zone supportcalendar— General calendar-related functionscollections— Container datatypescollections.abc— Abstract Base Classes for Containersheapq— Heap queue algorithmbisect— Array bisection algorithmarray— Efficient arrays of numeric valuesweakref— 약한 참조types— Dynamic type creation and names for built-in typescopy— Shallow and deep copy operationspprint— Data pretty printerreprlib— Alternaterepr()implementationenum— Support for enumerations- 모듈 내용
- 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?
graphlib— Functionality to operate with graph-like structures
- 숫자와 수학 모듈
- 함수형 프로그래밍 모듈
- 파일과 디렉터리 액세스
pathlib— Object-oriented filesystem pathsos.path— Common pathname manipulationsfileinput— Iterate over lines from multiple input streamsstat— Interpretingstat()resultsfilecmp— File and Directory Comparisonstempfile— Generate temporary files and directoriesglob— Unix style pathname pattern expansionfnmatch— Unix filename pattern matchinglinecache— Random access to text linesshutil— High-level file operations
- 데이터 지속성
pickle— Python object serializationcopyreg— Registerpicklesupport functionsshelve— Python object persistencemarshal— Internal Python object serializationdbm— Interfaces to Unix “databases”sqlite3— DB-API 2.0 interface for SQLite databases- Tutorial
- Reference
- How-to guides
- How to use placeholders to bind values in SQL queries
- How to adapt custom Python types to SQLite values
- How to convert SQLite values to custom Python types
- Adapter and converter recipes
- How to use connection shortcut methods
- How to use the connection context manager
- How to work with SQLite URIs
- How to create and use row factories
- Explanation
- 데이터 압축 및 보관
- 파일 형식
- 암호화 서비스
- 일반 운영 체제 서비스
os— Miscellaneous operating system interfacesio— Core tools for working with streamstime— Time access and conversionsargparse— Parser for command-line options, arguments and sub-commandsgetopt— C-style parser for command line optionslogging— Logging facility for Pythonlogging.config— Logging configurationlogging.handlers— Logging handlersgetpass— Portable password inputcurses— Terminal handling for character-cell displayscurses.textpad— curses 프로그램을 위한 텍스트 입력 위젯curses.ascii— Utilities for ASCII characterscurses.panel— A panel stack extension for cursesplatform— Access to underlying platform’s identifying dataerrno— Standard errno system symbolsctypes— A foreign function library for Python
- 동시 실행
threading— Thread-based parallelismmultiprocessing— Process-based parallelismmultiprocessing.shared_memory— Shared memory for direct access across processes- The
concurrentpackage concurrent.futures— Launching parallel taskssubprocess— Subprocess managementsched— Event schedulerqueue— A synchronized queue classcontextvars— Context Variables_thread— Low-level threading API
- 네트워킹과 프로세스 간 통신
asyncio— Asynchronous I/Osocket— Low-level networking interfacessl— TLS/SSL wrapper for socket objectsselect— Waiting for I/O completionselectors— High-level I/O multiplexingsignal— Set handlers for asynchronous eventsmmap— Memory-mapped file support
- 인터넷 데이터 처리
email— An email and MIME handling packageemail.message: Representing an email messageemail.parser: Parsing email messagesemail.generator: Generating MIME documentsemail.policy: Policy Objectsemail.errors: Exception and Defect classesemail.headerregistry: Custom Header Objectsemail.contentmanager: Managing MIME Contentemail: 예제email.message.Message:compat32API를 사용하여 이메일 메시지 표현하기email.mime: Creating email and MIME objects from scratchemail.header: Internationalized headersemail.charset: Representing character setsemail.encoders: Encodersemail.utils: Miscellaneous utilitiesemail.iterators: Iterators
json— JSON encoder and decodermailbox— Manipulate mailboxes in various formatsmimetypes— Map filenames to MIME typesbase64— Base16, Base32, Base64, Base85 Data Encodingsbinhex— Encode and decode binhex4 filesbinascii— Convert between binary and ASCIIquopri— Encode and decode MIME quoted-printable data
- 구조화된 마크업 처리 도구
html— HyperText Markup Language supporthtml.parser— Simple HTML and XHTML parserhtml.entities— Definitions of HTML general entities- XML 처리 모듈
xml.etree.ElementTree— The ElementTree XML APIxml.dom— The Document Object Model APIxml.dom.minidom— Minimal DOM implementationxml.dom.pulldom— Support for building partial DOM treesxml.sax— Support for SAX2 parsersxml.sax.handler— Base classes for SAX handlersxml.sax.saxutils— SAX Utilitiesxml.sax.xmlreader— Interface for XML parsersxml.parsers.expat— Fast XML parsing using Expat
- 인터넷 프로토콜과 지원
webbrowser— Convenient web-browser controllerwsgiref— WSGI Utilities and Reference Implementationurllib— URL handling modulesurllib.request— Extensible library for opening URLs- 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— Parse URLs into componentsurllib.error— Exception classes raised by urllib.requesturllib.robotparser— Parser for robots.txthttp— HTTP moduleshttp.client— HTTP protocol clientftplib— FTP protocol clientpoplib— POP3 protocol clientimaplib— IMAP4 protocol clientsmtplib— SMTP protocol clientuuid— UUID objects according to RFC 4122socketserver— A framework for network servershttp.server— HTTP servershttp.cookies— HTTP state managementhttp.cookiejar— Cookie handling for HTTP clientsxmlrpc— XMLRPC server and client modulesxmlrpc.client— XML-RPC client accessxmlrpc.server— Basic XML-RPC serversipaddress— IPv4/IPv6 manipulation library
- 멀티미디어 서비스
- 국제화
- 프로그램 프레임워크
- Tk를 사용한 그래픽 사용자 인터페이스
tkinter— Python interface to Tcl/Tktkinter.colorchooser— Color choosing dialogtkinter.font— Tkinter font wrapper- Tkinter 대화 상자
tkinter.messagebox— Tkinter message promptstkinter.scrolledtext— Scrolled Text Widgettkinter.dnd— Drag and drop supporttkinter.ttk— Tk themed widgetstkinter.tix— Extension widgets for Tk- IDLE
- 개발 도구
typing— 형 힌트 지원pydoc— Documentation generator and online help system- 파이썬 개발 모드
- 파이썬 개발 모드의 효과
- ResourceWarning 예
- 잘못된 파일 기술자 에러 예
doctest— Test interactive Python examplesunittest— Unit testing frameworkunittest.mock— mock object libraryunittest.mock— getting started- 2to3 — Automated Python 2 to 3 code translation
test— Regression tests package for Pythontest.support— 파이썬 테스트 스위트용 유틸리티test.support.socket_helper— 소켓 테스트용 유틸리티test.support.script_helper— 파이썬 실행 테스트용 유틸리티test.support.bytecode_helper— 올바른 바이트 코드 생성 테스트를 위한 지원 도구test.support.threading_helper— threading 테스트용 유틸리티test.support.os_helper— os 테스트용 유틸리티test.support.import_helper— 임포트 테스트용 유틸리티test.support.warnings_helper— warnings 테스트용 유틸리티
- 디버깅과 프로파일링
- 소프트웨어 패키징 및 배포
- 파이썬 실행시간 서비스
sys— System-specific parameters and functionssysconfig— Provide access to Python’s configuration informationbuiltins— Built-in objects__main__— Top-level code environmentwarnings— Warning controldataclasses— Data Classescontextlib—with문 컨텍스트를 위한 유틸리티abc— Abstract Base Classesatexit— Exit handlerstraceback— Print or retrieve a stack traceback__future__— Future statement definitionsgc— Garbage Collector interfaceinspect— Inspect live objectssite— Site-specific configuration hook
- 사용자 정의 파이썬 인터프리터
- 모듈 임포트 하기
- 파이썬 언어 서비스
ast— Abstract Syntax Treessymtable— Access to the compiler’s symbol tablestoken— Constants used with Python parse treeskeyword— Testing for Python keywordstokenize— Tokenizer for Python sourcetabnanny— Detection of ambiguous indentationpyclbr— Python module browser supportpy_compile— Compile Python source filescompileall— Byte-compile Python librariesdis— Disassembler for Python bytecodepickletools— Tools for pickle developers
- MS 윈도우 특정 서비스
- 유닉스 특정 서비스
posix— The most common POSIX system callspwd— The password databasegrp— The group databasetermios— POSIX style tty controltty— Terminal control functionspty— Pseudo-terminal utilitiesfcntl— Thefcntlandioctlsystem callsresource— Resource usage informationsyslog— Unix syslog library routines
- 대체된 모듈
aifc— Read and write AIFF and AIFC filesasynchat— Asynchronous socket command/response handlerasyncore— Asynchronous socket handleraudioop— Manipulate raw audio datacgi— Common Gateway Interface supportcgitb— Traceback manager for CGI scriptschunk— Read IFF chunked datacrypt— Function to check Unix passwordsimghdr— Determine the type of an imageimp— Access the import internalsmailcap— Mailcap file handlingmsilib— Read and write Microsoft Installer filesnis— Interface to Sun’s NIS (Yellow Pages)nntplib— NNTP protocol clientoptparse— Parser for command line optionsossaudiodev— Access to OSS-compatible audio devicespipes— Interface to shell pipelinessmtpd— SMTP Serversndhdr— Determine type of sound filespwd— The shadow password databasesunau— Read and write Sun AU filestelnetlib— Telnet clientuu— Encode and decode uuencode filesxdrlib— Encode and decode XDR data
- Security Considerations
- 파이썬 인터프리터 확장 및 내장
- 파이썬/C API 레퍼런스 설명서
- 파이썬 모듈 배포하기
- 파이썬 모듈 설치하기
- 파이썬 HOWTO
- Porting Python 2 Code to Python 3
- The Short Explanation
- Details
- Drop support for Python 2.6 and older
- Make sure you specify the proper version support in your
setup.pyfile - Have good test coverage
- Learn the differences between Python 2 & 3
- Update your code
- Prevent compatibility regressions
- Check which dependencies block your transition
- Update your
setup.pyfile to denote Python 3 compatibility - Use continuous integration to stay compatible
- Consider using optional static type checking
- 확장 모듈을 파이썬 3에 이식하기
- 파이썬 curses 프로그래밍
- Descriptor HowTo Guide
- 함수형 프로그래밍 HOWTO
- 로깅 HOWTO
- 로깅 요리책
- 여러 모듈에서 로깅 사용하기
- 여러 스레드에서 로깅 하기
- 다중 처리기 및 포매터
- 여러 대상으로 로깅 하기
- Custom handling of levels
- 구성 서버 예제
- 블록 하는 처리기 다루기
- 네트워크에서 로깅 이벤트 보내고 받기
- 로그 출력에 문맥 정보 추가
- Use of
contextvars - Imparting contextual information in handlers
- 여러 프로세스에서 단일 파일에 로깅 하기
- 파일 회전 사용하기
- 대체 포매팅 스타일 사용하기
- 사용자 정의
LogRecord - Subclassing QueueHandler - a ZeroMQ example
- Subclassing QueueListener - a ZeroMQ example
- 딕셔너리 기반 구성의 예
- rotator와 namer를 사용해서 로그 회전 처리하기
- 좀 더 정교한 multiprocessing 예제
- SysLogHandler로 전송된 메시지에 BOM 삽입하기
- 구조적 로깅 구현
dictConfig()로 처리기를 사용자 정의하기- 응용 프로그램 전체에서 특정 포맷 스타일 사용하기
dictConfig()로 필터 구성하기- 사용자 정의된 예외 포매팅
- 로깅 메시지 말하기
- 로깅 메시지를 버퍼링하고 조건부 출력하기
- Sending logging messages to email, with buffering
- 구성을 통해 UTC(GMT)로 시간을 포맷하기
- 선택적 로깅을 위해 컨텍스트 관리자 사용하기
- CLI 응용 프로그램 시작 템플릿
- 로깅을 위한 Qt GUI
- Logging to syslog with RFC5424 support
- How to treat a logger like an output stream
- Patterns to avoid
- Other resources
- 정규식 HOWTO
- 소켓 프로그래밍 HOWTO
- Sorting HOW TO
- 유니코드 HOWTO
- urllib 패키지를 사용하여 인터넷 리소스를 가져오는 방법
- Argparse 자습서
- ipaddress 모듈에 대한 소개
- 인자 클리닉 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”
- Using a “defining class” 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 계측하기
- Annotations Best Practices
- Porting Python 2 Code to Python 3
- 파이썬 자주 나오는 질문들
- 일반적인 파이썬 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
- 윈도우에서 파이썬 프로그램을 실행하려면 어떻게 해야 합니까?
- 파이썬 스크립트 실행 파일로 만들려면 어떻게 해야 합니까?
- 왜 때때로 파이썬은 시작하는 데 시간이 오래 걸립니까?
- 파이썬 스크립트에서 실행 파일을 만드는 방법은 무엇입니까?
*.pyd파일은 DLL과 동일합니까?- 윈도우 응용프로그램에 파이썬을 포함하려면 어떻게 해야 합니까?
- 편집기가 내 파이썬 소스에 탭을 삽입하지 않도록 하려면 어떻게 해야 합니까?
- 블로킹 없이 키 입력을 확인하려면 어떻게 해야 합니까?
- How do I solve the missing api-ms-win-crt-runtime-l1-1-0.dll error?
- 그래픽 사용자 인터페이스 FAQ
- “왜 내 컴퓨터에 파이썬이 설치되어 있습니까?” FAQ
- 용어집
- About these documents
- 버그 다루기
- 저작권
- 역사와 라이센스