]>
granicus.if.org Git - python/log
Antoine Pitrou [Wed, 23 Nov 2011 00:42:52 +0000 (01:42 +0100)]
Issue #13458: Fix a memory leak in the ssl module when decoding a certificate with a subjectAltName.
Patch by Robert Xiao.
Antoine Pitrou [Wed, 23 Nov 2011 00:39:19 +0000 (01:39 +0100)]
Issue #13458: Fix a memory leak in the ssl module when decoding a certificate with a subjectAltName.
Patch by Robert Xiao.
Giampaolo Rodola' [Tue, 22 Nov 2011 23:03:15 +0000 (00:03 +0100)]
revert cset
6a0da9b65e54 against sched.py committed by accident
Victor Stinner [Tue, 22 Nov 2011 21:32:28 +0000 (22:32 +0100)]
(Merge 3.2) Issue #13436: Fix unsetenv() test on Windows
Victor Stinner [Tue, 22 Nov 2011 21:30:19 +0000 (22:30 +0100)]
Issue #13436: Fix unsetenv() test on Windows
Victor Stinner [Tue, 22 Nov 2011 21:23:23 +0000 (22:23 +0100)]
Merge branch default
Victor Stinner [Tue, 22 Nov 2011 21:22:26 +0000 (22:22 +0100)]
Merge branch 3.2
Victor Stinner [Tue, 22 Nov 2011 21:16:17 +0000 (22:16 +0100)]
(Merge 3.2) Issue #13415: os.unsetenv() doesn't ignore errors anymore.
Amaury Forgeot d'Arc [Tue, 22 Nov 2011 21:02:01 +0000 (22:02 +0100)]
Merge branch 3.2
Victor Stinner [Tue, 22 Nov 2011 21:01:28 +0000 (22:01 +0100)]
Issue #13415: os.unsetenv() doesn't ignore errors anymore.
Amaury Forgeot d'Arc [Tue, 22 Nov 2011 20:52:30 +0000 (21:52 +0100)]
Issue #13436: commit regenerated Python-ast.c
Amaury Forgeot d'Arc [Tue, 22 Nov 2011 20:51:55 +0000 (21:51 +0100)]
Issue #13436: Fix a bogus error message when an AST object was passed
an invalid integer value.
Benjamin Peterson [Tue, 22 Nov 2011 20:29:32 +0000 (15:29 -0500)]
fix compiler warning by implementing this more cleverly
Giampaolo Rodola' [Tue, 22 Nov 2011 20:19:37 +0000 (21:19 +0100)]
sort last committed name in alphabetical order
Charles-François Natali [Tue, 22 Nov 2011 18:51:14 +0000 (19:51 +0100)]
Issue #13156: _PyGILState_Reinit(): Re-associate the auto thread state with the
TLS key only if the thread that called fork() had an associated auto thread
state (this might not be the case for example for a thread created outside of
Python calling into a subinterpreter).
Charles-François Natali [Tue, 22 Nov 2011 18:49:51 +0000 (19:49 +0100)]
Issue #13156: _PyGILState_Reinit(): Re-associate the auto thread state with the
TLS key only if the thread that called fork() had an associated auto thread
state (this might not be the case for example for a thread created outside of
Python calling into a subinterpreter).
Amaury Forgeot d'Arc [Tue, 22 Nov 2011 18:34:08 +0000 (19:34 +0100)]
bytes() can't be used to get a representation of an object.
Charles-François Natali [Tue, 22 Nov 2011 17:55:22 +0000 (18:55 +0100)]
Issue #12156: Skip test_multiprocessing on systems which don't support enough
POSIX semaphores (among which FreeBSD < 8).
Charles-François Natali [Tue, 22 Nov 2011 17:53:49 +0000 (18:53 +0100)]
Issue #13093: Perform a real merge.
Charles-François Natali [Tue, 22 Nov 2011 17:36:39 +0000 (18:36 +0100)]
Issue #12156: Skip test_multiprocessing on systems which don't support enough
POSIX semaphores (among which FreeBSD < 8).
Giampaolo Rodola' [Tue, 22 Nov 2011 12:37:58 +0000 (13:37 +0100)]
fix wrong credit and issue id given in previous commit
Giampaolo Rodola' [Tue, 22 Nov 2011 12:33:34 +0000 (13:33 +0100)]
Fix 13245:
sched.scheduler class constructor's timefunc and delayfunct parameters are now optional.
scheduler.enter and scheduler.enterabs methods gained a new kwargs parameter.
Patch contributed by Matt Mulsow.
Victor Stinner [Tue, 22 Nov 2011 02:38:40 +0000 (03:38 +0100)]
find_maxchar_surrogates() reuses surrogate macros
Victor Stinner [Tue, 22 Nov 2011 02:31:20 +0000 (03:31 +0100)]
Remove "#ifdef Py_UNICODE_WIDE": Python is now always wide
Victor Stinner [Tue, 22 Nov 2011 02:27:53 +0000 (03:27 +0100)]
Issue #13441: Disable temporary the check on the maximum character until
the Solaris issue is solved.
But add assertion on the maximum character in various encoders: UTF-7, UTF-8,
wide character (wchar_t*, Py_UNICODE*), unicode-escape, raw-unicode-escape.
Fix also unicode_encode_ucs1() for backslashreplace error handler: Python is
now always "wide".
Victor Stinner [Tue, 22 Nov 2011 01:30:47 +0000 (02:30 +0100)]
Fix compiler warnings
Victor Stinner [Tue, 22 Nov 2011 01:27:30 +0000 (02:27 +0100)]
Use the new Unicode API
* Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0)
* Replce PyUnicode_FromUnicode(str, len) by PyUnicode_FromWideChar(str, len)
* Replace Py_UNICODE by wchar_t
* posix_putenv() uses PyUnicode_FromFormat() to create the string, instead
of PyUnicode_FromUnicode() + _snwprintf()
Victor Stinner [Tue, 22 Nov 2011 00:50:07 +0000 (01:50 +0100)]
(Merge 3.2) Issue #13093: Fix error handling on PyUnicode_EncodeDecimal()
Victor Stinner [Tue, 22 Nov 2011 00:45:37 +0000 (01:45 +0100)]
Issue #13093: Fix error handling on PyUnicode_EncodeDecimal()
* Add tests for PyUnicode_EncodeDecimal() and PyUnicode_TransformDecimalToASCII()
* Remove the unused "e" variable in replace()
Victor Stinner [Tue, 22 Nov 2011 00:29:14 +0000 (01:29 +0100)]
PyUnicode_FromKindAndData() fails with a ValueError if size < 0
Victor Stinner [Tue, 22 Nov 2011 00:23:02 +0000 (01:23 +0100)]
UTF-8 decoder: set consumed value in the latin1 fast-path
Victor Stinner [Tue, 22 Nov 2011 00:22:34 +0000 (01:22 +0100)]
Replace _PyUnicode_READY_REPLACE() and _PyUnicode_ReadyReplace() with unicode_ready()
* unicode_ready() has a simpler API
* try to reuse unicode_empty and latin1_char singleton everywhere
* Fix a reference leak in _PyUnicode_TranslateCharmap()
* PyUnicode_InternInPlace() doesn't try to get a singleton anymore, to avoid
having to handle a failure
Victor Stinner [Tue, 22 Nov 2011 00:06:15 +0000 (01:06 +0100)]
Add a test on str.__getnewargs__()
It tests indirectly PyUnicode_Copy(): ensure that the string is a copy.
Victor Stinner [Mon, 21 Nov 2011 22:12:56 +0000 (23:12 +0100)]
Rewrite PyUnicode_TransformDecimalToASCII() to use the new Unicode API
Victor Stinner [Mon, 21 Nov 2011 22:11:52 +0000 (23:11 +0100)]
Remove an unused variable from PyUnicode_Copy()
Victor Stinner [Mon, 21 Nov 2011 22:03:47 +0000 (23:03 +0100)]
Simplify PyUnicode_Copy()
USe PyUnicode_Copy() in fixup()
Victor Stinner [Mon, 21 Nov 2011 21:54:05 +0000 (22:54 +0100)]
Fix a compiler warning in _PyUnicode_CheckConsistency()
Victor Stinner [Mon, 21 Nov 2011 21:52:58 +0000 (22:52 +0100)]
Rewrite PyUnicode_EncodeDecimal() to use the new Unicode API
Add tests for PyUnicode_EncodeDecimal() and
PyUnicode_TransformDecimalToASCII().
Antoine Pitrou [Mon, 21 Nov 2011 20:26:56 +0000 (21:26 +0100)]
Issue #12328: Under Windows, refactor handling of Ctrl-C events and
make _multiprocessing.win32.WaitForMultipleObjects interruptible when
the wait_flag parameter is false. Patch by sbt.
Antoine Pitrou [Mon, 21 Nov 2011 19:46:33 +0000 (20:46 +0100)]
Issue #13411: memoryview objects are now hashable when the underlying object is hashable.
Antoine Pitrou [Mon, 21 Nov 2011 19:39:13 +0000 (20:39 +0100)]
Issue #13417: speed up utf-8 decoding by around 2x for the non-fully-ASCII case.
This almost catches up with pre-PEP 393 performance, when decoding needed
only one pass.
Antoine Pitrou [Mon, 21 Nov 2011 19:22:01 +0000 (20:22 +0100)]
Issue #13322: Fix BufferedWriter.write() to ensure that BlockingIOError is
raised when the wrapped raw file is non-blocking and the write would block.
Previous code assumed that the raw write() would raise BlockingIOError, but
RawIOBase.write() is defined to returned None when the call would block.
Patch by sbt.
Antoine Pitrou [Mon, 21 Nov 2011 19:16:44 +0000 (20:16 +0100)]
Issue #13322: Fix BufferedWriter.write() to ensure that BlockingIOError is
raised when the wrapped raw file is non-blocking and the write would block.
Previous code assumed that the raw write() would raise BlockingIOError, but
RawIOBase.write() is defined to returned None when the call would block.
Patch by sbt.
Victor Stinner [Mon, 21 Nov 2011 17:04:30 +0000 (18:04 +0100)]
Issue #13441: Reenable strxfrm() tests on Solaris
Victor Stinner [Mon, 21 Nov 2011 15:01:27 +0000 (16:01 +0100)]
Remove temporary hacks for the issue #13441
Victor Stinner [Mon, 21 Nov 2011 14:41:17 +0000 (15:41 +0100)]
Another temporary hack to debug the issue #13441
Dump the wchar_t that we are going to decode and dump the locale
Victor Stinner [Mon, 21 Nov 2011 13:31:41 +0000 (14:31 +0100)]
Issue #13441: _PyUnicode_CheckConsistency() dumps the string if the maximum
character is bigger than U+10FFFF and locale.localeconv() dumps the string
before decoding it.
Temporary hack to debug the issue #13441.
Victor Stinner [Mon, 21 Nov 2011 12:14:43 +0000 (13:14 +0100)]
What's new in Python 3.3: Rephrase PEP 393 doc
Victor Stinner [Mon, 21 Nov 2011 11:43:50 +0000 (12:43 +0100)]
winreg module avoids the deprecated Unicode API
Victor Stinner [Mon, 21 Nov 2011 02:19:05 +0000 (03:19 +0100)]
Issue #13441: Disable temporary localeconv() tests on Solaris
Victor Stinner [Mon, 21 Nov 2011 02:01:27 +0000 (03:01 +0100)]
CJK codecs checks for conversion to Py_UNICODE* failures
Victor Stinner [Mon, 21 Nov 2011 01:50:14 +0000 (02:50 +0100)]
MultibyteCodec_Encode() checks if PyUnicode_AS_UNICODE() failed
Victor Stinner [Mon, 21 Nov 2011 01:49:52 +0000 (02:49 +0100)]
Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()
And PyUnicode_GetSize() => PyUnicode_GetLength()
Victor Stinner [Mon, 21 Nov 2011 01:24:49 +0000 (02:24 +0100)]
PyUnicode_GET_SIZE() checks that PyUnicode_AsUnicode() succeed
using an assertion
Victor Stinner [Mon, 21 Nov 2011 01:17:08 +0000 (02:17 +0100)]
Fix a typo in PC/_subprocess.c
Victor Stinner [Mon, 21 Nov 2011 01:11:26 +0000 (02:11 +0100)]
ctypes check for PyUnicode_GET_SIZE() failure
Victor Stinner [Mon, 21 Nov 2011 01:06:57 +0000 (02:06 +0100)]
test_widechar() uses the new Unicode API
PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()
Victor Stinner [Mon, 21 Nov 2011 01:01:41 +0000 (02:01 +0100)]
Check for PyUnicode_AS_UNICODE() failure
Victor Stinner [Mon, 21 Nov 2011 00:17:27 +0000 (01:17 +0100)]
UnicodeTranslateError uses the new Unicode API
The index is a character index, not a index in a Py_UNICODE* string.
Victor Stinner [Mon, 21 Nov 2011 00:02:23 +0000 (01:02 +0100)]
Issue #13441: Disable temporary strxfrm() tests on Solaris
Victor Stinner [Sun, 20 Nov 2011 22:10:12 +0000 (23:10 +0100)]
(Merge 3.2) Close #13401: Skip TestFileTypeW of test_argparse if the current user is root
Patch written by Arfrever Frehtes Taifersar Arahesis.
Victor Stinner [Sun, 20 Nov 2011 22:09:09 +0000 (23:09 +0100)]
Close #13401: Skip TestFileTypeW of test_argparse if the current user is root
Patch written by Arfrever Frehtes Taifersar Arahesis.
Victor Stinner [Sun, 20 Nov 2011 21:50:23 +0000 (22:50 +0100)]
UnicodeEncodeError uses the new Unicode API
The index is a character index, not a index in a Py_UNICODE* string.
Victor Stinner [Sun, 20 Nov 2011 18:48:36 +0000 (19:48 +0100)]
PyObject_Str() ensures that the result string is ready
and check the string consistency.
_PyUnicode_CheckConsistency() doesn't check the hash anymore. It should be
possible to call this function even if hash(str) was already called.
Victor Stinner [Sun, 20 Nov 2011 18:32:09 +0000 (19:32 +0100)]
Use PyUnicode_CompareWithASCIIString() instead of Py_UNICODE_strcmp() to avoid
the deprecate Py_UNICODE type
Victor Stinner [Sun, 20 Nov 2011 18:30:15 +0000 (19:30 +0100)]
stringlib: remove unused STRINGLIB_FILL
Victor Stinner [Sun, 20 Nov 2011 18:20:00 +0000 (19:20 +0100)]
print_exception() uses PyUnicode_GetLength() instead of PyUnicode_GetSize()
Victor Stinner [Sun, 20 Nov 2011 18:12:52 +0000 (19:12 +0100)]
PyUnicode_AsUTF32String() calls directly _PyUnicode_EncodeUTF32(),
instead of calling the deprecated PyUnicode_EncodeUTF32() function
Victor Stinner [Sun, 20 Nov 2011 17:56:05 +0000 (18:56 +0100)]
_PyUnicode_CheckConsistency() also checks maxchar maximum value,
not only its minimum value
Victor Stinner [Sun, 20 Nov 2011 17:41:31 +0000 (18:41 +0100)]
Remove the two ugly and unused WRITE_ASCII_OR_WSTR and WRITE_WSTR macros
Victor Stinner [Sun, 20 Nov 2011 17:40:27 +0000 (18:40 +0100)]
Reuse surrogate macros in UTF-16 decoder
Victor Stinner [Sun, 20 Nov 2011 17:29:14 +0000 (18:29 +0100)]
Fix PyUnicode_CopyCharacters() doc
Victor Stinner [Sun, 20 Nov 2011 17:28:55 +0000 (18:28 +0100)]
charmap_encoding_error() uses the new Unicode API
Victor Stinner [Sun, 20 Nov 2011 17:28:29 +0000 (18:28 +0100)]
Ensure that Py_UCS4 is 32 bits and Py_UCS2 is 16 bits
Victor Stinner [Sun, 20 Nov 2011 17:27:55 +0000 (18:27 +0100)]
Document new and deprecated Unicode functions
Victor Stinner [Sun, 20 Nov 2011 17:27:28 +0000 (18:27 +0100)]
Document PyUnicode_WCHAR_KIND
Victor Stinner [Sun, 20 Nov 2011 17:27:03 +0000 (18:27 +0100)]
Use PyUnicode_EncodeCodePage() instead of PyUnicode_EncodeMBCS() with
PyUnicode_AsUnicodeAndSize()
Victor Stinner [Sun, 20 Nov 2011 16:09:18 +0000 (17:09 +0100)]
charmap encoders uses Py_UCS4, not Py_UNICODE
Éric Araujo [Sun, 20 Nov 2011 15:01:35 +0000 (16:01 +0100)]
Update list of trove classifiers
Petri Lehtinen [Sat, 19 Nov 2011 20:04:33 +0000 (22:04 +0200)]
Merge branch 3.2 (closes #13338)
Petri Lehtinen [Sat, 19 Nov 2011 20:03:10 +0000 (22:03 +0200)]
Issue #13338: Handle all enumerations in _Py_ANNOTATE_MEMORY_ORDER
This allows compiling extension modules with -Wswitch-enum on gcc.
Initial patch by Floris Bruynooghe.
Mark Dickinson [Sat, 19 Nov 2011 17:58:15 +0000 (17:58 +0000)]
Issue #9530: Fix undefined behaviour due to signed overflow in testcapi_long.h.
Mark Dickinson [Sat, 19 Nov 2011 16:27:22 +0000 (16:27 +0000)]
Issue #12245 merge.
Mark Dickinson [Sat, 19 Nov 2011 16:26:45 +0000 (16:26 +0000)]
Issue #12245: Document sys.float_info.rounds better.
Charles-François Natali [Sat, 19 Nov 2011 08:59:43 +0000 (09:59 +0100)]
Issue #13215: multiprocessing.Connection: don't hammer the remote end with
retries in case of ECONNREFUSED.
Antoine Pitrou [Fri, 18 Nov 2011 23:39:01 +0000 (00:39 +0100)]
Issue #13393: In TextIOWrapper.read(n), try to read `n` characters as
once rather than limit ourselves to the default chunk size.
Antoine Pitrou [Fri, 18 Nov 2011 19:14:34 +0000 (20:14 +0100)]
Issue #10227: Add an allocation cache for a single slice object.
Patch by Stefan Behnel.
Ezio Melotti [Fri, 18 Nov 2011 17:01:01 +0000 (19:01 +0200)]
#13387: merge with 3.2.
Ezio Melotti [Fri, 18 Nov 2011 16:59:36 +0000 (18:59 +0200)]
#13387: add note about checking the exact type in assertIsInstance doc.
Ezio Melotti [Fri, 18 Nov 2011 16:35:53 +0000 (18:35 +0200)]
#11112: merge with 3.2.
Ezio Melotti [Fri, 18 Nov 2011 16:33:14 +0000 (18:33 +0200)]
#11112: Fix typo in a base class in test_socket.
Ezio Melotti [Fri, 18 Nov 2011 16:02:59 +0000 (18:02 +0200)]
#13358: merge with 3.2.
Ezio Melotti [Fri, 18 Nov 2011 16:01:49 +0000 (18:01 +0200)]
#13358: HTMLParser now calls handle_data only once for each CDATA.
Ezio Melotti [Fri, 18 Nov 2011 15:36:07 +0000 (17:36 +0200)]
#4147: merge with 3.2.
Ezio Melotti [Fri, 18 Nov 2011 15:34:26 +0000 (17:34 +0200)]
#4147: minidom's toprettyxml no longer adds whitespace around a text node when it is the only child of an element. Initial patch by Dan Kenigsberg.
Ezio Melotti [Fri, 18 Nov 2011 11:52:37 +0000 (13:52 +0200)]
#13426: merge with 3.2.
Ezio Melotti [Fri, 18 Nov 2011 11:51:10 +0000 (13:51 +0200)]
#13426: fix typos in pickle doc.
Ezio Melotti [Thu, 17 Nov 2011 10:23:34 +0000 (12:23 +0200)]
#13406: fix more deprecation warnings and move the deprecation of unicode-internal earlier in the code.
Antoine Pitrou [Thu, 17 Nov 2011 01:20:48 +0000 (02:20 +0100)]
Add a couple other whatsnew items
Antoine Pitrou [Thu, 17 Nov 2011 01:09:13 +0000 (02:09 +0100)]
Add various items in whatsnew