List of Listings – The Quick Python Book

List of Listings

Chapter 3. The Quick Python overview

Listing 3.1. File exception.py

Listing 3.2. File wo.py

Listing 3.3. File sh.py

Chapter 8. Control flow

Listing 8.1. word_count.py

Listing 8.2. word_count.tst

Chapter 9. Functions

Listing 9.1. File nonlocal.py

Chapter 10. Modules and scoping rules

Listing 10.1. File mymath.py

Listing 10.2. File myModules.pth

Listing 10.3. File modtest.py

Listing 10.4. File scopetest.py

Chapter 11. Python programs

Listing 11.1. File script1.py

Listing 11.2. File script2.py

Listing 11.3. File replace.py

Listing 11.4. File opts.py

Listing 11.5. File script4.py

Listing 11.6. File sole1.tst

Listing 11.7. File sole2.tst

Listing 11.8. File script5.py

Listing 11.9. File script6.py

Listing 11.10. File script4a.py

Listing 11.11. File script4b.py

Listing 11.12. File script4c.py

Listing 11.13. File script7.py

Listing 11.14. File n2w.py

Listing 11.15. File n2w.tst

Chapter 13. Reading and writing files

Listing 13.1. File mio.py

Listing 13.2. File sole.py

Chapter 15. Classes and object-oriented programming

Listing 15.1. File circle.py

Listing 15.2. File circle_cm.py

Listing 15.3. File cs.py

Chapter 16. Graphical user interfaces

Listing 16.1. File tk_count.py

Listing 16.2. File tk_grid.py

Listing 16.3. File tk_count_oop.py

Chapter 18. Packages

Listing 18.1. File mathproj/__init__.py

Listing 18.2. File mathproj/comp/__init__.py

Listing 18.3. File mathproj/comp/c1.py

Listing 18.4. File mathproj/comp/numeric/__init__.py

Listing 18.5. File mathproj/comp/numeric/n1.py

Listing 18.6. File mathproj/comp/numeric/n2.py

Chapter 20. Advanced object-oriented features

Listing 20.1. File color_module.py

Chapter 21. Testing your code made easy(-er)

Listing 21.1. File assert_test.py

Listing 21.2. File typedlist_doctest.py

Listing 21.3. File testtypedlist.py

Chapter 22. Moving from Python 2 to Python 3

Listing 22.1. File convert2_3.py

Listing 22.2. File convert2_3.diff

Listing 22.3. File convert2_3_converted.py

Chapter 24. Network, web, and database programming

Listing 24.1. File message_wall01.py

Listing 24.2. File message_wall02.py

Listing 24.3. File message_wall03.py

Listing 24.4. File message_wall04.py

Listing 24.5. File message_wall05.py