]>
granicus.if.org Git - python/log
Brett Cannon [Fri, 1 Nov 2013 18:04:24 +0000 (14:04 -0400)]
Abstract out stat calls in importlib for easier experimentation.
Brett Cannon [Fri, 1 Nov 2013 14:37:57 +0000 (10:37 -0400)]
Issue #19410: Put back in special-casing of '' for
importlib.machinery.FileFinder.
While originally moved to stop special-casing '' as PathFinder farther
up the typical call chain now uses the cwd in the instance of '', it
was deemed an unnecessary risk to breaking subclasses of FileFinder to
take the special-casing out.
Brett Cannon [Fri, 1 Nov 2013 14:25:13 +0000 (10:25 -0400)]
Silence a compiler warning about an unused function
Tim Golden [Fri, 1 Nov 2013 13:12:17 +0000 (13:12 +0000)]
Issue #19464 Suppress compiler warnings during clean. Patch by Zachary Ware.
Eric Snow [Fri, 1 Nov 2013 05:44:31 +0000 (23:44 -0600)]
Issue #19413: Disregard duplicate namespace portions during reload tests.
Eric Snow [Fri, 1 Nov 2013 04:22:15 +0000 (22:22 -0600)]
Issue #19413: Restore pre-3.3 reload() semantics of re-finding modules.
Victor Stinner [Thu, 31 Oct 2013 23:55:30 +0000 (00:55 +0100)]
Close #19442: warn_explicit() does nothing when called late during Python shutdown
After more tests, I now think that it is the safest option.
Vinay Sajip [Thu, 31 Oct 2013 18:44:48 +0000 (18:44 +0000)]
Closes #19349: Merged fix from 3.3.
Vinay Sajip [Thu, 31 Oct 2013 18:44:04 +0000 (18:44 +0000)]
Issue #19349: Corrected error message.
Guido van Rossum [Thu, 31 Oct 2013 18:01:40 +0000 (11:01 -0700)]
Close resources owned by subclass before calling super().close().
Tim Golden [Thu, 31 Oct 2013 17:40:16 +0000 (17:40 +0000)]
Null merge
Tim Golden [Thu, 31 Oct 2013 17:38:24 +0000 (17:38 +0000)]
Issue #19418 Fix some warnings on Win64
Victor Stinner [Thu, 31 Oct 2013 16:09:01 +0000 (17:09 +0100)]
Issue #19437: Cleanup r_ref() of the marshal module
Victor Stinner [Thu, 31 Oct 2013 16:14:52 +0000 (17:14 +0100)]
Issue #19437: Fix r_object() of marshal module, handle PyDict_SetItem() failure
for TYPE_DICT and stop immedialty on first r_object() failure
Victor Stinner [Thu, 31 Oct 2013 16:07:08 +0000 (17:07 +0100)]
Issue #19437: Fix r_object() of marshal module, handle r_byte() failure for
TYPE_SMALL_TUPLE
Victor Stinner [Thu, 31 Oct 2013 15:56:38 +0000 (16:56 +0100)]
Issue #19437: Fix r_PyLong() of marshal module, stop immediatly at first
failure, don't read any more data
Victor Stinner [Thu, 31 Oct 2013 15:35:38 +0000 (16:35 +0100)]
Issue #19437: Fix newPySSLSocket(), handle PyWeakref_NewRef() failure
Victor Stinner [Thu, 31 Oct 2013 15:34:08 +0000 (16:34 +0100)]
Issue #19437: Fix PyCFuncPtrType constructor, handle
_ctypes_alloc_format_string() failure
Victor Stinner [Thu, 31 Oct 2013 15:33:05 +0000 (16:33 +0100)]
Issue #19437: Fix PyCArrayType constructor, raise MemoryError on PyMem_Malloc()
failure
Victor Stinner [Thu, 31 Oct 2013 14:00:24 +0000 (15:00 +0100)]
Issue #19437: Fix fill_and_set_sslerror() of _ssl, handle Py_BuildValue()
failure
Don't call PyObject_CallObject() with NULL parameters and an exception set.
Victor Stinner [Thu, 31 Oct 2013 13:51:38 +0000 (14:51 +0100)]
Issue #19437: Fix show_warning() of _warnings, stop at the first error to not
call a Python function with an exception set
Victor Stinner [Thu, 31 Oct 2013 13:46:00 +0000 (14:46 +0100)]
Issue #19437: Fix get_filter() from _warnings, don't call PyObject_IsSubclass()
with an exception set
Eli Bendersky [Thu, 31 Oct 2013 12:55:31 +0000 (05:55 -0700)]
Null merge for issue #19452
It affects docs of 3.3 in a way that was fixed differently in 3.4
Eli Bendersky [Thu, 31 Oct 2013 12:53:39 +0000 (05:53 -0700)]
Issue #19452: Clarify the documentation of iterparse w.r.t. events argument.
In 3.3 iterparse accepts a tuple in events (the C accelerator enforces this).
This limitation was lifted in Python 3.4
Victor Stinner [Thu, 31 Oct 2013 12:39:23 +0000 (13:39 +0100)]
Issue #19437: Fix _pickle, don't call _Unpickler_SkipConsumed() with an
exception set
Victor Stinner [Thu, 31 Oct 2013 12:38:42 +0000 (13:38 +0100)]
cleanup _Unpickler_SkipConsumed(): remove 1 level of indentation
Tim Golden [Thu, 31 Oct 2013 10:25:47 +0000 (10:25 +0000)]
Issue #19418 Fix some warnings on Win64
Benjamin Peterson [Thu, 31 Oct 2013 05:21:06 +0000 (01:21 -0400)]
merge 3.3
Benjamin Peterson [Thu, 31 Oct 2013 05:20:58 +0000 (01:20 -0400)]
make string literal const
Vinay Sajip [Thu, 31 Oct 2013 01:11:17 +0000 (01:11 +0000)]
Merged documentation update from 3.3.
Vinay Sajip [Thu, 31 Oct 2013 01:10:30 +0000 (01:10 +0000)]
Corrected some incorrect cross-references.
Guido van Rossum [Wed, 30 Oct 2013 21:56:49 +0000 (14:56 -0700)]
asyncio: Add new file (forgotten).
Guido van Rossum [Wed, 30 Oct 2013 21:52:03 +0000 (14:52 -0700)]
asyncio: Add support for running subprocesses on Windows with the IOCP event loop (Richard Oudkerk).
Guido van Rossum [Wed, 30 Oct 2013 21:44:05 +0000 (14:44 -0700)]
asyncio: Make the IOCP proactor support "waitable" handles (Richard Oudkerk).
Guido van Rossum [Wed, 30 Oct 2013 21:38:05 +0000 (14:38 -0700)]
asyncio: Update some comments.
Guido van Rossum [Wed, 30 Oct 2013 21:36:58 +0000 (14:36 -0700)]
asyncio: When not closing the connection after receiving EOF, still remove the read handler.
Charles-François Natali [Wed, 30 Oct 2013 19:31:04 +0000 (20:31 +0100)]
Issue #19172: Add a get_map() method to selectors.
Victor Stinner [Wed, 30 Oct 2013 18:57:52 +0000 (19:57 +0100)]
Issue #19437: Fix select.epoll.poll(), fix code handling PyMem_New() error
The bug was introduced with the select.epoll module! So it's 5 years old :-)
Victor Stinner [Wed, 30 Oct 2013 17:55:24 +0000 (18:55 +0100)]
Issue #19437: Fix os.statvfs(), handle errors
Victor Stinner [Wed, 30 Oct 2013 17:27:13 +0000 (18:27 +0100)]
Issue #19424: Fix a compiler warning
memcmp() just takes raw pointers
Benjamin Peterson [Wed, 30 Oct 2013 16:51:16 +0000 (12:51 -0400)]
merge 3.3 (#19435)
Benjamin Peterson [Wed, 30 Oct 2013 16:50:18 +0000 (12:50 -0400)]
merge 3.2 (#19435)
Benjamin Peterson [Wed, 30 Oct 2013 16:48:59 +0000 (12:48 -0400)]
merge 3.1 (#19435)
Benjamin Peterson [Wed, 30 Oct 2013 16:43:09 +0000 (12:43 -0400)]
use the collapsed path in the run_cgi method (closes #19435)
Benjamin Peterson [Wed, 30 Oct 2013 02:25:55 +0000 (22:25 -0400)]
merge 3.3
Benjamin Peterson [Wed, 30 Oct 2013 02:25:06 +0000 (22:25 -0400)]
update comment
Victor Stinner [Tue, 29 Oct 2013 23:04:59 +0000 (00:04 +0100)]
Issue #19442: Fix warnings emitted during Python shutdown
Warnings may be emitted during Python shutdown, like "unclosed file XXX".
During shutdown, globals()['__main__'] may be None.
Victor Stinner [Tue, 29 Oct 2013 22:58:05 +0000 (23:58 +0100)]
Issue #19424: Fix test_warnings for locale encoding unable to encode
"\xe9\u20ac" characters
Victor Stinner [Tue, 29 Oct 2013 22:43:41 +0000 (23:43 +0100)]
Issue #19424: Fix the warnings module to accept filename containing surrogate
characters.
Victor Stinner [Tue, 29 Oct 2013 22:31:50 +0000 (23:31 +0100)]
Issue #19424: Optimize PyUnicode_CompareWithASCIIString()
Use fast memcmp() instead of a loop using the slow PyUnicode_READ() macro.
strlen() is still necessary to check Unicode string containing null bytes.
Ned Deily [Tue, 29 Oct 2013 22:00:48 +0000 (15:00 -0700)]
Issue #19373: Add Misc/NEWS entry.
Christian Heimes [Tue, 29 Oct 2013 21:21:16 +0000 (22:21 +0100)]
merge
Christian Heimes [Tue, 29 Oct 2013 21:20:52 +0000 (22:20 +0100)]
merge
Christian Heimes [Tue, 29 Oct 2013 21:19:39 +0000 (22:19 +0100)]
fix language
Tim Golden [Tue, 29 Oct 2013 21:07:12 +0000 (21:07 +0000)]
Null merge
Tim Golden [Tue, 29 Oct 2013 21:02:25 +0000 (21:02 +0000)]
Issue 15792 Correct build options on Win64. Patch by Jeremy Kloth.
Antoine Pitrou [Tue, 29 Oct 2013 20:31:25 +0000 (21:31 +0100)]
Issue #17936: Fix O(n**2) behaviour when adding or removing many subclasses of a given type.
Christian Heimes [Tue, 29 Oct 2013 20:16:58 +0000 (21:16 +0100)]
merge
Christian Heimes [Tue, 29 Oct 2013 20:11:55 +0000 (21:11 +0100)]
Issue #19227 / Issue #18747: Remove pthread_atfork() handler to remove OpenSSL re-seeding
It is causing trouble like e.g. hanging processes.
Christian Heimes [Tue, 29 Oct 2013 20:08:56 +0000 (21:08 +0100)]
Issue #18747: document issue with OpenSSL's CPRNG state and fork
Christian Heimes [Tue, 29 Oct 2013 19:50:01 +0000 (20:50 +0100)]
Issue #19227 / Issue #18747: Remove pthread_atfork() handler to remove OpenSSL re-seeding
It is causing trouble like e.g. hanging processes.
Victor Stinner [Tue, 29 Oct 2013 19:33:14 +0000 (20:33 +0100)]
Issue #19437: Fix dec_format() of the _decimal module, handle dec_strdup()
failure (memory allocation failure): raise a MemoryError exception
Victor Stinner [Tue, 29 Oct 2013 18:59:31 +0000 (19:59 +0100)]
Issue #19433: test_capi: check signness of some C types
Victor Stinner [Tue, 29 Oct 2013 18:39:52 +0000 (19:39 +0100)]
Issue #19433: test_capi: add tests on the size of some C types
Victor Stinner [Tue, 29 Oct 2013 18:31:43 +0000 (19:31 +0100)]
Issue #19437: Fix _PyUnicode_New() (constructor of legacy string), set all
attributes before checking for error. The destructor expects all attributes to
be set. It is now safe to call Py_DECREF(unicode) in the constructor.
Victor Stinner [Tue, 29 Oct 2013 18:29:52 +0000 (19:29 +0100)]
Issue #19437: Fix PyObject_CallFunction(), handle Py_VaBuildValue() and
PyTuple_New() failure
Victor Stinner [Tue, 29 Oct 2013 18:28:20 +0000 (19:28 +0100)]
Cleanup locale.localeconv(): move Py_DECREF() closer to the error
Victor Stinner [Tue, 29 Oct 2013 18:26:11 +0000 (19:26 +0100)]
Issue #19437: Fix convert_op_cmp() of decimal.Decimal rich comparator, handle
PyObject_IsInstance() failure
Victor Stinner [Tue, 29 Oct 2013 15:05:14 +0000 (16:05 +0100)]
Issue #19437: Fix Array_subscript() of ctypes, handle Array_item() failure
Christian Heimes [Tue, 29 Oct 2013 11:14:55 +0000 (12:14 +0100)]
Issue #19420: Fix reference leak in module initalization code of _hashopenssl.c
Victor Stinner [Tue, 29 Oct 2013 10:34:05 +0000 (11:34 +0100)]
Issue #18609: Add a fast-path for "iso8859-1" encoding
On AIX, the locale encoding may be "iso8859-1", which was not a known syntax of
the legacy ISO 8859-1 encoding.
Using a C codec instead of a Python codec is faster but also avoids tricky
issues during Python startup or complex code.
Victor Stinner [Tue, 29 Oct 2013 09:56:34 +0000 (10:56 +0100)]
fix indent
Georg Brandl [Tue, 29 Oct 2013 07:17:08 +0000 (08:17 +0100)]
merge with 3.3
Georg Brandl [Tue, 29 Oct 2013 07:16:56 +0000 (08:16 +0100)]
Clarify sentence.
Georg Brandl [Tue, 29 Oct 2013 07:14:51 +0000 (08:14 +0100)]
Closes #19416: fix references in the nntplib docs.
Georg Brandl [Tue, 29 Oct 2013 07:10:36 +0000 (08:10 +0100)]
Fix wrong signature for two-argument newwin(). Found by Jacqueline Leykam on docs@.
Georg Brandl [Tue, 29 Oct 2013 07:05:10 +0000 (08:05 +0100)]
Fix typo: js_JP is not a valid locale.
Victor Stinner [Tue, 29 Oct 2013 02:50:45 +0000 (03:50 +0100)]
Issue #18408: Fix PyCStructUnionType_update_stgdict(), handle
_ctypes_alloc_format_string() failure
Victor Stinner [Tue, 29 Oct 2013 02:50:21 +0000 (03:50 +0100)]
Issue #18408: Fix _ctypes_alloc_format_string(), raise MemoryError on memory
allocation failure
Victor Stinner [Tue, 29 Oct 2013 02:15:37 +0000 (03:15 +0100)]
Issue #18408: Fix bytearrayiter.partition()/rpartition(), handle
PyByteArray_FromStringAndSize() failure (ex: on memory allocation failure)
Victor Stinner [Tue, 29 Oct 2013 02:14:22 +0000 (03:14 +0100)]
Issue #18408: Fix error handling in PyBytes_FromObject()
_PyBytes_Resize(&new) sets new to NULL on error, don't call Py_DECREF() with NULL.
Victor Stinner [Tue, 29 Oct 2013 01:23:46 +0000 (02:23 +0100)]
Issue #18408: Fix iobase_readline(), handle PyByteArray_Resize() failure
Victor Stinner [Tue, 29 Oct 2013 00:46:24 +0000 (01:46 +0100)]
Issue #18408: Fix zipimport, handle PyUnicode_Substring() and get_subname() failures
Victor Stinner [Tue, 29 Oct 2013 00:43:44 +0000 (01:43 +0100)]
Issue #19428: zipimport now handles errors when reading truncated or invalid
ZIP archive.
Victor Stinner [Tue, 29 Oct 2013 00:28:23 +0000 (01:28 +0100)]
Issue #18408: Fix PyUnicode_AsUTF8AndSize(), raise MemoryError exception on
memory allocation failure
Victor Stinner [Tue, 29 Oct 2013 00:19:37 +0000 (01:19 +0100)]
Issue #18408: Add a new PyFrame_FastToLocalsWithError() function to handle
exceptions when merging fast locals into f_locals of a frame.
PyEval_GetLocals() now raises an exception and return NULL on failure.
Victor Stinner [Mon, 28 Oct 2013 23:59:44 +0000 (00:59 +0100)]
CJK codecs: less magical macros, semicolon is now explicit
Victor Stinner [Mon, 28 Oct 2013 23:19:27 +0000 (00:19 +0100)]
CJK codecs: less magic macros, require explicit semicolon
Richard Oudkerk [Mon, 28 Oct 2013 23:11:58 +0000 (23:11 +0000)]
Issue #19425 -- a pickling error should not cause pool to hang.
Victor Stinner [Mon, 28 Oct 2013 23:09:41 +0000 (00:09 +0100)]
CJK codecs: add newlines for readability
Victor Stinner [Mon, 28 Oct 2013 22:54:13 +0000 (23:54 +0100)]
CJK codecs: use less magic and more readable macros, write explicit if
Victor Stinner [Mon, 28 Oct 2013 22:47:26 +0000 (23:47 +0100)]
CJK codecs: remove unused TRYMAP_ENC_MPLANE macro
Victor Stinner [Mon, 28 Oct 2013 22:18:39 +0000 (23:18 +0100)]
Issue #18509: handle PyUnicode_Writer() error
Richard Oudkerk [Mon, 28 Oct 2013 23:23:04 +0000 (23:23 +0000)]
Merge.
Nadeem Vawda [Mon, 28 Oct 2013 20:41:24 +0000 (21:41 +0100)]
#19395: Raise exception when pickling a (BZ2|LZMA)(Compressor|Decompressor).
The underlying C libraries provide no mechanism for serializing compressor and
decompressor objects, so actually pickling these classes is impractical.
Previously, these objects would be pickled without error, but attempting to use
a deserialized instance would segfault the interpreter.
Nadeem Vawda [Mon, 28 Oct 2013 20:35:23 +0000 (21:35 +0100)]
#19395: Raise exception when pickling a (BZ2|LZMA)(Compressor|Decompressor).
The underlying C libraries provide no mechanism for serializing compressor and
decompressor objects, so actually pickling these classes is impractical.
Previously, these objects would be pickled without error, but attempting to use
a deserialized instance would segfault the interpreter.
Victor Stinner [Mon, 28 Oct 2013 18:16:21 +0000 (19:16 +0100)]
Issue #19421: add an unit test for warnings.warn() during finalization
Victor Stinner [Mon, 28 Oct 2013 17:47:22 +0000 (18:47 +0100)]
Issue #19421: fix a check in warnings.warn() to be able to use it during Python
finalization.
sys.argv is set to None during Python finalization: add PyList_Check() to avoid
a crash in PyList_Size().
Georg Brandl [Mon, 28 Oct 2013 07:08:09 +0000 (08:08 +0100)]
null merge with 3.3
Georg Brandl [Mon, 28 Oct 2013 07:05:26 +0000 (08:05 +0100)]
Add NEWS header for 3.3.4.