Commit Graph

611 Commits

Author SHA1 Message Date
Guido van Rossum b55f9ff68c 100 bottles of beer on the wall example.
After a version by Fredrik Lundh that I found on the web somewhere.
(I like mine better, but of course that may have to do with my alcohol
consumption. :-)
1998-12-21 18:30:20 +00:00
Guido van Rossum fe78cc0f7e Adding Fredrik Lundh's demo of the option menu. 1998-10-20 15:32:39 +00:00
Guido van Rossum 1554b7b061 Use constants defined in cl module. (Sjoerd) 1998-10-09 13:26:29 +00:00
Guido van Rossum 1e57a04301 Removed unnecessary import of cl and CL. (Sjoerd) 1998-10-09 13:26:01 +00:00
Guido van Rossum 9c2c1e88a3 Fix multi-arg list.append() calls. 1998-10-08 15:24:48 +00:00
Barry Warsaw dfae3d55f2 Added a 'Help' special menu to show how this is done. 1998-10-06 19:37:20 +00:00
Guido van Rossum d24d3fcd03 Added the mainloop() call. 1998-09-14 17:52:29 +00:00
Guido van Rossum 5fae9e8b86 nannified 1998-09-14 17:51:14 +00:00
Guido van Rossum 4117e5428b nannified 1998-09-14 16:44:15 +00:00
Guido van Rossum dcd038ff84 nannified. 1998-09-14 15:34:45 +00:00
Guido van Rossum 7ca9a1a466 Fix a bug where comparison of a rational with a float failed because
the difference got converted to float.
Put brackets around the string representation of (non-integer)
rationals.
(Sjoerd Mullender.)
1998-09-09 14:07:06 +00:00
Guido van Rossum 482e82a0f6 Corrected some spelling and one technical error. 1998-08-10 13:18:11 +00:00
Guido van Rossum a9ca42daf0 Vladimir Marangozov's explanatory message. 1998-08-10 01:56:14 +00:00
Guido van Rossum d895749b61 New warnings to the uninitiated reader. 1998-08-10 01:54:40 +00:00
Guido van Rossum 98c92c83a5 Show how to do switchable panels. 1998-07-15 14:58:05 +00:00
Guido van Rossum 7e0e9555b7 Get rid of the lock; it's no longer needed. 1998-06-30 17:01:06 +00:00
Guido van Rossum 5542449875 Remove the doc string -- it doesn't tell the truth. 1998-05-29 20:08:35 +00:00
Guido van Rossum 0da45c4089 New demo -- Perl style regular expression matching.
Slightly more featureful than regexdemo.py.
1998-05-29 19:57:47 +00:00
Guido van Rossum 7e7912f2ca Protect all uses of the random generator with a lock.
Particles break out of their loop when the main loop exits.
1998-05-28 23:02:33 +00:00
Guido van Rossum 3d3a52aa3a An example of a multi-threaded Tkinter program. 1998-05-28 22:52:01 +00:00
Guido van Rossum f638d1c9dd Fix some comments; move 'import random' to top. 1998-05-26 21:43:44 +00:00
Guido van Rossum 6c3a2cbc52 whrandom -> random 1998-05-20 17:13:01 +00:00
Guido van Rossum 29892d848c Use whrandom instead of rand.
Run 500 steps instead of forever.
1998-05-19 21:16:10 +00:00
Guido van Rossum 8c8e814992 Add link to Anthony Baxter's enhanced version. 1998-04-27 14:14:41 +00:00
Guido van Rossum bd8341eeeb Catch exceptions in final self.destroy() call. 1998-04-10 19:17:41 +00:00
Guido van Rossum 5d97ebf2ac Got rid of redundant copy of telnetlib.py 1998-04-06 14:35:27 +00:00
Guido van Rossum 07af9a7ddd Add a sleep(0.00001) call to make sure all threads run. 1998-03-26 20:09:16 +00:00
Guido van Rossum 2e6938f167 Fix bug in islocked() -- it would always return 0. 1998-03-17 21:28:21 +00:00
Guido van Rossum 36123aae0b Removed condition.py -- it was just sync.py without
the mrsw lock and without 'condition' allocating a lock by default
1998-02-14 03:11:38 +00:00
Guido van Rossum 44f5c75f43 Add Piet van Oostrum's name to the comments. 1998-01-29 04:04:04 +00:00
Guido van Rossum dd918a990a Add simple Unix socket example by Piet van Oostrum. 1998-01-28 16:54:00 +00:00
Fred Drake 5b8b8cd6c0 Fixed typo reported by Grzegorz Makarewicz <mak@mikroplan.com.pl>. 1998-01-28 14:59:48 +00:00
Guido van Rossum 25f1722dd7 Paint demo by Dave Mitchell. There's clearly a demand for such a
demo, so here it is.
1998-01-26 16:47:30 +00:00
Guido van Rossum 48b805c07c SO_REUSEPORT should be SO_REUSEADDR.
I found this in a mail of two and a half years ago from Yusuf Goolamabbas.
1998-01-15 22:36:13 +00:00
Guido van Rossum 81e84c95c5 Just for fun, add a static module, "xyzzy" -- show that calling its
initxyzzy() works.
1997-12-25 04:51:41 +00:00
Guido van Rossum 643f8f62b4 Add setsockopt...SO_REUSEADDR to avoid stupid waiting when killing and
restarting the server.
1997-12-25 04:48:51 +00:00
Guido van Rossum ba179051aa Fix the way the version number is gotten out of the RCS revision. 1997-12-09 19:39:12 +00:00
Guido van Rossum 1a24bb53d5 Fix the test for pow() -- no more TypeErrors are raised! 1997-12-09 19:38:39 +00:00
Guido van Rossum c37eb56f96 Forgot to use &lt;/&gt; for some example output. 1997-12-05 16:18:45 +00:00
Guido van Rossum 682fbe55e5 Remove hyperlink to time-sensitive Python release info. 1997-11-25 15:33:44 +00:00
Guido van Rossum 37885c27c0 Trivial change in prompt label suggested by Case Roole. 1997-11-24 17:49:13 +00:00
Guido van Rossum 46a0bb4c3c Typo discovered by Case Roole. 1997-10-07 14:37:58 +00:00
Guido van Rossum d6449a2b11 Be more careful with closing fd's 0,1,2. 1997-10-07 14:37:31 +00:00
Guido van Rossum ef31b240ea Add note about condition.py. 1997-10-07 14:37:00 +00:00
Guido van Rossum 5edcf34fac Change bind() to tag_bind() so it works again. 1997-09-24 13:39:51 +00:00
Guido van Rossum a2f626ff58 Patch by Case Roole <cjr@bound.xs4all.nl> to fail with a more
explanatory message when the manual directories aren't found.
(I have to say I'm surprised that it actually still works!)
1997-09-15 15:39:11 +00:00
Guido van Rossum 626a8d034c Added hint to skip the heavy stuff on first reading. 1997-09-11 23:01:04 +00:00
Guido van Rossum 7ade6da866 As Paul Prescod pointed out, metaprogramming is really something
different (programs that write programs).  We are dealing with
metaclasses here.  So change the words slightly.
1997-09-11 22:54:49 +00:00
Guido van Rossum 7b877a9278 Some nits, added a whole section on what you could do with
metaclasses, and acks.
1997-09-08 02:20:57 +00:00
Guido van Rossum 0cdb887676 Completed first draft. 1997-08-26 00:08:51 +00:00