summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Port r70672 to py3k. Add the ability to control the random seed used by ↵Collin Winter2009-03-291-5/+18
| | | | regrtest.py -r.
* Restore a conditional I removed by mistake.Antoine Pitrou2009-03-291-1/+1
|
* Issue #1174606: Calling read() without arguments of an unbounded fileAntoine Pitrou2009-03-292-3/+17
| | | | | | (typically /dev/zero under Unix) could crash the interpreter. No test as there always seems to be a risk of putting the machine on its knees.
* Issue #5592: make the encodefuncs symbol staticAntoine Pitrou2009-03-281-11/+11
|
* Merged revisions ↵Benjamin Peterson2009-03-2843-215/+359
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 70554,70588-70589,70598,70605,70611-70621,70623-70624,70626-70627 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r70554 | benjamin.peterson | 2009-03-23 16:25:15 -0500 (Mon, 23 Mar 2009) | 1 line complain when there's no last exception ........ r70588 | benjamin.peterson | 2009-03-24 17:56:32 -0500 (Tue, 24 Mar 2009) | 1 line fix newline issue in test summary ........ r70589 | benjamin.peterson | 2009-03-24 18:07:07 -0500 (Tue, 24 Mar 2009) | 1 line another style nit ........ r70598 | benjamin.peterson | 2009-03-25 16:24:04 -0500 (Wed, 25 Mar 2009) | 1 line add shorthands for expected failures and unexpected success ........ r70605 | benjamin.peterson | 2009-03-26 11:32:23 -0500 (Thu, 26 Mar 2009) | 1 line remove uneeded function ........ r70611 | benjamin.peterson | 2009-03-26 13:35:37 -0500 (Thu, 26 Mar 2009) | 1 line add much better tests for python version information parsing ........ r70612 | benjamin.peterson | 2009-03-26 13:55:48 -0500 (Thu, 26 Mar 2009) | 1 line more and more implementations now support sys.subversion ........ r70613 | benjamin.peterson | 2009-03-26 13:58:30 -0500 (Thu, 26 Mar 2009) | 1 line roll old test in with new one ........ r70614 | benjamin.peterson | 2009-03-26 14:09:21 -0500 (Thu, 26 Mar 2009) | 1 line add support for PyPy ........ r70615 | benjamin.peterson | 2009-03-26 14:58:18 -0500 (Thu, 26 Mar 2009) | 5 lines add some useful utilities for skipping tests with unittest's new skipping ability most significantly apply a modified portion of the patch from #4242 with patches for skipping implementation details ........ r70616 | benjamin.peterson | 2009-03-26 15:05:50 -0500 (Thu, 26 Mar 2009) | 1 line rename TestCase.skip() to skipTest() because it causes annoying problems with trial #5571 ........ r70617 | benjamin.peterson | 2009-03-26 15:17:27 -0500 (Thu, 26 Mar 2009) | 1 line apply the second part of #4242's patch; classify all the implementation details in test_descr ........ r70618 | benjamin.peterson | 2009-03-26 15:48:25 -0500 (Thu, 26 Mar 2009) | 1 line remove test_support.TestSkipped and just use unittest.SkipTest ........ r70619 | benjamin.peterson | 2009-03-26 15:49:40 -0500 (Thu, 26 Mar 2009) | 1 line fix naming ........ r70620 | benjamin.peterson | 2009-03-26 16:10:30 -0500 (Thu, 26 Mar 2009) | 1 line fix incorrect auto-translation of TestSkipped -> unittest.SkipTest ........ r70621 | benjamin.peterson | 2009-03-26 16:11:16 -0500 (Thu, 26 Mar 2009) | 1 line must pass argument to get expected behavior ;) ........ r70623 | benjamin.peterson | 2009-03-26 16:30:10 -0500 (Thu, 26 Mar 2009) | 1 line add missing import ........ r70624 | benjamin.peterson | 2009-03-26 16:30:54 -0500 (Thu, 26 Mar 2009) | 1 line ** is required here ........ r70626 | benjamin.peterson | 2009-03-26 16:40:29 -0500 (Thu, 26 Mar 2009) | 1 line update email tests to use SkipTest ........ r70627 | benjamin.peterson | 2009-03-26 16:44:43 -0500 (Thu, 26 Mar 2009) | 1 line fix another name ........
* Publicize 3.1-specific performance enhancementsAntoine Pitrou2009-03-281-0/+24
|
* Blocked revisions 70651 via svnmergeGuilherme Polo2009-03-280-0/+0
| | | | | | | | ........ r70651 | guilherme.polo | 2009-03-28 16:17:16 -0300 (Sat, 28 Mar 2009) | 1 line Typo fix ........
* Merged revisions 70647,70652 via svnmerge fromAntoine Pitrou2009-03-281-0/+12
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70647 | antoine.pitrou | 2009-03-28 20:10:13 +0100 (sam., 28 mars 2009) | 3 lines Publicize the GC untracking optimization ........ r70652 | antoine.pitrou | 2009-03-28 20:17:54 +0100 (sam., 28 mars 2009) | 3 lines Fix a typo and be more specific ........
* Merged revisions 70648 via svnmerge fromGeorg Brandl2009-03-281-0/+10
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70648 | georg.brandl | 2009-03-28 14:10:37 -0500 (Sa, 28 Mär 2009) | 1 line #5324: document __subclasses__(). ........
* Remove special logic that closes HTTPConnection socket on EPIPE.Jeremy Hylton2009-03-282-36/+55
| | | | | | | | | | http://bugs.python.org/issue5542 If the socket is closed, the client has no chance to read the response from the server. EPIPE means that it isn't possible to write more data from the socket, but not that it is impossible to read. Also, various formatting changes.
* Replace references to httplib with http.client.Jeremy Hylton2009-03-271-27/+27
|
* Update the tests skipped with quicktest target.Jeremy Hylton2009-03-271-3/+4
| | | | | Some tests that used to be slow are now fast, and there are brand new slow tests.
* Fix some string encoding issues with entity bodies in HTTP requests.Jeremy Hylton2009-03-273-19/+108
| | | | | | | | | | | | RFC 2616 says that iso-8859-1 is the default charset for HTTP entity bodies, but we encoded strings using ascii. See http://bugs.python.org/issue5314. Changed docs and code to use iso-8859-1. Also fix some brokenness with passing a file as the body instead of a string. Add tests to show that some of this behavior actually works.
* Fix compatibility issue with HTTPMessage class.Jeremy Hylton2009-03-272-4/+4
| | | | The server needs to use MessageClass to parse.
* Sort import list.Jeremy Hylton2009-03-271-10/+10
|
* Replace duplicate code in http.server with call to http.client.parse_headers().Jeremy Hylton2009-03-272-17/+2
|
* Simplify complex expression.Jeremy Hylton2009-03-261-1/+3
|
* Merged revisions 70518,70521,70590,70594-70595 via svnmerge fromBenjamin Peterson2009-03-264-65/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70518 | matthias.klose | 2009-03-22 08:08:22 -0500 (Sun, 22 Mar 2009) | 2 lines - Fix comment macro in python.man ........ r70521 | benjamin.peterson | 2009-03-22 12:45:11 -0500 (Sun, 22 Mar 2009) | 1 line close the file even if an exception occurs #5536 ........ r70590 | skip.montanaro | 2009-03-24 19:52:11 -0500 (Tue, 24 Mar 2009) | 1 line clarify the type of data returned ........ r70594 | marc-andre.lemburg | 2009-03-25 14:44:58 -0500 (Wed, 25 Mar 2009) | 9 lines Remove the sys.version_info shortcut, since they cause the APIs to return different information than the _sys_version() output used in previous Python versions. This also fixes issue5561: platform.python_version_tuple returns tuple of ints, should be strings Added more tests for the various platform functions. ........ r70595 | marc-andre.lemburg | 2009-03-25 14:45:33 -0500 (Wed, 25 Mar 2009) | 3 lines News item for the platform.py fix (r70594). ........
* Add __enter__ and __exit__ methods to addbase() so that it supports with.Jeremy Hylton2009-03-262-0/+50
| | | | | | | This change also adds a minimal unittest of urllib.response.addbase. More are needed, but not to cover the small change being made here. Addresses http://bugs.python.org/issue5418
* Blocked revisions 70531,70533,70538,70544,70552-70553,70564,70601 via svnmergeBenjamin Peterson2009-03-260-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ........ r70531 | benjamin.peterson | 2009-03-22 17:24:58 -0500 (Sun, 22 Mar 2009) | 1 line AttributeError can be thrown during recursion errors ........ r70533 | raymond.hettinger | 2009-03-22 19:08:09 -0500 (Sun, 22 Mar 2009) | 6 lines Add more comments. Improve variable names. Make links clearer by using a Link object instead of a list. Use proxy links to avoid circular references. ........ r70538 | raymond.hettinger | 2009-03-22 23:42:18 -0500 (Sun, 22 Mar 2009) | 1 line Move initialization of root link to __init__. ........ r70544 | raymond.hettinger | 2009-03-23 13:26:59 -0500 (Mon, 23 Mar 2009) | 1 line Make imported name private and wrap long-line. ........ r70552 | benjamin.peterson | 2009-03-23 15:47:59 -0500 (Mon, 23 Mar 2009) | 1 line fix very old names for exception terms #5543 ........ r70553 | benjamin.peterson | 2009-03-23 16:23:30 -0500 (Mon, 23 Mar 2009) | 1 line revert r70552; wrong fix ........ r70564 | raymond.hettinger | 2009-03-23 19:17:11 -0500 (Mon, 23 Mar 2009) | 1 line Add links to related resources. ........ r70601 | raymond.hettinger | 2009-03-25 17:41:32 -0500 (Wed, 25 Mar 2009) | 1 line Separate initialization from clearing. ........
* fix isprintable() on space characters #5126Benjamin Peterson2009-03-264-1028/+1033
|
* officially deprecated max_buffer_sizeBenjamin Peterson2009-03-264-15/+65
|
* Add a few more tests for urllib.parse.urlencode.Jeremy Hylton2009-03-261-2/+19
| | | | Fix some long lines.
* urlencode:Jeremy Hylton2009-03-261-13/+5
| | | | | Remove dead code branch created by automated conversion from 2.x. Clean up a few comments.
* Simplify a few complicated expressions.Jeremy Hylton2009-03-261-7/+12
|
* Whitespace normalization.Jeremy Hylton2009-03-261-5/+6
|
* Fix a circular import dependency.Brett Cannon2009-03-251-2/+2
|
* Separate initialization from clearing.Raymond Hettinger2009-03-251-3/+4
|
* wild card import is only allowed at the module levelBenjamin Peterson2009-03-251-4/+4
|
* clarify the type of data returnedSkip Montanaro2009-03-251-2/+2
|
* reuse tokenize.detect_encoding in linecache instead of a custom solutionBenjamin Peterson2009-03-242-23/+8
| | | | patch by Victor Stinner #4016
* http://bugs.python.org/issue5544Kristján Valur Jónsson2009-03-242-30/+134
| | | | | Guard _fileio.c against other malicious os.close(f.fileno()) attempts. Add tests to test_fileio.py to verify behaviour.
* http://bugs.python.org/issue5552Kristján Valur Jónsson2009-03-241-3/+1
| | | | Return None rather than raise an exception if os.device_error is given an invalid file descriptor.
* http://bugs.python.org/issue5544Kristján Valur Jónsson2009-03-241-2/+4
| | | | Fix to the last checkin, correctly raise an exception on failure.
* http://bugs.python.org/issue5544Kristján Valur Jónsson2009-03-241-5/+9
| | | | | | | | Someone may have closed the file descriptor, with something like f = open('test.test', 'w') os.close(f.fileno()) f.close() Protect against this by checking fd on windows before closing.
* fix function nameBenjamin Peterson2009-03-241-1/+1
|
* Merged revisions 70574 via svnmerge fromBenjamin Peterson2009-03-241-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70574 | benjamin.peterson | 2009-03-23 20:11:37 -0500 (Mon, 23 Mar 2009) | 1 line fix typo ........
* fix some versionchanged and versionadded directivesBenjamin Peterson2009-03-241-11/+3
|
* Merged revisions 70558,70561-70563,70568-70571 via svnmerge fromBenjamin Peterson2009-03-243-438/+477
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70558 | benjamin.peterson | 2009-03-23 17:29:45 -0500 (Mon, 23 Mar 2009) | 4 lines comply with the evilJavaNamingScheme for attribute names It seems my love of PEP 8 overrode the need for consistentcy ........ r70561 | benjamin.peterson | 2009-03-23 18:10:14 -0500 (Mon, 23 Mar 2009) | 1 line refactor unittest docs ........ r70562 | benjamin.peterson | 2009-03-23 18:13:36 -0500 (Mon, 23 Mar 2009) | 1 line forgot to document that setUp can be skipped (silly me...) ........ r70563 | benjamin.peterson | 2009-03-23 18:19:03 -0500 (Mon, 23 Mar 2009) | 1 line update from CVS ........ r70568 | benjamin.peterson | 2009-03-23 19:35:20 -0500 (Mon, 23 Mar 2009) | 1 line some cleanup and modernization ........ r70569 | benjamin.peterson | 2009-03-23 19:36:16 -0500 (Mon, 23 Mar 2009) | 1 line remove special metadata ........ r70570 | benjamin.peterson | 2009-03-23 19:37:12 -0500 (Mon, 23 Mar 2009) | 1 line update docstring ........ r70571 | benjamin.peterson | 2009-03-23 19:39:24 -0500 (Mon, 23 Mar 2009) | 1 line add new skipping things to __all__ ........
* Add links to related resources.Raymond Hettinger2009-03-241-0/+6
|
* For some reason rst docs like an initial 3 space indent.Raymond Hettinger2009-03-231-23/+23
|
* Merged revisions 70555 via svnmerge fromBenjamin Peterson2009-03-233-26/+442
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70555 | benjamin.peterson | 2009-03-23 16:50:21 -0500 (Mon, 23 Mar 2009) | 4 lines implement test skipping and expected failures patch by myself #1034053 ........
* PyString_FromString -> PyUnicode_FromStringBenjamin Peterson2009-03-231-4/+5
|
* Merged revisions 70550 via svnmerge fromAntoine Pitrou2009-03-232-3/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70550 | antoine.pitrou | 2009-03-23 20:17:00 +0100 (lun., 23 mars 2009) | 3 lines The tracking statistics were actually too pessimistic ........
* Merged revisions 70546 via svnmerge fromAntoine Pitrou2009-03-2311-2/+397
| | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70546 | antoine.pitrou | 2009-03-23 19:41:45 +0100 (lun., 23 mars 2009) | 9 lines Issue #4688: Add a heuristic so that tuples and dicts containing only untrackable objects are not tracked by the garbage collector. This can reduce the size of collections and therefore the garbage collection overhead on long-running programs, depending on their particular use of datatypes. (trivia: this makes the "binary_trees" benchmark from the Computer Language Shootout 40% faster) ........
* Merged revisions 70542 via svnmerge fromMark Dickinson2009-03-232-94/+156
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70542 | mark.dickinson | 2009-03-23 18:25:13 +0000 (Mon, 23 Mar 2009) | 14 lines Issue #5512: speed up the long division algorithm for Python longs. The basic algorithm remains the same; the most significant speedups come from the following three changes: (1) normalize by shifting instead of multiplying and dividing (2) the old algorithm usually did an unnecessary extra iteration of the outer loop; remove this. As a special case, this means that long divisions with a single-digit result run twice as fast as before. (3) make inner loop much tighter. Various benchmarks show speedups of between 50% and 150% for long integer divisions and modulo operations. ........
* Make imported name private and wrap long-line.Raymond Hettinger2009-03-231-3/+4
|
* Forward port r70533 and r70538.Raymond Hettinger2009-03-231-32/+45
|
* more about the file type's death #5513Benjamin Peterson2009-03-231-1/+2
|
* sync open() docs moreBenjamin Peterson2009-03-232-49/+52
|