summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* If a classic class defined a __coerce__() method that just returned its twoBrett Cannon2006-06-131-9/+0
| | | | | | | | arguments in reverse, the interpreter would infinitely recourse trying to get a coercion that worked. So put in a recursion check after a coercion is made and the next call to attempt to use the coerced values. Fixes bug #992017 and closes crashers/coerce.py .
* Increase the small thread stack size to get the testAndrew MacIntyre2006-06-133-7/+7
| | | | | to pass reliably on the one buildbot that insists on more than 32kB of thread stack.
* Whitespace normalization.Tim Peters2006-06-131-1/+1
|
* fix exception usageAndrew MacIntyre2006-06-132-3/+2
|
* Patch #1454481: Make thread stack size runtime tunable.Andrew MacIntyre2006-06-135-1/+82
| | | | | | | | | | Heavily revised, comprising revisions: 46640 - original trunk revision (backed out in r46655) 46647 - markup fix (backed out in r46655) 46692:46918 merged from branch aimacintyre-sf1454481 branch tested on buildbots (Windows buildbots had problems not related to these changes).
* errors is an attribute in the incremental decoderWalter Dörwald2006-06-131-3/+3
| | | | not an argument.
* Fix passing errors to the encoder and decoder functions.Walter Dörwald2006-06-132-4/+4
|
* Linecache contains support for PEP302 loaders, but fails to deal with loadersRonald Oussoren2006-06-131-0/+4
| | | | | that return None to indicate that the module is valid but no source is available. This patch fixes that.
* Add back WCHAR, UINT, DOUBLE, _LARGE_INTEGER, _ULARGE_INTEGER.Thomas Heller2006-06-131-3/+13
| | | | VARIANT_BOOL is a special _ctypes data type, not c_short.
* Add some windows datatypes that were missing from this file, and addThomas Heller2006-06-131-24/+70
| | | | the aliases defined in windows header files for the structures.
* Verify the crash due to EncodingMap not initialized does not returnNeal Norwitz2006-06-131-0/+6
|
* Don't fail if another process is listening on our port.Neal Norwitz2006-06-131-1/+2
|
* 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
|