개발 도구¶
The modules described in this chapter help you write software. For example, the
pydoc
module takes a module and generates documentation based on the
module’s contents. The doctest
and unittest
modules contains
frameworks for writing unit tests that automatically exercise code and verify
that the expected output is produced. 2to3 can translate Python 2.x
source code into valid Python 3.x code.
이 장에서 설명하는 모듈 목록은 다음과 같습니다:
typing
— 형 힌트 지원- Specification for the Python Type System
- 형 에일리어스
- NewType
- Annotating callable objects
- 제네릭
- Annotating tuples
- The type of class objects
- Annotating generators and coroutines
- 사용자 정의 제네릭 형
Any
형- 명목적 대 구조적 서브 타이핑
- 모듈 내용
- Deprecation Timeline of Major Features
pydoc
— 설명서 생성과 온라인 도움말 시스템- 파이썬 개발 모드
doctest
— 대화형 파이썬 예제 테스트unittest
— 단위 테스트 프레임워크unittest.mock
— 모의 객체 라이브러리unittest.mock
— 시작하기- 2to3 — Automated Python 2 to 3 code translation
test
— 파이썬 용 회귀 테스트 패키지test.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 테스트용 유틸리티