summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* PyObject_Dump() encodes unicode objects to utf8 with backslashreplace (insteadVictor Stinner2010-05-173-1/+16
| | | | of strict) error handler to escape surrogates
* Issue #6697: Fix a crash if code of "python -c code" contains surrogatesVictor Stinner2010-05-172-4/+26
|
* Oops, my patch on subprocess is not merged yet: fix my previous commit on ↵Victor Stinner2010-05-171-4/+1
| | | | test_os
* test_os: cleanup test_internal_execvpe() and os._execvpe() mockupVictor Stinner2010-05-171-48/+53
| | | | | | | | | * Replace os.defpath instead of os.get_exec_path() to test also os.get_exec_path() * Use contextlib.contextmanager, move the mockup outside the class, and the mockup returns directly the call list object * Use two different contexts for the two tests * Use more revelant values and names
* "xyzzy" is not a silly enough name for some OpenSSL versions to report an errorAntoine Pitrou2010-05-161-2/+2
|
* Merged revisions 81241 via svnmerge fromAntoine Pitrou2010-05-161-0/+3
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81241 | antoine.pitrou | 2010-05-17 01:11:46 +0200 (lun., 17 mai 2010) | 4 lines Clear the OpenSSL error queue each time an error is signalled. When the error queue is not emptied, strange things can happen on the next SSL call, depending on the OpenSSL version. ........
* Issue #8477: ssl.RAND_egd() supports str with surrogates and bytes for the pathVictor Stinner2010-05-162-9/+11
|
* Issue #8477: _ssl._test_decode_cert() supports str with surrogates and bytesVictor Stinner2010-05-162-5/+8
| | | | for the filename
* Do not fail if ssl fails to importAntoine Pitrou2010-05-161-4/+5
|
* Fix (hopefully) the remaining test_ssl buildbot failuresAntoine Pitrou2010-05-162-2/+6
|
* Followup on r81233: fix test_ssl with OpenSSL < 1.0.0.Antoine Pitrou2010-05-163-0/+59
|
* Issue #8550: Add first class `SSLContext` objects to the ssl module.Antoine Pitrou2010-05-167-284/+865
|
* Merged revisions 81229 via svnmerge fromAntoine Pitrou2010-05-161-0/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81229 | antoine.pitrou | 2010-05-16 16:16:56 +0200 (dim., 16 mai 2010) | 3 lines Document that SSL v2 is insecure. ........
* Merged revisions 81224 via svnmerge fromVictor Stinner2010-05-161-6/+4
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81224 | victor.stinner | 2010-05-16 02:34:40 +0200 (dim., 16 mai 2010) | 4 lines Use with open() as fo: ... instead of try: fo = open(...) finally: fo.close() fo is not set if the open() fails. ........
* Merged revisions 81220 via svnmerge fromVictor Stinner2010-05-152-1237/+1237
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81220 | victor.stinner | 2010-05-16 00:55:28 +0200 (dim., 16 mai 2010) | 4 lines Use 4-spaces for indentation (instead of tabs) in pgen outputs Regenerate (reindent) Python/graminit.c ........
* Make test_module_with_large_stack as an expected failure because of a change inBrett Cannon2010-05-151-0/+1
| | | | | importlib that is causing it to fail. Work to fix it is being tracked in issue 8727.
* Fix a comment to state the right thing.Brett Cannon2010-05-151-4/+3
|
* Recorded merge of revisions 81213 via svnmerge fromVictor Stinner2010-05-151-1994/+1994
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81213 | victor.stinner | 2010-05-16 00:19:27 +0200 (dim., 16 mai 2010) | 5 lines reindent _cursesmodule.c Use untabify.py + emacs (python3 mode) + manual editions for Py_BEGIN_ALLOW_THREADS / Py_END_ALLOW_THREADS ........
* A test was not guaranteeing cleanup in the face of an exception.Brett Cannon2010-05-151-7/+8
|
* Blocked revisions 81210 via svnmergeAmaury Forgeot d'Arc2010-05-150-0/+0
| | | | | | | | ........ r81210 | amaury.forgeotdarc | 2010-05-15 23:45:30 +0200 (sam., 15 mai 2010) | 2 lines Remove unused variable, and fix a compilation warning on Windows ........
* Issue #8665: Fix `make pycremoval` exiting with non-zero status.Antoine Pitrou2010-05-151-1/+1
|
* Recorded merge of revisions 81205 via svnmerge fromVictor Stinner2010-05-151-12/+12
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81205 | victor.stinner | 2010-05-15 23:00:59 +0200 (sam., 15 mai 2010) | 2 lines NEWS: strip trailing spaces ........
* Remove unused variable, and fix a compilation warning on Windows.Amaury Forgeot d'Arc2010-05-151-1/+1
|
* Merged revisions 81200 via svnmerge fromBenjamin Peterson2010-05-151-4/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81200 | benjamin.peterson | 2010-05-15 12:48:55 -0500 (Sat, 15 May 2010) | 1 line use TestCase skip method ........
* fix one more runonBenjamin Peterson2010-05-151-2/+2
|
* rephraseBenjamin Peterson2010-05-151-2/+2
|
* fix run-on sentenceBenjamin Peterson2010-05-151-1/+1
|
* Issue #8692: Improve performance of math.factorial:Mark Dickinson2010-05-153-30/+307
| | | | | | | | | | | | | (1) use a different algorithm that roughly halves the total number of multiplications required and results in more balanced multiplications (2) use a lookup table for small arguments (3) fast accumulation of products in C integer arithmetic rather than PyLong arithmetic when possible. Typical speedup, from unscientific testing on a 64-bit laptop, is 4.5x to 6.5x for arguments in the range 100 - 10000. Patch by Daniel Stutzbach; extensive reviews by Alexander Belopolsky.
* Issue #8715: Create PyUnicode_EncodeFSDefault() function: Encode a UnicodeVictor Stinner2010-05-1510-26/+46
| | | | | | object to Py_FileSystemDefaultEncoding with the "surrogateescape" error handler, return a bytes object. If Py_FileSystemDefaultEncoding is not set, fall back to UTF-8.
* Enable shortcuts for common encodings in PyUnicode_AsEncodedString() for anyVictor Stinner2010-05-152-23/+34
| | | | error handler, not only the default error handler (strict)
* Issue #8610: Load file system codec at startup, and display a fatal error onVictor Stinner2010-05-154-27/+62
| | | | | failure. Set the file system encoding to utf-8 (instead of None) if getting the locale encoding failed, or if nl_langinfo(CODESET) function is missing.
* Merged revisions 81185 via svnmerge fromStefan Krah2010-05-151-6/+4
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81185 | stefan.krah | 2010-05-15 11:31:08 +0200 (Sat, 15 May 2010) | 4 lines If the timeout is exceeded, count the tests as skipped instead of just issuing a warning. ........
* Fix test_capi for Windows: strip newline charactersVictor Stinner2010-05-151-2/+2
| | | | Fix test_no_FatalError_infinite_loop() introduced by r81142 (issue #3605).
* Merged revisions 81179 via svnmerge fromVictor Stinner2010-05-141-3/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81179 | victor.stinner | 2010-05-14 23:52:26 +0200 (ven., 14 mai 2010) | 2 lines Fix regression introduced by r81154 (Issue #5099, subprocess destructor) ........
* posix_listdir(), posix_readlink(): avoid temporary PyBytes objectVictor Stinner2010-05-141-38/+10
| | | | | | Use directly PyUnicode_DecodeFSDefaultAndSize() instead of PyBytes_FromStringAndSize() + PyUnicode_FromEncodedObject() if the argument is unicode.
* Issue #8711: Document PyUnicode_DecodeFSDefault*() functionsVictor Stinner2010-05-142-47/+101
| | | | | | | | | | * Add paragraph titles to c-api/unicode.rst. * Fix PyUnicode_DecodeFSDefault*() comment: it now uses the "surrogateescape" error handler (and not "replace") * Remove "The function is intended to be used for paths and file names only during bootstrapping process where the codecs are not set up." from PyUnicode_FSConverter() comment: it is used after the bootstrapping and for other purposes than file names
* Merged revisions 81163 via svnmerge fromVictor Stinner2010-05-146-13/+13
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81163 | victor.stinner | 2010-05-14 16:20:07 +0200 (ven., 14 mai 2010) | 2 lines Doc: replace PEP xxx by :pep:`xxx` to create a link on the PEP ........
* Issue #4653: fix typo in flush_std_files()Victor Stinner2010-05-141-1/+1
| | | | | Don't call sys.stderr.flush() if sys has no stderr attribute or if sys.stderr==None.
* Merged revisions 81154 via svnmerge fromBrett Cannon2010-05-141-17/+34
| | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81154 | brett.cannon | 2010-05-13 17:21:48 -0700 (Thu, 13 May 2010) | 15 lines subprocess.Popen.__del__ referenced global objects, which is a no-no thanks to interpreter shutdown semantics. Same issue goes for the methods that __del__ called. Now all the methods capture the global objects it needs as default values to private parameters (could have stuck them on the class object itself, but since the objects have nothing directly to do with the class that seemed wrong). There is no test as making one that works is hard. This patch was verified against a consistently failing test in Mercurial's test suite, though, so it has been tested in some regard. Closes issue #5099. Thanks to Mary Stern for the bug report and Gabriel Genellina for writing another patch for the same issue and attempting to write a test. ........
* Merged revisions 81152 via svnmerge fromBrett Cannon2010-05-141-1/+2
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81152 | brett.cannon | 2010-05-13 16:59:41 -0700 (Thu, 13 May 2010) | 3 lines test_site was failing under darwin for non-framework builds because a test was assuming framework-specific site-packages directories were being used. ........
* Merged revisions 81145 via svnmerge fromBenjamin Peterson2010-05-131-5/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81145 | benjamin.peterson | 2010-05-13 16:14:10 -0500 (Thu, 13 May 2010) | 1 line rip out mention of types.ListType #8703 ........
* Make PyErr_Occurred return NULL if there is no current thread. Previously itJeffrey Yasskin2010-05-133-4/+35
| | | | | | | would Py_FatalError, which called PyErr_Occurred, resulting in a semi-infinite recursion. Fixes issue 3605.
* Blocked revisions 81137 via svnmergeVictor Stinner2010-05-130-0/+0
| | | | | | | | | | ........ r81137 | victor.stinner | 2010-05-13 18:22:15 +0200 (jeu., 13 mai 2010) | 4 lines Fix verb tense in skip message. Ooops, merge also r80334 (patch by r.david.murray) ........
* Blocked revisions 81135 via svnmerge (r81135 is a merge of r80163 from py3k)Victor Stinner2010-05-130-0/+0
| | | | | | | | | | | | ........ r81135 | victor.stinner | 2010-05-13 18:18:14 +0200 (jeu., 13 mai 2010) | 6 lines Issue #8422, test_genericpath: skip the creation of a directory with an invalid UTF name on Mac OS X because the OS deny it (the name have to be a valid UTF8 string). Merge r80163 from py3k branch. ........
* Remove unnecessary assignments.Mark Dickinson2010-05-131-4/+1
|
* Merged revisions 81130 via svnmerge fromSenthil Kumaran2010-05-132-2/+7
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81130 | senthil.kumaran | 2010-05-13 08:55:21 +0530 (Thu, 13 May 2010) | 3 lines Fix Issue8657 - adding git and git+ssh as know schemes. ........
* Merged revisions 81126 via svnmerge fromMark Dickinson2010-05-121-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81126 | mark.dickinson | 2010-05-12 20:53:36 +0100 (Wed, 12 May 2010) | 1 line Fix unused variable in test_factorial. ........
* Merged revisions 81115 via svnmerge fromAntoine Pitrou2010-05-121-33/+26
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81115 | antoine.pitrou | 2010-05-12 16:02:34 +0200 (mer., 12 mai 2010) | 3 lines Improve _ssl.c formatting ........
* Merged revisions 81108 via svnmerge fromFred Drake2010-05-121-3/+12
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81108 | fred.drake | 2010-05-11 22:24:50 -0400 (Tue, 11 May 2010) | 4 lines - clarify Attr.name comment on the presence of colons in namespace mode - document Attr.value - wrap some long lines ........
* Merged revisions 81087,81106 via svnmerge fromFred Drake2010-05-121-3/+2
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81087 | fred.drake | 2010-05-11 14:12:27 -0400 (Tue, 11 May 2010) | 2 lines fix typo ........ r81106 | fred.drake | 2010-05-11 21:22:03 -0400 (Tue, 11 May 2010) | 2 lines fix error introduced in previous commit, and the adjacent additional typo ........