.. vim: set ft=rst: ======================================================================== A Python Book: Beginning Python, Advanced Python, and Python Exercises ======================================================================== :author: Dave Kuhlman :contact: dkuhlman (at) davekuhlman (dot) org :address: http://www.davekuhlman.org ----- :Revision: 1.3a :Date: |date| .. |date| date:: %B %d, %Y :Copyright: Copyright (c) 2009 Dave Kuhlman. All Rights Reserved. This document is subject to the provisions of the Open Source MIT License http://www.opensource.org/licenses/mit-license.php. :Abstract: This document is a self-learning document for a course in Python programming. This course contains (1) a part for beginners, (2) a discussion of several advanced topics that are of interest to Python programmers, and (3) a Python workbook with lots of exercises. .. sectnum:: :depth: 4 :start: 1 ----- .. contents:: [table of contents] ----- **Preface** This book is a collection of materials that I've used when conducting Python training and also materials from my Web site that are intended for self-instruction. You may prefer a machine readable copy of this book. You can find it in various formats here: - HTML -- http://www.davekuhlman.org/python_book_01.html - PDF -- http://www.davekuhlman.org/python_book_01.pdf - ODF/OpenOffice -- http://www.davekuhlman.org/python_book_01.odt And, let me thank the students in my Python classes. Their questions and suggestions were a great help in the preparation of these materials. ----- +++++++++++++++++++++++++++ Part 1 -- Beginning Python +++++++++++++++++++++++++++ .. include:: python_101a.txt ----- +++++++++++++++++++++++++++ Part 2 -- Advanced Python +++++++++++++++++++++++++++ .. include:: python_201a.txt ----- +++++++++++++++++++++++++++ Part 3 -- Python Workbook +++++++++++++++++++++++++++ .. include:: python_workbook_01a.txt ----- ++++++++++++++++++++++++++++++++++++++++++++++ Part 4 -- Generating Python Bindings for XML ++++++++++++++++++++++++++++++++++++++++++++++ This section discusses a specific Python tool, specifically a Python code generator that generates Python bindings for XML files. Thus, this section will help you in the following ways: 1. It will help you learn to use a specific tool, namely ``generateDS.py``, that generates Python code to be used to process XML instance documents of a particular document type. 2. It will help you gain more experience with reading, modifying and using Python code. .. include:: ../../Generateds/Generateds/tutorial/generateds_tutoriala.txt