Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use os.closerange(). | Georg Brandl | 2008-02-23 | 1 | -5/+1 |
| | |||||
* | Remove reference to Rational | Mark Dickinson | 2008-02-10 | 1 | -1/+0 |
| | |||||
* | Add rational.Rational as an implementation of numbers.Rational with infinite | Jeffrey Yasskin | 2008-01-15 | 1 | -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 Heimes | 2007-11-27 | 1 | -1/+1 |
| | | | | deprecation warning to the 'new' module. | ||||
* | A thread-less variant of brownian.py, submitted by Michele Simoniato. | Guido van Rossum | 2007-11-26 | 1 | -0/+55 |
| | |||||
* | Remove references to stdwin which was removed long ago. | Neal Norwitz | 2007-05-13 | 1 | -2/+0 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2007-04-25 | 1 | -1/+1 |
| | |||||
* | Patch #1683328: fixes and enhancements for "unparse" demo. | Georg Brandl | 2007-03-19 | 1 | -51/+50 |
| | |||||
* | Patch #1552024: add decorator support to unparse.py demo script. | Georg Brandl | 2006-10-27 | 1 | -0/+3 |
| | |||||
* | Normalized a few cases of whitespace in function declarations. | Martin Blais | 2006-06-06 | 2 | -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 name | Andrew M. Kuchling | 2006-06-03 | 2 | -5/+14 |
| | |||||
* | Remove dangling reference | Andrew M. Kuchling | 2006-06-03 | 1 | -1/+0 |
| | |||||
* | Remove xmlrpc/ directory | Andrew M. Kuchling | 2006-06-03 | 1 | -3/+0 |
| | |||||
* | Remove xmlrpc demo -- it duplicates the SimpleXMLRPCServer module. | Andrew M. Kuchling | 2006-06-03 | 1 | -75/+0 |
| | |||||
* | This demo requires Medusa (not just asyncore); remove it | Andrew M. Kuchling | 2006-06-03 | 1 | -104/+0 |
| | |||||
* | Use functions; modernize code | Andrew M. Kuchling | 2006-06-03 | 1 | -60/+87 |
| | |||||
* | Put code in a main() function; loosen up the spacing to match current code style | Andrew M. Kuchling | 2006-06-03 | 1 | -32/+45 |
| | |||||
* | Docstring fix; use True | Andrew M. Kuchling | 2006-06-03 | 1 | -2/+2 |
| | |||||
* | Use true division, and the True value | Andrew M. Kuchling | 2006-06-03 | 1 | -12/+13 |
| | |||||
* | Use True; value returned from main is unused | Andrew M. Kuchling | 2006-06-03 | 1 | -2/+2 |
| | |||||
* | Some code tidying; use curses.wrapper | Andrew M. Kuchling | 2006-06-03 | 1 | -67/+61 |
| | |||||
* | Drop 0 parameter | Andrew M. Kuchling | 2006-06-03 | 1 | -3/+3 |
| | |||||
* | Update readme | Andrew M. Kuchling | 2006-06-03 | 1 | -4/+1 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2006-04-10 | 1 | -19/+19 |
| | |||||
* | Patch #1441452: Add more AST nodes. | Martin v. Löwis | 2006-04-10 | 1 | -15/+236 |
| | |||||
* | Patch #1462222: Fix Tix.Grid. Closes #1036406. | Martin v. Löwis | 2006-04-10 | 1 | -0/+28 |
| | |||||
* | Remove regsub, reconvert, regex, regex_syntax and everything under lib-old. | Neal Norwitz | 2006-03-16 | 11 | -32/+31 |
| | |||||
* | unparse.py can now unparse itself. | Martin v. Löwis | 2006-02-28 | 1 | -2/+139 |
| | |||||
* | Set EOL style to native. | Tim Peters | 2006-02-28 | 1 | -158/+158 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2006-02-28 | 1 | -158/+158 |
| | |||||
* | Start of a source code unparser. | Martin v. Löwis | 2006-02-27 | 2 | -0/+164 |
| | |||||
* | SF Bug #1348477, regextest can't be pydoc'ed. Will backport. | Neal Norwitz | 2005-11-09 | 1 | -1/+2 |
| | |||||
* | Remove .cvsignore files, as they live in svn:ignore | Martin v. Löwis | 2005-10-30 | 1 | -3/+0 |
| | | | | properties now. | ||||
* | Minor spelling nit. | Georg Brandl | 2005-08-25 | 1 | -1/+1 |
| | |||||
* | Update version. | Michael W. Hudson | 2005-06-15 | 1 | -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 uppercases | Hye-Shik Chang | 2005-04-12 | 1 | -1/+1 |
| | | | | can be processed. (Submitted by Jooncheol Park) | ||||
* | SF patch 1179503: Fix typos in rpc.py | Raymond Hettinger | 2005-04-10 | 1 | -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 0 | Raymond Hettinger | 2005-04-09 | 1 | -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öwis | 2005-04-09 | 1 | -9/+36 |
| | |||||
* | Use decorators. | Guido van Rossum | 2005-01-16 | 1 | -4/+2 |
| | |||||
* | Add 'if __name__ == "__main__":' to files already as a usable as a module. | Johannes Gijsbers | 2004-09-11 | 13 | -18/+29 |
| | |||||
* | Remove mpzpi demo | Andrew M. Kuchling | 2004-08-31 | 2 | -35/+0 |
| | |||||
* | Whitespace normalization. Had to break guido's lock on rev 1.1 to do | Tim Peters | 2004-07-18 | 1 | -71/+71 |
| | | | | this, but I'm sure it wasn't locked intentionally. | ||||
* | Whitespace normalization, via reindent.py. | Tim Peters | 2004-07-18 | 75 | -3848/+3813 |
| | |||||
* | Whitespace normalization. Ran reindent.py over the entire source tree. | Tim Peters | 2004-07-18 | 61 | -5253/+5242 |
| | |||||
* | Fix comment typo | Andrew M. Kuchling | 2004-07-17 | 1 | -1/+1 |
| | |||||
* | Add code for a range function that uses generators. | Brett Cannon | 2004-06-27 | 1 | -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 #932796 | Fred Drake | 2004-05-12 | 1 | -1/+1 |
| | |||||
* | Replace backticks with repr() or "%r" | Walter Dörwald | 2004-02-12 | 48 | -153/+151 |
| | | | | From SF patch #852334. | ||||
* | Revert previous change which didn't make sense the next day :-) | Raymond Hettinger | 2003-12-10 | 1 | -16/+18 |
| |