14. Multiple Modules and the RPN Example

If you program in Python for any length of time, you’ll reach a point where you want to place your code in more than one source file— that is, a module. There are many advantages to using multiple modules in a single project. For example, multiple developers can work on different modules in tandem, even though they’re part of the same project. Think of trying to create something as complex as Microsoft Windows without modular development!

Python modules are easy to work with, for the most part, but there are some gotchas that can crop up and bite you, like a snake. But not to worry. We’ll safely steer you around those gotchas.

This chapter also completes the Reverse Polish Notation example this book has ...

Get Supercharged Python: Take Your Code to the Next Level, First Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.