summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* get_matching_blocks(): rewrote code & comments so they match; addedTim Peters2006-06-131-14/+14
| | | | | | more comments about why it's this way at all; and removed what looked like needless expense (sorting (i, j, k) triples directly should give exactly the same order as sorting (i, (i, j, k)) pairs).
* Added missing svn:eol-style property to text files.Tim Peters2006-06-132-873/+873
|
* Whitespace normalization.Tim Peters2006-06-132-873/+873
|
* Add the uuid module.Ka-Ping Yee2006-06-122-0/+873
| | | | | This module has been tested so far on Windows XP (Python 2.4 and 2.5a2), Mac OS X (Python 2.3, 2.4, and 2.5a2), and Linux (Python 2.4 and 2.5a2).
* Add pep-291 compatibility markers.Thomas Heller2006-06-128-0/+24
|
* Fix site module docstring to match the code for Mac OSX, tooNick Coghlan2006-06-121-3/+4
|
* Fix site module docstring to match the codeNick Coghlan2006-06-121-2/+2
|
* Sync w/external release 0.1.2. Please see PEP 360 before making changes to ↵Phillip J. Eby2006-06-127-59/+146
| | | | external packages.
* Patch #1503046, Conditional compilation of zlib.(de)compressobj.copyNeal Norwitz2006-06-121-57/+59
| | | | | copy is only in newer versions of zlib. This should allow zlibmodule to work with older versions like the Tru64 buildbot.
* Remove unused importNeal Norwitz2006-06-121-1/+1
|
* Fix the socket tests so they can be run concurrently. Backport candidateNeal Norwitz2006-06-124-6/+50
|
* Cleanup: Remove import of types to get StringTypes, we can just use basestring.Neal Norwitz2006-06-121-6/+5
|
* Get test to pass on S/390. Shout if you think this change is incorrect.Neal Norwitz2006-06-111-1/+6
|
* compare_generic_iter(): Fixed the failure of test_wsgiref's testFileWrapperTim Peters2006-06-111-12/+7
| | | | | | | | | | | when running with -O. test_simple_validation_error still fails under -O. That appears to be because wsgiref's validate.py uses `assert` statements all over the place to check arguments for sanity. That should all be changed (it's not a logical error in the software if a user passes bogus arguments, so this isn't a reasonable use for `assert` -- checking external preconditions should generally raise ValueError or TypeError instead, as appropriate).
* Fix test on PPC64 buildbot. It raised an IOError (really an URLError whichNeal Norwitz2006-06-111-1/+1
| | | | | derives from an IOError). That seems valid. Env Error includes both OSError and IOError, so this seems like a reasonable fix.
* Try to fix another networking test. The problem is that if hosts haveNeal Norwitz2006-06-111-4/+5
| | | | | | | | a search path setup, some of these hosts resolve to the wrong address. By appending a period to the hostname, the hostname should only resolve to what we want it to resolve to. Hopefully this doesn't break different bots. Also add more info to failure message to aid debugging test failure.
* Try to fix several networking tests. The problem is that if hosts haveNeal Norwitz2006-06-113-3/+3
| | | | | | a search path setup, some of these hosts resolve to the wrong address. By appending a period to the hostname, the hostname should only resolve to what we want it to resolve to. Hopefully this doesn't break different bots.
* Add missing svn:eol-style property to text files.Tim Peters2006-06-111-36/+36
|
* Whitespace normalization.Tim Peters2006-06-119-49/+49
|
* Bug #1498146: fix optparse to handle Unicode strings in option help,Greg Ward2006-06-112-7/+45
| | | | description, and epilog.
* This patch improves the L&F of IDLE on OSX. The changes are conditionalized onRonald Oussoren2006-06-118-20/+130
| | | | | being in an IDLE.app bundle on darwin. This does a slight reorganisation of the menus and adds support for file-open events.
* Fix errors found by pycheckerNeal Norwitz2006-06-115-8/+11
|
* Fix errors found by pychecker.Neal Norwitz2006-06-111-3/+6
| | | | | | I think these changes are correct, but I'm not sure. Could someone who knows how this module works test it? It can at least start on the cmd line.
* warnings was imported at module scope, no need to import againNeal Norwitz2006-06-111-1/+1
|
* Fix errors found by pycheckerNeal Norwitz2006-06-112-2/+3
|
* Bug #1361643: fix textwrap.dedent() so it handles tabs appropriately,Greg Ward2006-06-112-40/+96
| | | | | i.e. do *not* expand tabs, but treat them as whitespace that is not equivalent to spaces. Add a couple of test cases. Clarify docs.
* shuffle() doscstring: Removed warning about sequence lengthTim Peters2006-06-101-12/+6
| | | | | | | | | versus generator period. While this was a real weakness of the older WH generator for lists with just a few dozen elements, and so could potentially bite the naive ;-), the Twister should show excellent behavior up to at least 600 elements. Module docstring: reflowed some jarringly short lines.
* Upgrade to ctypes version 0.9.9.7.Thomas Heller2006-06-108-30/+308
| | | | | | | | Summary of changes: - support for 'variable sized' data - support for anonymous structure/union fields - fix severe bug with certain arrays or structures containing more than 256 fields
* document the class, not its initializerSkip Montanaro2006-06-101-4/+4
|
* Apply perky's fix for #1503157: "/".join([u"", u""]) raising OverflowError.Georg Brandl2006-06-101-0/+2
| | | | Also improve error message on overflow.
* An object with __call__ as an attribute, when called, will have that ↵Brett Cannon2006-06-092-9/+16
| | | | | | attribute checked for __call__ itself, and will continue to look until it finds an object without the attribute. This can lead to an infinite recursion. Closes bug #532646, again. Will be backported.
* Make use of new str.startswith/endswith semantics.Georg Brandl2006-06-0911-20/+14
| | | | Occurences in email and compiler were ignored due to backwards compat requirements.
* Remove unused variableAndrew M. Kuchling2006-06-091-1/+0
|
* Implementing a happy idea from Georg Brandl: make runtest() try toTim Peters2006-06-091-1/+48
| | | | | | | | | | | | clean up files and directories the tests often leave behind by mistake. This is the first time in history I don't have a bogus "db_home" directory after running the tests ;-) Also worked on runtest's docstring, to say something about all the arguments, and to document the non-obvious return values. New functions runtest_inner() and cleanup_test_droppings() in support of the above.
* RFE #1491485: str/unicode.endswith()/startswith() now accept a tuple as ↵Georg Brandl2006-06-091-1/+31
| | | | first argument.
* Test file.__exit__.Georg Brandl2006-06-091-1/+11
|
* Whitespace normalization.Tim Peters2006-06-095-81/+3
|
* Import wsgiref into the stdlib, as of the external version 0.1-r2181.Phillip J. Eby2006-06-098-0/+2182
|
* [Bug #1472827] Make saxutils.XMLGenerator handle \r\n\t in attribute values ↵Andrew M. Kuchling2006-06-092-2/+7
| | | | by escaping them properly. 2.4 bugfix candidate.
* Fix grammar and reflowNeal Norwitz2006-06-091-2/+2
|
* Remove the temporary hack to force test_optparse toTim Peters2006-06-091-5/+0
| | | | | | | run immediately after test_file. At least 8 buildbot boxes passed since the underlying problem got fixed, and they all failed before the fix, so there's no point to this anymore.
* testUnicodeOpen(): I have no idea why, but making thisTim Peters2006-06-091-1/+8
| | | | | | | | | test clean up after itself appears to fix the test failures when test_optparse follows test_file. test_main(): Get rid of TESTFN no matter what. That's also enough to fix the mystery failures. Doesn't hurt to fix them twice :-)
* AutoFileTests.tearDown(): Removed mysterious undocumentedTim Peters2006-06-091-27/+28
| | | | | | | try/except. Remove TESTFN. Throughout: used open() instead of file(), and wrapped long lines.
* To boost morale :-), force test_optparse to run immediatelyTim Peters2006-06-091-0/+5
| | | | | | after test_file until we can figure out how to fix it. (See python-dev; at the moment we don't even know which checkin caused the problem.)
* Whitespace normalization.Tim Peters2006-06-091-1/+1
| | | | | | Since test_file is implicated in mysterious test failures when followed by test_optparse, if I had any brains I'd look at the checkin that last changed test_file ;-)
* Buffer objects would return the read or write buffer for a wrapped object whenBrett Cannon2006-06-081-0/+7
| | | | | | | | | the char buffer was requested. Now it actually returns the char buffer if available or raises a TypeError if it isn't (as is raised for the other buffer types if they are not present but requested). Not a backport candidate since it does change semantics of the buffer object (although it could be argued this is enough of a bug to bother backporting).
* Convert test_file to unittest.Georg Brandl2006-06-081-332/+305
|
* Add functools.update_wrapper() and functools.wraps() as described in PEP 356Nick Coghlan2006-06-082-18/+152
|
* (arre, arigo) SF bug #1350060Armin Rigo2006-06-082-1/+48
| | | | | | Give a consistent behavior for comparison and hashing of method objects (both user- and built-in methods). Now compares the 'self' recursively. The hash was already asking for the hash of 'self'.
* pasted set_lk_detect line in wrong spot in previous commit. fixed. passes ↵Gregory P. Smith2006-06-081-1/+1
| | | | tests this time.