]>
granicus.if.org Git - python/log
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
Antoine Pitrou [Thu, 17 Nov 2011 01:00:19 +0000 (02:00 +0100)]
Remove XXX, as the functions and macros are mentioned in the porting section
Antoine Pitrou [Thu, 17 Nov 2011 00:59:51 +0000 (01:59 +0100)]
Explain concrete (resource consumption) effects of PEP 393 a bit.
Antoine Pitrou [Thu, 17 Nov 2011 00:48:06 +0000 (01:48 +0100)]
Be a bit less shy
Victor Stinner [Thu, 17 Nov 2011 00:11:36 +0000 (01:11 +0100)]
socket_gethostname() uses a wchar_t* with PyMem_Malloc() to avoid the
old Unicode API.
Victor Stinner [Wed, 16 Nov 2011 23:51:38 +0000 (00:51 +0100)]
Catch PyUnicode_AS_UNICODE() errors in fileutils.c
Victor Stinner [Wed, 16 Nov 2011 23:45:54 +0000 (00:45 +0100)]
Catch PyUnicode_AS_UNICODE() errors
Victor Stinner [Wed, 16 Nov 2011 23:12:44 +0000 (00:12 +0100)]
Fix misused of "PyUnicodeObject" structure name in unicodeobject.h
Victor Stinner [Wed, 16 Nov 2011 22:43:07 +0000 (23:43 +0100)]
Issue #13374: Deprecate os.getcwdb() on Windows
Ezio Melotti [Wed, 16 Nov 2011 07:54:19 +0000 (09:54 +0200)]
#13406: correct the error message in check_warnings too.
Ezio Melotti [Wed, 16 Nov 2011 07:39:10 +0000 (09:39 +0200)]
#13406: silence deprecation warnings in test_codecs.
Eli Bendersky [Wed, 16 Nov 2011 04:03:09 +0000 (06:03 +0200)]
fixing typos in optparse doc
Eli Bendersky [Wed, 16 Nov 2011 04:02:21 +0000 (06:02 +0200)]
fixing typos in optparse doc
Antoine Pitrou [Tue, 15 Nov 2011 23:56:10 +0000 (00:56 +0100)]
Issue #13393: BufferedReader.read1() now asks the full requested size to
the raw stream instead of limiting itself to the buffer size.
Victor Stinner [Tue, 15 Nov 2011 23:34:44 +0000 (00:34 +0100)]
Issue #13374: Skip deprecation tests for os.symlink() on Windows XP
To avoid a NotImplementedError('CreateSymbolicLinkW not found') error.
Victor Stinner [Tue, 15 Nov 2011 23:18:57 +0000 (00:18 +0100)]
What's New in 3.3: Add a "Deprecated ..." section
Victor Stinner [Tue, 15 Nov 2011 21:44:05 +0000 (22:44 +0100)]
"unicode_internal" codec has been deprecated: fix related tests
Antoine Pitrou [Tue, 15 Nov 2011 21:27:43 +0000 (22:27 +0100)]
Merge
Victor Stinner [Tue, 15 Nov 2011 21:27:41 +0000 (22:27 +0100)]
Issue #13374: The Windows bytes API has been deprecated in the os module. Use
Unicode filenames instead of bytes filenames to not depend on the ANSI code
page anymore and to support any filename.
Antoine Pitrou [Tue, 15 Nov 2011 21:27:32 +0000 (22:27 +0100)]
Use PyUnicode_FromFormat() to create the temporary file name.
Also, as in importlib, append the id of an object to make the file name
pseudo-random.
Florent Xicluna [Tue, 15 Nov 2011 19:53:25 +0000 (20:53 +0100)]
Closes #13297: use bytes type to send and receive binary data through XMLRPC.
Antoine Pitrou [Tue, 15 Nov 2011 19:40:55 +0000 (20:40 +0100)]
Fix regression under Windows following
b75b41237380 (from issue #13392)
Antoine Pitrou [Tue, 15 Nov 2011 18:15:19 +0000 (19:15 +0100)]
Issue #13392: Writing a pyc file should now be atomic under Windows as well.
Éric Araujo [Tue, 15 Nov 2011 15:13:16 +0000 (16:13 +0100)]
Merge 3.2
Éric Araujo [Tue, 15 Nov 2011 15:12:49 +0000 (16:12 +0100)]
Branch merge
Éric Araujo [Tue, 15 Nov 2011 15:12:22 +0000 (16:12 +0100)]
Branch merge
Antoine Pitrou [Tue, 15 Nov 2011 14:26:32 +0000 (15:26 +0100)]
Merge
Antoine Pitrou [Tue, 15 Nov 2011 14:25:59 +0000 (15:25 +0100)]
Mark test_devpoll as unexpected on most platforms
Éric Araujo [Tue, 15 Nov 2011 10:43:20 +0000 (11:43 +0100)]
Remove obsolete verbose arguments from packaging.
Logging replaces verbose arguments. I haven’t fixed the example in
Doc/install/install.rst because I have major fixes and changes to the
oc under way and will fix or remove that example as part of that task.
Éric Araujo [Tue, 15 Nov 2011 09:48:36 +0000 (10:48 +0100)]
Remove unused code from packaging.tests.__init__
Jesus Cea [Tue, 15 Nov 2011 04:42:59 +0000 (05:42 +0100)]
reST fixes for /dev/poll
Antoine Pitrou [Tue, 15 Nov 2011 00:44:16 +0000 (01:44 +0100)]
Issue #13333: The UTF-7 decoder now accepts lone surrogates
(the encoder already accepts them).
Antoine Pitrou [Tue, 15 Nov 2011 00:42:21 +0000 (01:42 +0100)]
Issue #13333: The UTF-7 decoder now accepts lone surrogates
(the encoder already accepts them).
Antoine Pitrou [Mon, 14 Nov 2011 23:00:12 +0000 (00:00 +0100)]
Issue #13389: Full garbage collection passes now clear the freelists for
list and dict objects. They already cleared other freelists in the
interpreter.
Éric Araujo [Mon, 14 Nov 2011 18:46:31 +0000 (19:46 +0100)]
Remove redundant setUp/tearDown methods in packaging tests
Éric Araujo [Mon, 14 Nov 2011 18:45:30 +0000 (19:45 +0100)]
The error message should contain the key as given, not normalized.
Backout of
2e047702df7f . Reported by Jeremy Kloth.
Éric Araujo [Mon, 14 Nov 2011 18:43:37 +0000 (19:43 +0100)]
Add tests to check initial content of packaging.database caches
Éric Araujo [Mon, 14 Nov 2011 18:40:31 +0000 (19:40 +0100)]
packaging cleanup: A few super I missed in
5ae03b1e147a
Jesus Cea [Mon, 14 Nov 2011 18:07:41 +0000 (19:07 +0100)]
Issue #6397: Support '/dev/poll' polling objects in select module, under Solaris & derivatives.
Éric Araujo [Mon, 14 Nov 2011 17:21:38 +0000 (18:21 +0100)]
Adapt test and example after
e39d1b6f0856 .
Tarek’s commit fixed the way packaging configuration file markers are
split under Windows, but these two files were not edited.
Éric Araujo [Mon, 14 Nov 2011 17:18:15 +0000 (18:18 +0100)]
Fix a few typos
Éric Araujo [Mon, 14 Nov 2011 17:14:09 +0000 (18:14 +0100)]
Add entries for distutils2 contributors (their patches are in packaging)
Éric Araujo [Mon, 14 Nov 2011 17:13:24 +0000 (18:13 +0100)]
Remove NEWS entries for packaging test suite fixes.
I haven’t updated NEWS for every change or fix in packaging, thinking
that the only entry we need for 3.3a1 is “Add packaging module to the
stdlib”. Other developers have however added entries for these fixes,
but I don’t think they are interesting for users.
Note that the distutils2 backport has a full changelog.
Éric Araujo [Mon, 14 Nov 2011 17:10:19 +0000 (18:10 +0100)]
Clean up byte-compilation code in packaging (#11254 followup).
- Don't use keyword arguments for debug_override; I find it more
readable to have a comment explaining that True makes pyc and False
pyo than to write out the non-obvious (when you haven’t read the doc)
argument name
- Move duplicate code from build_py and install_lib into cmd
- Remove obsolete verbose argument of util.byte_compile
- Remove obsolete passing of -O/-OO to the Python process spawned by
util.byte_compile (I’ll remove the whole spawning later, after I write
more tests to check the contents of pyc and pyo files; now that
byte_compile does not depend on the value of __debug__ in the calling
Python, we can call py_compile or compileall directly)
Éric Araujo [Mon, 14 Nov 2011 17:00:48 +0000 (18:00 +0100)]
Fix markup
Ezio Melotti [Mon, 14 Nov 2011 16:56:11 +0000 (18:56 +0200)]
#
1745761 , #755670, #13357, #12629, #
1200313 : merge with 3.2.