summaryrefslogtreecommitdiffstats
path: root/Demo
Commit message (Collapse)AuthorAgeFilesLines
* Use os.closerange().Georg Brandl2008-02-231-5/+1
|
* Remove reference to RationalMark Dickinson2008-02-101-1/+0
|
* Add rational.Rational as an implementation of numbers.Rational with infiniteJeffrey Yasskin2008-01-151-310/+0
| | | | | | | | | | | | | 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.
* Replaced import of the 'new' module with 'types' module and added a ↵Christian Heimes2007-11-271-1/+1
| | | | deprecation warning to the 'new' module.
* A thread-less variant of brownian.py, submitted by Michele Simoniato.Guido van Rossum2007-11-261-0/+55
|
* Remove references to stdwin which was removed long ago.Neal Norwitz2007-05-131-2/+0
|
* Whitespace normalization.Tim Peters2007-04-251-1/+1
|
* Patch #1683328: fixes and enhancements for "unparse" demo.Georg Brandl2007-03-191-51/+50
|
* Patch #1552024: add decorator support to unparse.py demo script.Georg Brandl2006-10-271-0/+3
|
* Normalized a few cases of whitespace in function declarations.Martin Blais2006-06-062-38/+38
| | | | | | | | | | | | Found them using:: find . -name '*.py' | while read i ; do grep 'def[^(]*( ' $i /dev/null ; done find . -name '*.py' | while read i ; do grep ' ):' $i /dev/null ; done (I was doing this all over my own code anyway, because I'd been using spaces in all defs, so I thought I'd make a run on the Python code as well. If you need to do such fixes in your own code, you can use xx-rename or parenregu.el within emacs.)
* Add more whitespace; use a better socket nameAndrew M. Kuchling2006-06-032-5/+14
|
* Remove dangling referenceAndrew M. Kuchling2006-06-031-1/+0
|
* Remove xmlrpc/ directoryAndrew M. Kuchling2006-06-031-3/+0
|
* Remove xmlrpc demo -- it duplicates the SimpleXMLRPCServer module.Andrew M. Kuchling2006-06-031-75/+0
|
* This demo requires Medusa (not just asyncore); remove itAndrew M. Kuchling2006-06-031-104/+0
|
* Use functions; modernize codeAndrew M. Kuchling2006-06-031-60/+87
|
* Put code in a main() function; loosen up the spacing to match current code styleAndrew M. Kuchling2006-06-031-32/+45
|
* Docstring fix; use TrueAndrew M. Kuchling2006-06-031-2/+2
|
* Use true division, and the True valueAndrew M. Kuchling2006-06-031-12/+13
|
* Use True; value returned from main is unusedAndrew M. Kuchling2006-06-031-2/+2
|
* Some code tidying; use curses.wrapperAndrew M. Kuchling2006-06-031-67/+61
|
* Drop 0 parameterAndrew M. Kuchling2006-06-031-3/+3
|
* Update readmeAndrew M. Kuchling2006-06-031-4/+1
|
* Whitespace normalization.Tim Peters2006-04-101-19/+19
|
* Patch #1441452: Add more AST nodes.Martin v. Löwis2006-04-101-15/+236
|
* Patch #1462222: Fix Tix.Grid. Closes #1036406.Martin v. Löwis2006-04-101-0/+28
|
* Remove regsub, reconvert, regex, regex_syntax and everything under lib-old.Neal Norwitz2006-03-1611-32/+31
|
* unparse.py can now unparse itself.Martin v. Löwis2006-02-281-2/+139
|
* Set EOL style to native.Tim Peters2006-02-281-158/+158
|
* Whitespace normalization.Tim Peters2006-02-281-158/+158
|
* Start of a source code unparser.Martin v. Löwis2006-02-272-0/+164
|
* SF Bug #1348477, regextest can't be pydoc'ed. Will backport.Neal Norwitz2005-11-091-1/+2
|
* Remove .cvsignore files, as they live in svn:ignoreMartin v. Löwis2005-10-301-3/+0
| | | | properties now.
* Minor spelling nit.Georg Brandl2005-08-251-1/+1
|
* Update version.Michael W. Hudson2005-06-151-1/+1
| | | | | I wonder if there's a way to fix this Makefile to be slightly less totally unreliable.
* Fix HTTP method handler example so that method names in uppercasesHye-Shik Chang2005-04-121-1/+1
| | | | can be processed. (Submitted by Jooncheol Park)
* SF patch 1179503: Fix typos in rpc.pyRaymond Hettinger2005-04-101-16/+18
| | | | | | * Call to unpack_int() should have no arguments * Misspelled BadRPCVerspion exception * Replace <> with !=
* * Fix error in definition of Im() which returned self instead of 0Raymond Hettinger2005-04-091-19/+14
| | | | | | | | | | | | | | | | for non-complex arguments. * Replace type() comparisons with isinstance() checks. * Replace apply() calls with equivalent syntactic form. * Simplify __hash__ definition to hash the underlying tuple. * Use math.hypot() for more robust computation of __abs__(). * Use sorted() instead of the multi-step keys/sort/iter. * Update comment on the cmath module.
* Patch #1177597: Correct various bugs, add comments.Martin v. Löwis2005-04-091-9/+36
|
* Use decorators.Guido van Rossum2005-01-161-4/+2
|
* Add 'if __name__ == "__main__":' to files already as a usable as a module.Johannes Gijsbers2004-09-1113-18/+29
|
* Remove mpzpi demoAndrew M. Kuchling2004-08-312-35/+0
|
* Whitespace normalization. Had to break guido's lock on rev 1.1 to doTim Peters2004-07-181-71/+71
| | | | this, but I'm sure it wasn't locked intentionally.
* Whitespace normalization, via reindent.py.Tim Peters2004-07-1875-3848/+3813
|
* Whitespace normalization. Ran reindent.py over the entire source tree.Tim Peters2004-07-1861-5253/+5242
|
* Fix comment typoAndrew M. Kuchling2004-07-171-1/+1
|
* Add code for a range function that uses generators.Brett Cannon2004-06-271-42/+64
| | | | | | | | | Cleaned up existing code by abstracting code to parse arguments. Also removed any unneeded operations (such as calling 'int' on a division when using floor division also works). Fixed a bug where the values returned by OldStyleRange could be short by one value. Added more documentation. Testing code also has a basic sanity check.
* fix error message; closes SF patch #932796Fred Drake2004-05-121-1/+1
|
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-1248-153/+151
| | | | From SF patch #852334.
* Revert previous change which didn't make sense the next day :-)Raymond Hettinger2003-12-101-16/+18
|