개발 도구¶
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
— 형 힌트 지원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
— Utilities for threading teststest.support.os_helper
— Utilities for os teststest.support.import_helper
— Utilities for import teststest.support.warnings_helper
— Utilities for warnings tests