Chapter 2. Statements and Syntax
In this chapter we'll look at the following recipes:
Writing python script and module files
Writing long lines of code
Including descriptions and documentation
Better RST markup in docstrings
Designing complex if...elif chains
Designing a while statement which terminates
Avoiding a potential problem with break statements
Leveraging the exception matching rules
Avoiding a potential problem with an except: clause
Chaining exceptions with the raise from statement
Managing a context using the with statement