Python Programming
This book describes Python, an open-source general-purpose interpreted programming language available for most popular operating systems. The current versions are 3.x while versions 2.x are no longer supported, since 2020. This book describes primarily the versions 3.x, but does at times reference versions 2.x.
Contents Edit
Intro Edit
Basics Edit
- Creating Python programs
- Variables and Strings
- Basic syntax
- Sequences (Strings, Lists, Tuples, Dictionaries, Sets)
- Data types
- Basic Math -- redundant to "Operators"
- Operators
- Control Flow
- Decision Control
- Functions
- Scoping
- Input and Output
- Files
- Modules
- Classes
- Exceptions
- Errors
- Source Documentation and Comments
- Idioms
- Package management
- Python 2 vs. Python 3
Advanced Edit
- Decorators
- Context Managers
- Reflection
- Metaclasses
- Performance
- PyPy
- Cython
- Command-line one-liners
- Tips and Tricks
Modules Edit
Standard library modules Edit
- Standard Library
- Regular Expression
- External commands
- XML Tools
- Threading
- Sockets
- GUI Programming
- Tkinter
- CGI interface
- WSGI web programming
- Internet
- Networks
- Math
Third-party modules Edit
- Databases -- to be merged with the following chapter
- Database Programming
- numpy
- Game Programming in Python
- Qt4
- Dbus
- pyFormex
- matplotlib
- Sorted Container Types
- Excel
- MS Word
Writing extension modules Edit
Appendices Edit
See also Edit
- Non-Programmer's Tutorial for Python 2.6
- Non-Programmer's Tutorial for Python 3
- Python as a scripting language in GIMP