April 2014
Beginner to intermediate
634 pages
15h 22m
English
The PY file format means using Python code as the configuration file as well as the language to implement the application. We will have a configuration file that's simply a module; the configuration is written in the Python syntax. This removes the need to parse the module.
Using Python gives us a number of design considerations. We have two overall strategies to use Python as the configuration file:
We can design a top-level script file that looks like the following code:
from simulator import ...