summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* Issue #8589: Decode PYTHONWARNINGS environment variable with the file systemVictor Stinner2010-05-191-0/+4
| | | | | encoding and surrogateespace error handler instead of the locale encoding to be consistent with os.environ. Add PySys_AddWarnOptionUnicode() function.
* Issue #8513: os.get_exec_path() supports b'PATH' key and bytes value.Victor Stinner2010-05-181-0/+5
| | | | | | subprocess.Popen() and os._execvpe() support bytes program name. Add os.supports_bytes_environ flag: True if the native OS type of the environment is bytes (eg. False on Windows).
* Issue #8633: Support for POSIX.1-2008 binary pax headers.Lars Gustäbel2010-05-171-0/+3
| | | | | | | | | | | | | | tarfile is now able to read and write pax headers with a "hdrcharset=BINARY" record. This record was introduced in POSIX.1-2008 as a method to store unencoded binary strings that cannot be translated to UTF-8. In practice, this is just a workaround that allows a tar implementation to store filenames that do not comply with the current filesystem encoding and thus cannot be decoded correctly. Additionally, tarfile works around a bug in current versions of GNU tar: undecodable filenames are stored as-is in a pax header without a "hdrcharset" record being added. Technically, these headers are invalid, but tarfile manages to read them correctly anyway.
* Issue #1285086: Speed up urllib.parse functions: quote, quote_from_bytes, ↵Florent Xicluna2010-05-171-0/+3
| | | | | | | | | | | | | unquote, unquote_to_bytes. Recorded merge of revisions 81265 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81265 | florent.xicluna | 2010-05-17 15:35:09 +0200 (lun, 17 mai 2010) | 2 lines Issue #1285086: Speed up urllib.quote and urllib.unquote for simple cases. ........
* Merged revisions 81255 via svnmerge fromTarek Ziadé2010-05-171-0/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81255 | tarek.ziade | 2010-05-17 12:06:20 +0200 (Mon, 17 May 2010) | 1 line Fixed #8688: Distutils now recalculates MANIFEST everytime. ........
* PyObject_Dump() encodes unicode objects to utf8 with backslashreplace (insteadVictor Stinner2010-05-171-0/+3
| | | | of strict) error handler to escape surrogates
* Issue #8477: ssl.RAND_egd() supports str with surrogates and bytes for the pathVictor Stinner2010-05-161-2/+2
|
* Issue #8477: _ssl._test_decode_cert() supports str with surrogates and bytesVictor Stinner2010-05-161-0/+3
| | | | for the filename
* Issue #8550: Add first class `SSLContext` objects to the ssl module.Antoine Pitrou2010-05-161-0/+2
|
* 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 ........
* fix one more runonBenjamin Peterson2010-05-151-2/+2
|
* Issue #8692: Improve performance of math.factorial:Mark Dickinson2010-05-151-0/+6
| | | | | | | | | | | | | (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-151-0/+5
| | | | | | 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-151-0/+3
| | | | 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-151-0/+4
| | | | | 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 81098 via svnmerge fromAntoine Pitrou2010-05-111-0/+3
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81098 | antoine.pitrou | 2010-05-12 01:42:28 +0200 (mer., 12 mai 2010) | 5 lines Issue #8681: Make the zlib module's error messages more informative when the zlib itself doesn't give any detailed explanation. ........
* Merged revisions 81094 via svnmerge fromAntoine Pitrou2010-05-111-0/+4
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81094 | antoine.pitrou | 2010-05-12 01:32:31 +0200 (mer., 12 mai 2010) | 6 lines Issue #8672: Add a zlib test ensuring that an incomplete stream can be handled by a decompressor object without errors (it returns incomplete uncompressed data). ........
* adding myself to 'testing' interest area of maintainers.rst fileGiampaolo Rodolà2010-05-111-1/+1
|
* Issue #8657: Make the audioop module PY_SSIZE_T_CLEAN.Mark Dickinson2010-05-111-0/+3
|
* Merged revisions 81045 via svnmerge fromMark Dickinson2010-05-102-0/+4
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81045 | mark.dickinson | 2010-05-10 17:07:42 +0100 (Mon, 10 May 2010) | 3 lines Issue #8674: Fix incorrect and UB-inducing overflow checks in audioop module. Thanks Tomas Hoger for the patch. ........
* Fix issue #4972: adds ftplib.FTP context manager protocolGiampaolo Rodolà2010-05-101-0/+3
|
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-76/+76
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* Merged revisions 81007 via svnmerge fromJean-Paul Calderone2010-05-091-0/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81007 | jean-paul.calderone | 2010-05-08 16:06:02 -0400 (Sat, 08 May 2010) | 1 line Skip signal handler re-installation if it is not necessary. Issue 8354. ........
* add news for r81005Benjamin Peterson2010-05-081-0/+3
|
* Issue #8644: Improve accuracy of timedelta.total_seconds, by doing intermediateMark Dickinson2010-05-081-0/+5
| | | | | | | computations with integer arithmetic instead of floating point. td.total_seconds() now agrees with td / timedelta(seconds = 1). Thanks Alexander Belopolsky for the patch.
* Issue #8514: Add os.fsencode() function (Unix only): encode a string to bytesVictor Stinner2010-05-081-0/+3
| | | | for use in the file system, environment variables or the command line.
* Merged revisions 80967 via svnmerge fromRonald Oussoren2010-05-081-0/+3
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80967 | ronald.oussoren | 2010-05-08 12:29:06 +0200 (Sat, 08 May 2010) | 4 lines Issue #8084: ensure that the --user directory conforms to platforms standars on OSX when using a python framework. ........
* Merged revisions 80926 via svnmerge fromAntoine Pitrou2010-05-071-0/+4
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80926 | antoine.pitrou | 2010-05-07 18:50:34 +0200 (ven., 07 mai 2010) | 5 lines Issue #8571: Fix an internal error when compressing or decompressing a chunk larger than 1GB with the zlib module's compressor and decompressor objects. ........
* rephraseBenjamin Peterson2010-05-061-5/+4
|
* Issue #8603: Create a bytes version of os.environ for UnixVictor Stinner2010-05-061-0/+6
| | | | | | | Create os.environb mapping and os.getenvb() function, os.unsetenv() encodes str argument to the file system encoding with the surrogateescape error handler (instead of utf8/strict) and accepts bytes, and posix.environ keys and values are bytes.
* Merged revisions 80875 via svnmerge fromGiampaolo Rodolà2010-05-061-0/+7
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80875 | giampaolo.rodola | 2010-05-06 19:57:06 +0200 (gio, 06 mag 2010) | 1 line Fix asyncore issues 8573 and 8483: _strerror might throw ValueError; asyncore.__getattr__ cheap inheritance caused confusing error messages when accessing undefined class attributes; added an alias for __str__ which now is used as a fallback for __repr__ ........
* Merged revisions 80832 via svnmerge fromMark Dickinson2010-05-051-0/+6
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80832 | mark.dickinson | 2010-05-05 23:23:58 +0100 (Wed, 05 May 2010) | 2 lines Issue #8625: Turn off gcc optimization in debug builds. ........
* Merged revisions 80830 via svnmerge fromTarek Ziadé2010-05-051-0/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80830 | tarek.ziade | 2010-05-06 00:15:31 +0200 (Thu, 06 May 2010) | 1 line Fixed #4265: shutil.copyfile() was leaking file descriptors when disk fills ........
* Issue #8390: tarfile uses surrogateespace as the default error handlerVictor Stinner2010-05-051-0/+3
| | | | (instead of replace in read mode or strict in write mode)
* Bug 7755: audiotest.au is arguably copyrighted material, but definitely makesBarry Warsaw2010-05-051-0/+2
| | | | | Debian unhappy. The actual contents of the audio clip are unimportant, so replace it with something that we know is okay. Guido likes woodpeckers.
* Merged revisions 80784 via svnmerge fromRonald Oussoren2010-05-051-0/+3
| | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80784 | ronald.oussoren | 2010-05-05 16:48:37 +0200 (Wed, 05 May 2010) | 9 lines The C function used by uuid.uuid4 is broken on OSX 10.6 in that after os.fork() the parent and child generate the same sequence of UUIDs. This patch falls back to the the Python implementation on OSX 10.6 or later. Fixes issue #8621. ........
* Merged revisions 80782 via svnmerge fromMarc-André Lemburg2010-05-051-2/+2
| | | | | | | | | | svn+pythonssh://pythondev@svn.python.org/python/trunk ........ r80782 | marc-andre.lemburg | 2010-05-05 15:30:01 +0200 (Wed, 05 May 2010) | 3 lines Update the NEWS entry for issue #8211. ........
* Merged revisions 80753 via svnmerge fromMark Dickinson2010-05-041-0/+6
| | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80753 | mark.dickinson | 2010-05-04 15:25:50 +0100 (Tue, 04 May 2010) | 10 lines Issue #8567: Fix incorrect precedence of signals in Decimal module. When a Decimal operation raises multiple signals and more than one of those signals is trapped, the specification determines the order in which the signals should be handled. In many cases this order wasn't being followed, leading to the wrong Python exception being raised. This commit fixes those cases, and adds extra tests. The tests are only enabled when EXTENDEDERRORTESTS is True, since they involve rerunning each Decimal testcase several times. ........
* Deprecate OSF* supportJesus Cea2010-05-031-0/+3
|
* Merged revisions 80720 via svnmerge fromAntoine Pitrou2010-05-031-0/+4
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80720 | antoine.pitrou | 2010-05-03 18:25:33 +0200 (lun., 03 mai 2010) | 5 lines Issue #7865: The close() method of :mod:`io` objects should not swallow exceptions raised by the implicit flush(). Also ensure that calling close() several times is supported. Patch by Pascal Chambon. ........
* Merged revisions 80704 via svnmerge fromAntoine Pitrou2010-05-021-0/+3
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80704 | antoine.pitrou | 2010-05-02 21:51:14 +0200 (dim., 02 mai 2010) | 4 lines Issue #4687: Fix accuracy of garbage collection runtimes displayed with gc.DEBUG_STATS. ........
* Issue #8533: revert r80694; try a different fix: regrtest uses backslashreplaceVictor Stinner2010-05-021-2/+2
| | | | | error handler for stdout to avoid UnicodeEncodeError (write non-ASCII character to stdout using ASCII encoding)
* Merged revisions 80698 via svnmerge fromRonald Oussoren2010-05-021-0/+3
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80698 | ronald.oussoren | 2010-05-02 11:48:21 +0200 (Sun, 02 May 2010) | 3 lines For for issue #7192: with this patch webbrowser.get("firefox") works on OSX ........
* Issue #8533: Write tracebacks and failed tests to sys.stderr instead ofVictor Stinner2010-05-021-0/+3
| | | | sys.stdout to avoid UnicodeEncodeError (use backslashreplace error handler)
* add myself to Misc/maintainers.rst for asyncore, asynchat and ssl modules ↵Giampaolo Rodolà2010-05-011-4/+4
| | | | and networking interest area
* Merged revisions 80669 via svnmerge fromAntoine Pitrou2010-04-301-0/+3
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80669 | antoine.pitrou | 2010-05-01 01:08:48 +0200 (sam., 01 mai 2010) | 4 lines Issue #8576: Remove use of find_unused_port() in test_smtplib and test_multiprocessing. Patch by Paul Moore. ........
* PyFile_FromFd() uses PyUnicode_DecodeFSDefault() instead ofVictor Stinner2010-04-301-0/+4
| | | | | PyUnicode_FromString() to support surrogates in the filename and use the right encoding
* PyUnicode_DecodeFSDefaultAndSize() uses surrogateescape error handlerVictor Stinner2010-04-301-0/+2
| | | | | | This function is only used to decode Python module filenames, but Python doesn't support surrogates in modules filenames yet. So nobody noticed this minor bug.
* Merged revisions 80647 via svnmerge fromRonald Oussoren2010-04-301-0/+3
| | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80647 | ronald.oussoren | 2010-04-30 13:20:14 +0200 (Fri, 30 Apr 2010) | 11 lines Fix for issue #3646: with this patch it is possible to do a framework install of Python in your home directory (on OSX): $ configure --enable-framework=${HOME}/Library/Frameworks $ make && make install Without this patch the framework would get installed just fine, but 'make install' would try to install the application bundles and command-line tools outside the user's home, which doesn't work for non-admin users (and is bad form anyway). ........
* Merged revisions 80616 via svnmerge fromLars Gustäbel2010-04-291-0/+3
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80616 | lars.gustaebel | 2010-04-29 17:23:38 +0200 (Thu, 29 Apr 2010) | 4 lines Issue #8464: tarfile.open(name, mode="w|") no longer creates files with execute permissions set. ........