INST 326 Module 8
Topics
This module covers some important aspects of how Python code is organized, maintained, and distributed for others to use. We will start by looking at modules and packages, and then move to exceptions and testing.
Learning Outcomes
After completing this module, students should understand:
- The basics of the Python import system
- How to create modules and packages
- How to handle exceptions and create automated tests
Readings
- “Exceptions” (Chapter 12) and “Modules” (Chapter 13) in Programming in Python 3 (zyBook)
Additional Readings (optional, as needed)
- “Packaging and testing”, Object-Oriented Programming in Python
- Python Packaging User Guide
- Pytest: Installation and Getting Started
- Mark Lutz, “Module Coding Basics,” Chapter 22 of Learning Python (available as an Ebook through UMD Libraries)