Commit Graph

33 Commits

Author SHA1 Message Date
Mark Pilgrim 2193602838 changed alphametics to use set() instead of set comprehensions, which neatly dovetails with my irrational reluctance to explain comprehensions 2009-07-15 09:54:39 -04:00
Mark Pilgrim 34bbe9e9d6 open file as late as possible (in __iter__, not __init__) 2009-07-14 00:28:46 -04:00
Mark Pilgrim 4302e3613d added section on exceptions to your-first-python-program 2009-07-14 00:07:18 -04:00
Mark Pilgrim f67581298a fixed numbering, fixed file() typo, take rules file as an argument in plural5.py 2009-07-09 01:42:21 -04:00
Mark Pilgrim 948bb064c8 raise exception at end of plural5.plural() if no rule matched. a rule should always match 2009-07-09 01:26:39 -04:00
Mark Pilgrim 3478b62a6d use with instead of try..finally, add forward references to still-unwritten Files chapter 2009-07-09 01:21:14 -04:00
Mark Pilgrim 84fb68a1c4 lists --> tuples in plural*.py examples and accompanying text 2009-07-08 16:56:11 -04:00
Mark Pilgrim 4f14392e0e preliminary notes on files 2009-06-17 23:42:12 -04:00
Mark Pilgrim 6b34c48abd regression tests 2009-06-09 13:08:20 -04:00
Mark Pilgrim 654b102d74 you wouldn't believe me if I told you 2009-06-05 23:39:50 -04:00
Mark Pilgrim 7fad5e60d2 bits and bobs 2009-06-02 19:20:06 -07:00
Mark Pilgrim bca614e2be various typos [thanks G.P.] 2009-06-01 12:19:43 -07:00
Mark Pilgrim 6822e16b62 fixed a few instances of old-style string formatting 2009-06-01 10:45:52 -07:00
Mark Pilgrim 05911f25af more work in HTTP chapter 2009-05-31 13:14:47 -07:00
Mark Pilgrim c9a3917fec typo, missing files 2009-05-29 00:49:52 -07:00
Mark Pilgrim 2c114c1035 finished XML chapter, modulo a few hrefs to fill in later 2009-05-26 11:48:44 -07:00
Mark Pilgrim ab5e21f84a more xml chapter 2009-05-21 19:04:05 -04:00
Mark Pilgrim ecb8cf0fee fixed copy-and-paste error in feed.xml 2009-05-20 10:09:26 -04:00
Mark Pilgrim 524c8d2a47 structure of an atom feed in xml chapter 2009-05-19 11:42:08 -04:00
Mark Pilgrim 9f96f01e07 use lists instead of tuples in generator chapter too [thanks A.H.] 2009-05-16 01:38:26 -04:00
Mark Pilgrim 7638a551f9 skeleton of XML chapter 2009-05-15 12:08:35 -04:00
Mark Pilgrim 4afb4d3e69 finished iterators chapter 2009-04-22 23:11:54 -04:00
Mark Pilgrim 5d31cc05a6 stub for special-method-names chapter 2009-04-21 00:03:51 -04:00
Mark Pilgrim d77d31e68d split iterators-and-generators into 2 chapters, added stubs for introduction to python classes (in iterators chapter)
--HG--
rename : iterators-and-generators.html => generators.html
2009-04-20 11:35:16 -04:00
Mark Pilgrim a947c89ecf added intro to advanced-iterators chapter 2009-04-15 22:59:05 -04:00
Mark Pilgrim 94a3353f45 finished refactoring chapter 2009-04-12 01:09:17 -04:00
Mark Pilgrim ed1ed0dd14 several more sections of strings chapter 2009-04-11 14:16:33 -04:00
Mark Pilgrim 9af198fa9c mobile CSS 2009-04-08 11:50:43 -04:00
Mark Pilgrim dbcf5c541c filled in some code examples in advanced iterators chapter 2009-03-30 09:40:46 -05:00
Mark Pilgrim 62b848996c docstring fiddling 2009-03-29 18:16:12 -05:00
Mark Pilgrim 4b4180a8f6 fixed __main__ block 2009-03-29 18:12:43 -05:00
Mark Pilgrim 8919471dd8 code for Advanced Iterators chapter 2009-03-29 18:09:43 -05:00
Mark Pilgrim 933dc9459a iterators and generators chapter
--HG--
rename : humansize.py => examples/humansize.py
rename : roman1.py => examples/roman1.py
rename : roman2.py => examples/roman2.py
rename : roman3.py => examples/roman3.py
rename : roman4.py => examples/roman4.py
rename : roman5.py => examples/roman5.py
rename : roman6.py => examples/roman6.py
rename : roman7.py => examples/roman7.py
rename : roman8.py => examples/roman8.py
rename : romantest1.py => examples/romantest1.py
rename : romantest2.py => examples/romantest2.py
rename : romantest3.py => examples/romantest3.py
rename : romantest4.py => examples/romantest4.py
rename : romantest5.py => examples/romantest5.py
rename : romantest6.py => examples/romantest6.py
rename : romantest7.py => examples/romantest7.py
rename : romantest8.py => examples/romantest8.py
2009-03-27 01:43:33 -05:00