This draft will be finalized by Friday, February 6th and posted as a
document to the Google Group. The first use of this lesson will begin
on Monday, February 9th.
===========================================
All text assignments for this lesson are from Mark Pilgrim's "Dive
Into Python".
http://diveintopython.org/toc/index.html
Week 1: Text Assignment
Chapter 2: Your First Python Program
Chapter 3: Native Datatypes
Week 2: Programming Assignment
Text Parsing:
1. Choose some text that you would like to parse, it can be a log
file, html site, xml feed, etc.
2. Write a script to read in the test file and parse out the parts
you would like in to a dictionary and print the dictionary to the
screen.
Week 3: Text Assignment
Chapter 4: The Power of Introspection
Chapter 5: Objects and Object-Orientation
Week 4: Programming Assignment
Using Classes
1. Create a class scheme for your previous parsing assignment
(suggestions will be sent out for everyone who participated in Week
2's programming assignment)
2. Create a method to refresh a given object instance from the
original parsing source
3: Extra: If it makes sense, create some dynamic attributes which
can either lazy load from the parsing source or provide dynamic
defaults for certain attributes.
Week 5: Text Assignment
Chapter 6: Exceptions and File Handling
Chapter 10: Scripts and Streams
Week 6: Programming Assignment
Creating Documents
1. Decide whether you would like to generate HTML pages, XML feeds,
or other document type from your previous objects.(suggestions will be
sent out for everyone who participated in Week 4's programming
assignment)
2. Either add methods to your previous classes to serialize to your
chosen document or create a simple wsgi server that will return
different documents.
During the text assignments participants are strongly encouraged to
send questions to the Google Group. If you finished a text assignment
early feel free to being working on the next programming assignment.
During programming assignments participants are encouraged to send
questions or problems they run in to the Google Group. All programming
assignments are to be sent to the Group for review upon completion.
The reviews are expected to bleed over in to the next week, this is
fine as the time needed for text assignments will tend to be lower
than programming assignments.