Commit Graph

843 Commits

Author SHA1 Message Date
Georg Brandl f1ca811abb Fix a demo. 2009-10-25 20:25:43 +00:00
Georg Brandl 32855b6dcd Overhaul of Demo/xml. 2009-10-11 15:06:44 +00:00
Georg Brandl b3f9d66ca3 Remove ftpstats script, the daemon whose log files it reads is long gone. 2009-10-11 14:49:37 +00:00
Georg Brandl 393c823245 Update lpwatch script. 2009-10-11 14:23:49 +00:00
Georg Brandl 8ec30e835f Fix variable. 2009-10-11 12:03:01 +00:00
Georg Brandl ce662d0467 Use getopt in script.py demo. 2009-10-11 12:00:18 +00:00
Mark Dickinson 9bb796597d Set missing executable property on scripts 2009-10-11 10:01:17 +00:00
Mark Dickinson ab6d373aa0 Fix 'primes 0 1' 2009-10-11 09:35:57 +00:00
Georg Brandl 4271ecaf72 Update primes script. 2009-10-11 08:48:28 +00:00
Georg Brandl 6e62c56416 Remove useless script "mkrcs" and update README. 2009-10-11 08:45:03 +00:00
Georg Brandl 86d38e9ecc Update markov demo. 2009-10-11 08:39:16 +00:00
Georg Brandl 30fd2bb884 Update morse script, avoid globals, use iterators. 2009-10-11 08:18:44 +00:00
Georg Brandl 723fb3adc8 Modernize all around (dont ask me how useful that script is nowadays...) 2009-10-10 22:26:45 +00:00
Georg Brandl ffc87d5c8c Style fixes. 2009-10-10 22:03:43 +00:00
Georg Brandl a0bcc27e65 Modernize factorisation demo (mostly augassign.) 2009-10-10 21:55:11 +00:00
Georg Brandl 3d072c9587 Show use of range() step argument nicely. 2009-10-10 21:47:31 +00:00
Georg Brandl 0b798a9d4d Remove outdated comment and fix a few style issues. 2009-10-10 21:43:21 +00:00
Benjamin Peterson 75b32c9c76 remove script which uses long gone module 2009-10-10 21:15:58 +00:00
Georg Brandl 69f81a8b68 Remove unneeded "L" suffixes. 2009-10-10 21:10:05 +00:00
Georg Brandl 18cb949807 Bring old demo up-to-date. 2009-10-10 21:07:35 +00:00
R. David Murray ddfb6cdc2b Applying patches backported from 3.1, by Gregor Lingl. 2009-09-28 18:29:28 +00:00
R. David Murray 1666f19317 Issue 6340: update by Gregor Lingl of his tdemo_chaos demo program.
Functionally equivalent, clearer code, English comments.
2009-06-25 17:29:39 +00:00
Amaury Forgeot d'Arc 388637d373 Remove last remnants of the ipaddr package.
The changes in mcast.py come from the first version of the patch for issue5379.
2009-06-23 21:53:46 +00:00
Gregory P. Smith 6493d788f0 Issue 5379 - applies patch supplied by philipp hagemeister to fix
many problems with the ancient mcast.py demo code.
2009-05-03 18:42:15 +00:00
Mark Dickinson 3e4caeb3bf Issue #5341: Fix a variety of spelling errors. 2009-02-21 20:27:01 +00:00
Guilherme Polo 4eae078448 Demos for ttk added. 2009-01-28 15:56:01 +00:00
Martin v. Löwis e563aa4383 Issue #3965: Allow repeated calls to turtle.Screen, by making it a
true singleton object.

Reviewed by Gregor Lingl.
2008-09-29 22:09:07 +00:00
Andrew M. Kuchling d9a9c1066c Update uses of string exceptions 2008-09-13 01:57:25 +00:00
Andrew M. Kuchling 0bef15846f Fix SyntaxError 2008-09-13 01:56:56 +00:00
Andrew M. Kuchling c997f178ed Subclass exception 2008-09-13 01:48:36 +00:00
Andrew M. Kuchling dda0ce7285 Remove semicolon 2008-09-13 01:47:02 +00:00
Andrew M. Kuchling 2a9b9cbea0 #687648 from Robert Schuppenies: use classic division. 2008-09-13 01:43:28 +00:00
Andrew M. Kuchling e91fcbdf69 #687648 from Robert Schuppenies: use classic division. From me: remove two stray semicolons 2008-09-13 01:42:55 +00:00
Andrew M. Kuchling 8bd9a2f7db #687648 from Robert Schuppenies: use classic division. From me: don't use string exception; add __main__ section 2008-09-13 01:34:41 +00:00
Andrew M. Kuchling c2dc269288 #687648 from Robert Schuppenies: use classic division. From me: don't use string exception; flush stdout after printing 2008-09-13 01:27:33 +00:00
Andrew M. Kuchling 949f71b446 #687648 from Robert Schuppenies: use classic division. (RM Barry gave permission to update the demos.) 2008-09-13 01:22:08 +00:00
Benjamin Peterson 7c972f971c get unparse to at least unparse its self 2008-08-19 17:59:23 +00:00
Benjamin Peterson 8692c79ba9 correct version 2008-08-18 01:27:05 +00:00
Georg Brandl 74bbc79d10 Replace all map(None, a) with list(a). 2008-07-18 19:06:13 +00:00
Martin v. Löwis 8718459f0f Patch #1513695: New turtle module, with demos. 2008-06-04 06:29:55 +00:00
Brett Cannon 2ee0e8eaec Revert the renaming of repr to reprlib. 2008-05-23 05:03:59 +00:00
Alexandre Vassalotti 50a1acb2ab Changed references to the reprlib module to use its new name. 2008-05-16 06:58:49 +00:00
Benjamin Peterson 5b63acd31e #2503 make singletons compared with "is" not == or !=
Thanks to Wummel for the patch
2008-03-29 15:24:25 +00:00
Georg Brandl c76ea27965 Use os.closerange(). 2008-02-23 22:14:02 +00:00
Mark Dickinson 900b783526 Remove reference to Rational 2008-02-10 19:23:36 +00:00
Jeffrey Yasskin d7b00334f3 Add rational.Rational as an implementation of numbers.Rational with infinite
precision. This has been discussed at http://bugs.python.org/issue1682. It's
useful primarily for teaching, but it also demonstrates how to implement a
member of the numeric tower, including fallbacks for mixed-mode arithmetic.

I expect to write a couple more patches in this area:
 * Rational.from_decimal()
 * Rational.trim/approximate() (maybe with different names)
 * Maybe remove the parentheses from Rational.__str__()
 * Maybe rename one of the Rational classes
 * Maybe make Rational('3/2') work.
2008-01-15 07:46:24 +00:00
Christian Heimes c756d00cf2 Replaced import of the 'new' module with 'types' module and added a deprecation warning to the 'new' module. 2007-11-27 21:34:01 +00:00
Guido van Rossum 41f039292f A thread-less variant of brownian.py, submitted by Michele Simoniato. 2007-11-26 22:16:49 +00:00
Neal Norwitz 25e4461666 Remove references to stdwin which was removed long ago. 2007-05-13 20:54:19 +00:00
Tim Peters 35c7bb202f Whitespace normalization. 2007-04-25 18:47:18 +00:00