파이썬 설명서 목차¶
- 파이썬의 새로운 기능
- 파이썬 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
- xml.etree
- xmlrpc.server
- zipapp
- zipfile
- C API 변경
- 빌드 변경
- 최적화
- 기타 CPython 구현 변경
- 폐지된 파이썬 동작
- 폐지된 파이썬 모듈, 함수 및 메서드
- 폐지된 C API의 함수 및 형
- 플랫폼 지원 제거
- API 및 기능 제거
- 모듈 제거
- 윈도우 전용 변경
- 파이썬 3.7로 이식하기
- 파이썬 3.7.1의 주목할만한 변경 사항
- 파이썬 3.7.2의 주목할만한 변경 사항
- Notable changes in Python 3.7.6
- Notable changes in Python 3.7.10
- Notable changes in Python 3.7.11
- Notable security feature in 3.7.14
- 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.7.17 final
- Python 3.7.16 final
- Python 3.7.15 final
- Python 3.7.14 final
- Python 3.7.13 final
- Python 3.7.12 final
- Python 3.7.11 final
- Python 3.7.10 final
- Python 3.7.9 final
- Python 3.7.8 final
- Python 3.7.8 release candidate 1
- Python 3.7.7 final
- Python 3.7.7 release candidate 1
- Python 3.7.6 final
- Python 3.7.6 release candidate 1
- Python 3.7.5 final
- Python 3.7.5 release candidate 1
- Python 3.7.4 final
- Python 3.7.4 release candidate 2
- Python 3.7.4 release candidate 1
- Python 3.7.3 final
- Python 3.7.3 release candidate 1
- Python 3.7.2 final
- Python 3.7.2 release candidate 1
- Python 3.7.1 final
- Python 3.7.1 release candidate 2
- Python 3.7.1 release candidate 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.7의 새로운 기능
- 파이썬 자습서
- 파이썬 설정 및 사용법
- 1. 명령 줄과 환경
- 2. 유닉스 플랫폼에서 파이썬 사용하기
- 3. Using Python on Windows
- 3.1. The full installer
- 3.2. The Microsoft Store package
- 3.3. The nuget.org packages
- 3.4. The embeddable package
- 3.5. Alternative bundles
- 3.6. Configuring Python
- 3.7. UTF-8 mode
- 3.8. Python Launcher for Windows
- 3.9. Finding modules
- 3.10. Additional modules
- 3.11. Compiling Python on Windows
- 3.12. Other Platforms
- 4. 매킨토시에서 파이썬 사용하기
- 5. Editors and IDEs
- 파이썬 언어 레퍼런스
- 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. 조건 표현식(Conditional expressions)
- 6.13. 람다(Lambdas)
- 6.14. 표현식 목록(Expression lists)
- 6.15. 값을 구하는 순서
- 6.16. 연산자 우선순위
- 7. 단순문(Simple statements)
- 8. 복합문(Compound statements)
- 9. 최상위 요소들
- 10. 전체 문법 규격
- 파이썬 표준 라이브러리
- 소개
- 내장 함수
- 내장 상수
- 내장형
- 내장 예외
- 텍스트 처리 서비스
string— 일반적인 문자열 연산re— Regular expression operationsdifflib— 델타 계산을 위한 도우미textwrap— 텍스트 래핑과 채우기unicodedata— 유니코드 데이터베이스stringprep— 인터넷 문자열 준비readline— GNU readline 인터페이스rlcompleter— GNU readline을 위한 완성 함수
- 바이너리 데이터 서비스
struct— Interpret bytes as packed binary datacodecs— Codec registry and base classes
- 데이터형
datetime— 기본 날짜와 시간 형calendar— General calendar-related functionscollections— Container datatypescollections.abc— 컨테이너의 추상 베이스 클래스heapq— Heap queue algorithmbisect— 배열 이진 분할 알고리즘array— 효율적인 숫자 배열weakref— Weak referencestypes— 동적 형 생성과 내장형 이름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
- Interesting examples
- How are Enums different?
- 숫자와 수학 모듈
- 함수형 프로그래밍 모듈
- 파일과 디렉터리 액세스
pathlib— Object-oriented filesystem pathsos.path— Common pathname manipulationsfileinput— Iterate over lines from multiple input streamsstat—stat()결과 해석하기filecmp— 파일과 디렉터리 비교tempfile— Generate temporary files and directoriesglob— 유닉스 스타일 경로명 패턴 확장fnmatch— 유닉스 파일명 패턴 일치linecache— 텍스트 줄에 대한 무작위 액세스shutil— High-level file operationsmacpath— Mac OS 9 path manipulation functions
- 데이터 지속성
- 데이터 압축 및 보관
- 파일 형식
- 암호화 서비스
- 일반 운영 체제 서비스
os— 기타 운영 체제 인터페이스io— Core tools for working with streamstime— Time access and conversionsargparse— 명령행 옵션, 인자와 부속 명령을 위한 파서getopt— 명령 줄 옵션용 C 스타일 구문 분석기logging— 파이썬 로깅 시설logging.config— 로깅 구성logging.handlers— 로깅 처리기getpass— 이식성 있는 암호 입력curses— Terminal handling for character-cell displayscurses.textpad— Text input widget for curses programscurses.ascii— Utilities for ASCII characterscurses.panel— curses 용 패널 스택 확장platform— 하부 플랫폼의 식별 데이터에 대한 액세스errno— 표준 errno 시스템 기호ctypes— 파이썬용 외부 함수 라이브러리
- 동시 실행
threading— Thread-based parallelismmultiprocessing— 프로세스 기반 병렬 처리concurrent패키지concurrent.futures— 병렬 작업 실행하기subprocess— Subprocess managementsched— 이벤트 스케줄러queue— 동기화된 큐 클래스_thread— 저수준 스레드 API_dummy_thread— Drop-in replacement for the_threadmoduledummy_threading— Drop-in replacement for thethreadingmodule
contextvars— 컨텍스트 변수- 네트워킹과 프로세스 간 통신
asyncio— 비동기 I/Osocket— 저수준 네트워킹 인터페이스ssl— 소켓 객체용 TLS/SSL 래퍼select— Waiting for I/O completionselectors— 고수준 I/O 다중화asyncore— Asynchronous socket handlerasynchat— Asynchronous socket command/response handlersignal— Set handlers for asynchronous eventsmmap— 메모리 맵 파일 지원
- 인터넷 데이터 처리
email— 전자 메일과 MIME 처리 패키지email.message: Representing an email messageemail.parser: Parsing email messagesemail.generator: Generating MIME documentsemail.policy: Policy Objectsemail.errors: 예외와 결함 클래스email.headerregistry: Custom Header Objectsemail.contentmanager: MIME 콘텐츠 관리email: 예제email.message.Message: Representing an email message using thecompat32APIemail.mime: Creating email and MIME objects from scratchemail.header: Internationalized headersemail.charset: Representing character setsemail.encoders: Encodersemail.utils: 기타 유틸리티email.iterators: 이터레이터
json— JSON 인코더와 디코더mailcap— Mailcap 파일 처리mailbox— Manipulate mailboxes in various formatsmimetypes— 파일명을 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— The ElementTree XML APIxml.dom— 문서 객체 모델 APIxml.dom.minidom— 최소 DOM 구현xml.dom.pulldom— 부분 DOM 트리 구축 지원xml.sax— SAX2 구문 분석기 지원xml.sax.handler— Base classes for SAX handlersxml.sax.saxutils— SAX 유틸리티xml.sax.xmlreader— XML 구문 분석기 인터페이스xml.parsers.expat— Fast XML parsing using Expat
- 인터넷 프로토콜과 지원
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— Parse URLs into componentsurllib.error— urllib.request에 의해 발생하는 예외 클래스urllib.robotparser— robots.txt 구문 분석기http— HTTP 모듈http.client— HTTP protocol clientftplib— FTP protocol clientpoplib— POP3 프로토콜 클라이언트imaplib— IMAP4 protocol clientnntplib— NNTP protocol clientsmtplib— SMTP protocol clientsmtpd— SMTP Servertelnetlib— 텔넷 클라이언트uuid— RFC 4122 에 따른 UUID 객체socketserver— A framework for network servershttp.server— HTTP servershttp.cookies— HTTP 상태 관리http.cookiejar— Cookie handling for HTTP clientsxmlrpc— XMLRPC 서버와 클라이언트 모듈xmlrpc.client— XML-RPC client accessxmlrpc.server— 기본 XML-RPC 서버ipaddress— IPv4/IPv6 manipulation library
- 멀티미디어 서비스
- 국제화
- 프로그램 프레임워크
turtle— Turtle graphicscmd— 줄 지향 명령 인터프리터 지원shlex— Simple lexical analysis
- Tk를 사용한 그래픽 사용자 인터페이스
tkinter— Tcl/Tk 파이썬 인터페이스tkinter.ttk— Tk themed widgetstkinter.tix— Extension widgets for Tktkinter.scrolledtext— 스크롤 되는 Text 위젯- IDLE
- 기타 그래픽 사용자 인터페이스 패키지
- 개발 도구
typing— Support for type hintspydoc— 설명서 생성과 온라인 도움말 시스템doctest— 대화형 파이썬 예제 테스트unittest— 단위 테스트 프레임워크unittest.mock— mock object libraryunittest.mock— getting started- Using Mock
- Patch Decorators
- Further Examples
- Mocking chained calls
- Partial mocking
- Mocking a Generator Method
- Applying the same patch to every test method
- Mocking Unbound Methods
- Checking multiple calls with mock
- Coping with mutable arguments
- Nesting Patches
- Mocking a dictionary with MagicMock
- Mock subclasses and their attributes
- Mocking imports with patch.dict
- Tracking order of calls and less verbose call assertions
- More complex argument matching
- 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— System-specific parameters and functionssysconfig— 파이썬의 구성 정보에 접근하기builtins— 내장 객체__main__— 최상위 스크립트 환경warnings— Warning controldataclasses— 데이터 클래스contextlib— Utilities forwith-statement contextsabc— 추상 베이스 클래스atexit— 종료 처리기traceback— 스택 트레이스백 인쇄와 조회__future__— 퓨처 문 정의gc— 가비지 수거기 인터페이스inspect— Inspect live objectssite— 사이트별 구성 훅
- 사용자 정의 파이썬 인터프리터
- 모듈 임포트 하기
zipimport— Zip 저장소에서 모듈 임포트pkgutil— 패키지 확장 유틸리티modulefinder— 스크립트에서 사용되는 모듈 찾기runpy— 파이썬 모듈 찾기와 실행importlib— The implementation ofimport
- 파이썬 언어 서비스
parser— Access Python parse treesast— Abstract Syntax Treessymtable— 컴파일러 심볼 테이블 액세스symbol— 파이썬 구문 분석 트리에 사용되는 상수token— 파이썬 구문 분석 트리에 사용되는 상수keyword— 파이썬 키워드 검사tokenize— 파이썬 소스를 위한 토크나이저tabnanny— 모호한 들여쓰기 감지pyclbr— Python module browser supportpy_compile— 파이썬 소스 파일 컴파일compileall— 파이썬 라이브러리 바이트 컴파일하기dis— Disassembler for Python bytecodepickletools— 피클 개발자를 위한 도구
- 기타 서비스
- 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
- 문서로 만들어지지 않은 모듈
- 파이썬 인터프리터 확장 및 내장
- 권장 제삼자 도구
- 제삼자 도구 없이 확장 만들기
- 1. Extending Python with C or C++
- 1.1. A Simple Example
- 1.2. Intermezzo: Errors and Exceptions
- 1.3. Back to the Example
- 1.4. The Module’s Method Table and Initialization Function
- 1.5. Compilation and Linkage
- 1.6. Calling Python Functions from C
- 1.7. Extracting Parameters in Extension Functions
- 1.8. Keyword Parameters for Extension Functions
- 1.9. Building Arbitrary Values
- 1.10. Reference Counts
- 1.11. Writing Extensions in C++
- 1.12. Providing a C API for an Extension Module
- 2. Defining Extension Types: Tutorial
- 3. Defining Extension Types: Assorted Topics
- 4. C와 C++ 확장 빌드하기
- 5. 윈도우에서 C와 C++ 확장 빌드하기
- 1. Extending Python with C or C++
- 더 큰 응용 프로그램에 CPython 런타임을 내장하기
- 파이썬/C API 레퍼런스 설명서
- Introduction
- 안정적인 응용 프로그램 바이너리 인터페이스
- The Very High Level Layer
- 참조 횟수
- Exception Handling
- 유틸리티
- 추상 객체 계층
- 구상 객체 계층
- Initialization, Finalization, and Threads
- Before Python Initialization
- Global configuration variables
- Initializing and finalizing the interpreter
- Process-wide parameters
- Thread State and the Global Interpreter Lock
- Sub-interpreter support
- Asynchronous Notifications
- Profiling and Tracing
- Advanced Debugger Support
- Thread Local Storage Support
- Memory Management
- 객체 구현 지원
- API와 ABI 버전 붙이기
- 파이썬 모듈 배포하기
- 파이썬 모듈 설치하기
- 파이썬 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 Programming with Python
- Descriptor HowTo Guide
- 함수형 프로그래밍 HOWTO
- 로깅 HOWTO
- 로깅 요리책
- 여러 모듈에서 로깅 사용하기
- 여러 스레드에서 로깅 하기
- 다중 처리기 및 포매터
- 여러 대상으로 로깅 하기
- 구성 서버 예제
- 블록 하는 처리기 다루기
- 네트워크에서 로깅 이벤트 보내고 받기
- 로그 출력에 문맥 정보 추가
- 여러 프로세스에서 단일 파일에 로깅 하기
- 파일 회전 사용하기
- 대체 포매팅 스타일 사용하기
- 사용자 정의
LogRecord - QueueHandler 서브 클래스 만들기 - ZeroMQ 예제
- QueueListener 서브 클래스 만들기 - ZeroMQ 예제
- 딕셔너리 기반 구성의 예
- rotator와 namer를 사용해서 로그 회전 처리하기
- 좀 더 정교한 multiprocessing 예제
- SysLogHandler로 전송된 메시지에 BOM 삽입하기
- 구조적 로깅 구현
dictConfig()로 처리기를 사용자 정의하기- 응용 프로그램 전체에서 특정 포맷 스타일 사용하기
dictConfig()로 필터 구성하기- 사용자 정의된 예외 포매팅
- 로깅 메시지 말하기
- 로깅 메시지를 버퍼링하고 조건부 출력하기
- 구성을 통해 UTC(GMT)로 시간을 포맷하기
- 선택적 로깅을 위해 컨텍스트 관리자 사용하기
- A CLI application starter template
- A Qt GUI for logging
- Regular Expression 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 계측하기
- Porting Python 2 Code to Python 3
- 파이썬 자주 나오는 질문들
- General Python FAQ
- Programming FAQ
- Design and History FAQ
- Why does Python use indentation for grouping of statements?
- Why am I getting strange results with simple arithmetic operations?
- Why are floating-point calculations so inaccurate?
- Why are Python strings immutable?
- Why must ‘self’ be used explicitly in method definitions and calls?
- Why can’t I use an assignment in an expression?
- Why does Python use methods for some functionality (e.g. list.index()) but functions for other (e.g. len(list))?
- Why is join() a string method instead of a list or tuple method?
- How fast are exceptions?
- Why isn’t there a switch or case statement in Python?
- Can’t you emulate threads in the interpreter instead of relying on an OS-specific thread implementation?
- Why can’t lambda expressions contain statements?
- Can Python be compiled to machine code, C or some other language?
- How does Python manage memory?
- Why doesn’t CPython use a more traditional garbage collection scheme?
- Why isn’t all memory freed when CPython exits?
- Why are there separate tuple and list data types?
- How are lists implemented in CPython?
- How are dictionaries implemented in CPython?
- Why must dictionary keys be immutable?
- Why doesn’t list.sort() return the sorted list?
- How do you specify and enforce an interface spec in Python?
- Why is there no goto?
- Why can’t raw strings (r-strings) end with a backslash?
- Why doesn’t Python have a “with” statement for attribute assignments?
- Why are colons required for the if/while/def/class statements?
- Why does Python allow commas at the end of lists and tuples?
- Library and Extension 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로 구현되고 그 밖의 것은 파이썬으로 구현된 (예를 들어 상속을 통해) 객체 클래스를 만들 수 있습니까?
- Python on Windows FAQ
- How do I run a Python program under Windows?
- How do I make Python scripts executable?
- Why does Python sometimes take so long to start?
- How do I make an executable from a Python script?
- Is a
*.pydfile the same as a DLL? - How can I embed Python into a Windows application?
- How do I keep editors from inserting tabs into my Python source?
- How do I check for a keypress without blocking?
- 그래픽 사용자 인터페이스 FAQ
- “왜 내 컴퓨터에 파이썬이 설치되어 있습니까?” FAQ
- 용어집
- 이 설명서에 관하여
- 버그 다루기
- 저작권
- 역사와 라이센스
