]>
granicus.if.org Git - python/log
Victor Stinner [Wed, 12 Oct 2011 22:18:12 +0000 (00:18 +0200)]
Optimize findchar() for PyUnicode_1BYTE_KIND: use memchr and memrchr
Antoine Pitrou [Wed, 12 Oct 2011 22:02:27 +0000 (00:02 +0200)]
Issue #13155: Optimize finding the optimal character width of an unicode string
Victor Stinner [Wed, 12 Oct 2011 21:46:10 +0000 (23:46 +0200)]
Unicode replace() avoids calling unicode_adjust_maxchar() when it's useless
Add also a special case if the result is an empty string.
Victor Stinner [Wed, 12 Oct 2011 20:09:40 +0000 (22:09 +0200)]
Issue #13157: Fix building Python outside its source tree
Victor Stinner [Wed, 12 Oct 2011 19:01:46 +0000 (21:01 +0200)]
Issue #12367: Add a test on error attribute of select.error
Thanks to the PEP 3151, select.error (which is just an alias to OSError) has
now an error attribute.
Victor Stinner [Wed, 12 Oct 2011 18:35:02 +0000 (20:35 +0200)]
What's New in Python 3.3: mention the PEP 3151
Antoine Pitrou [Wed, 12 Oct 2011 18:10:51 +0000 (20:10 +0200)]
Replace mentions of IOError
Antoine Pitrou [Wed, 12 Oct 2011 17:39:57 +0000 (19:39 +0200)]
Instantiate the OS-related exception as soon as we raise it, so that
"except" works properly.
Antoine Pitrou [Wed, 12 Oct 2011 17:11:12 +0000 (19:11 +0200)]
This shameful limitation of the fileinput module is not relevant anymore.
Antoine Pitrou [Wed, 12 Oct 2011 17:10:10 +0000 (19:10 +0200)]
Fix some mentions of IOError
Antoine Pitrou [Wed, 12 Oct 2011 17:02:52 +0000 (19:02 +0200)]
Fix mentions of IOError in the io module docs
Antoine Pitrou [Wed, 12 Oct 2011 16:57:23 +0000 (18:57 +0200)]
Update doc for BlockingIOError and its alias in the io module
Antoine Pitrou [Wed, 12 Oct 2011 16:53:23 +0000 (18:53 +0200)]
Replace mentions of WindowsError
Antoine Pitrou [Wed, 12 Oct 2011 16:35:18 +0000 (18:35 +0200)]
Replace a mention of EnvironmentError in the distutils docs.
Antoine Pitrou [Wed, 12 Oct 2011 16:33:15 +0000 (18:33 +0200)]
Update index entries
Antoine Pitrou [Wed, 12 Oct 2011 16:28:01 +0000 (18:28 +0200)]
Update the C-API docs for exception types
Antoine Pitrou [Wed, 12 Oct 2011 15:53:43 +0000 (17:53 +0200)]
Replace mentions of socket.error.
Antoine Pitrou [Wed, 12 Oct 2011 14:46:46 +0000 (16:46 +0200)]
Mention the merging of other exceptions into OSError.
Antoine Pitrou [Wed, 12 Oct 2011 14:23:02 +0000 (16:23 +0200)]
Minimal update of select docs for PEP 3151.
Antoine Pitrou [Wed, 12 Oct 2011 14:20:53 +0000 (16:20 +0200)]
Minimal update of socket docs for PEP 3151.
More editing is probably desirable.
Antoine Pitrou [Wed, 12 Oct 2011 14:02:00 +0000 (16:02 +0200)]
Update exceptions doc for PEP 3151
Antoine Pitrou [Wed, 12 Oct 2011 00:54:14 +0000 (02:54 +0200)]
PEP 3151 / issue #12555: reworking the OS and IO exception hierarchy.
Victor Stinner [Tue, 11 Oct 2011 22:54:35 +0000 (00:54 +0200)]
Backed out changeset
952d91a7d376
If maxchar == PyUnicode_MAX_CHAR_VALUE(unicode), we do an useless copy.
Antoine Pitrou [Tue, 11 Oct 2011 22:36:51 +0000 (00:36 +0200)]
Relax condition
Victor Stinner [Tue, 11 Oct 2011 22:14:32 +0000 (00:14 +0200)]
stringlib: Fix STRINGLIB_STR for UCS2/UCS4
Victor Stinner [Tue, 11 Oct 2011 21:27:52 +0000 (23:27 +0200)]
Fix compiler warning in _PyUnicode_FromUCS2()
Victor Stinner [Tue, 11 Oct 2011 21:22:22 +0000 (23:22 +0200)]
Fix fastsearch for UCS2 and UCS4
* If needle is 0, try (p[0] >> 16) & 0xff for UCS4
* Disable fastsearch_memchr_1char() if needle is zero for UCS2 and UCS4
Victor Stinner [Tue, 11 Oct 2011 21:00:31 +0000 (23:00 +0200)]
Fix FileIO.readall() (new_buffersize()) for large files
Truncate the buffer size to PY_SSIZE_T_MAX.
Antoine Pitrou [Tue, 11 Oct 2011 20:45:48 +0000 (22:45 +0200)]
Use _PyUnicode_CONVERT_BYTES() where applicable.
Antoine Pitrou [Tue, 11 Oct 2011 20:43:51 +0000 (22:43 +0200)]
Merge
Victor Stinner [Tue, 11 Oct 2011 20:45:02 +0000 (22:45 +0200)]
Fix io.FileIO.readall() on Windows 64 bits
Use Py_off_t type (64 bits) instead of off_t (32 bits).
Antoine Pitrou [Tue, 11 Oct 2011 20:43:37 +0000 (22:43 +0200)]
Fix deprecation warning
Victor Stinner [Tue, 11 Oct 2011 20:35:52 +0000 (22:35 +0200)]
Fix a compiler warning in _locale
Victor Stinner [Tue, 11 Oct 2011 20:28:56 +0000 (22:28 +0200)]
Fix a compiler warning in zipimport
Victor Stinner [Tue, 11 Oct 2011 20:27:13 +0000 (22:27 +0200)]
Fix typo in import.c
Victor Stinner [Tue, 11 Oct 2011 20:12:48 +0000 (22:12 +0200)]
PyUnicode_AsUnicodeCopy() now checks if PyUnicode_AsUnicode() failed
Victor Stinner [Tue, 11 Oct 2011 19:56:19 +0000 (21:56 +0200)]
Strip trailing spaces in _json.c
Victor Stinner [Tue, 11 Oct 2011 20:11:42 +0000 (22:11 +0200)]
Fix misuse of PyUnicode_GET_SIZE, use PyUnicode_GET_LENGTH instead
Victor Stinner [Tue, 11 Oct 2011 19:53:24 +0000 (21:53 +0200)]
Reuse PyUnicode_Copy() in validate_and_copy_tuple()
Victor Stinner [Tue, 11 Oct 2011 19:55:01 +0000 (21:55 +0200)]
Use PyUnicode_AsUnicodeAndSize() instead of PyUnicode_GET_SIZE()
Antoine Pitrou [Tue, 11 Oct 2011 18:58:41 +0000 (20:58 +0200)]
Issue #13136: speed up conversion between different character widths.
Antoine Pitrou [Tue, 11 Oct 2011 18:29:21 +0000 (20:29 +0200)]
Issue #13134: optimize finding single-character strings using memchr
Antoine Pitrou [Tue, 11 Oct 2011 17:54:03 +0000 (19:54 +0200)]
Merge
Mark Dickinson [Tue, 11 Oct 2011 17:07:19 +0000 (18:07 +0100)]
Merge issue #13145 fix.
Mark Dickinson [Tue, 11 Oct 2011 17:06:36 +0000 (18:06 +0100)]
Issue #13145. Fix incorrect documentation for PyNumber_ToBase. Thanks Sven Marnach.
Antoine Pitrou [Tue, 11 Oct 2011 16:51:53 +0000 (18:51 +0200)]
Avoid pulling threading when _thread is sufficient
Antoine Pitrou [Tue, 11 Oct 2011 14:07:30 +0000 (16:07 +0200)]
Use a dict for faster sysconfig startup (issue #13150)
Antoine Pitrou [Tue, 11 Oct 2011 13:45:56 +0000 (15:45 +0200)]
Issue #13150: The tokenize module doesn't compile large regular expressions at startup anymore.
Instead, the re module's standard caching does its work.
Antoine Pitrou [Tue, 11 Oct 2011 02:06:47 +0000 (04:06 +0200)]
Remove unused variable
Antoine Pitrou [Tue, 11 Oct 2011 01:17:47 +0000 (03:17 +0200)]
/* Remove unused code. It has been committed out since 2000 (!). */
Antoine Pitrou [Mon, 10 Oct 2011 21:49:24 +0000 (23:49 +0200)]
Avoid exporting private helpers
(thanks "make smelly")
Antoine Pitrou [Mon, 10 Oct 2011 18:15:59 +0000 (20:15 +0200)]
Fix the threading infrastructure in test_socket to support skipping
tests from the setUp() routine.
This fixes a refleak in test_socket on some machines.
Martin v. Löwis [Mon, 10 Oct 2011 16:11:30 +0000 (18:11 +0200)]
Use identifier API for PyObject_GetAttrString.
Victor Stinner [Mon, 10 Oct 2011 01:21:36 +0000 (03:21 +0200)]
any_find_slice() doesn't use callbacks anymore
* Call directly the right find/rfind method: allow inlining functions
* Remove Py_LOCAL_CALLBACK (added for any_find_slice)
Ezio Melotti [Sun, 9 Oct 2011 21:31:00 +0000 (00:31 +0300)]
Merge whatsnew fixes with 3.2.
Ezio Melotti [Sun, 9 Oct 2011 21:30:14 +0000 (00:30 +0300)]
Fix/improve markup in whatsnew/2.7.
Ezio Melotti [Sun, 9 Oct 2011 21:03:15 +0000 (00:03 +0300)]
#13138: merge with 3.2.
Ezio Melotti [Sun, 9 Oct 2011 21:02:03 +0000 (00:02 +0300)]
#13138: add missing versionadded.
Raymond Hettinger [Sun, 9 Oct 2011 16:29:14 +0000 (17:29 +0100)]
Clean-up and improve the priority queue example in the heapq docs.
Raymond Hettinger [Sun, 9 Oct 2011 16:28:14 +0000 (17:28 +0100)]
Clean-up and improve the priority queue example in the heapq docs.
Martin v. Löwis [Sun, 9 Oct 2011 09:54:42 +0000 (11:54 +0200)]
Drop extra semicolon.
Martin v. Löwis [Sun, 9 Oct 2011 08:38:36 +0000 (10:38 +0200)]
Add API for static strings, primarily good for identifiers.
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
Éric Araujo [Sun, 9 Oct 2011 06:58:16 +0000 (08:58 +0200)]
Merge 3.2
Éric Araujo [Sun, 9 Oct 2011 06:55:04 +0000 (08:55 +0200)]
Branch merge
Éric Araujo [Sun, 9 Oct 2011 05:32:35 +0000 (07:32 +0200)]
Branch merge
Éric Araujo [Sun, 9 Oct 2011 05:25:33 +0000 (07:25 +0200)]
Add tests for Unicode handling in distutils’ check and register (#13114)
Éric Araujo [Sun, 9 Oct 2011 04:32:38 +0000 (06:32 +0200)]
As it turns out, this bug was already in the tracker: #11171
Antoine Pitrou [Sat, 8 Oct 2011 22:33:09 +0000 (00:33 +0200)]
Fix typo in the PyUnicode_Find() implementation
Antoine Pitrou [Sat, 8 Oct 2011 20:42:00 +0000 (22:42 +0200)]
test_unicode was forgetting to run the common string tests for str.find()
Antoine Pitrou [Sat, 8 Oct 2011 20:41:35 +0000 (22:41 +0200)]
test_unicode was forgetting to run the common string tests for str.find()
Antoine Pitrou [Sat, 8 Oct 2011 17:40:22 +0000 (19:40 +0200)]
Fix a missing encoding argument when opening a text file in some of iobench's subtests.
(found by Georg)
Antoine Pitrou [Sat, 8 Oct 2011 17:40:04 +0000 (19:40 +0200)]
Fix a missing encoding argument when opening a text file in some of iobench's subtests.
(found by Georg)
Antoine Pitrou [Sat, 8 Oct 2011 17:33:24 +0000 (19:33 +0200)]
Fix test_gdb following the small unicode struct change in
c25262e97304 (issue #13130)
Georg Brandl [Sat, 8 Oct 2011 16:32:40 +0000 (18:32 +0200)]
Closes #12192: Document that mutating list methods do not return the instance (original patch by Mike Hoy).
Éric Araujo [Sat, 8 Oct 2011 02:09:15 +0000 (04:09 +0200)]
Fix packaging byte-compilation to comply with PEP 3147 (#11254).
I want to replace custom byte-compiling function with calls to
compileall before 3.3b1, but in the short term it’s good to have this
fixed.
Adapted from the distutils patch by Jeff Ramnani. I tested with -B, -O
and -OO; test_util and test_mixin2to3 fail in -O mode because lib2to3
doesn’t support it.
Éric Araujo [Sat, 8 Oct 2011 01:02:37 +0000 (03:02 +0200)]
Fix docstring of distutils.util.byte_compile (followup for #11254)
Éric Araujo [Sat, 8 Oct 2011 00:58:50 +0000 (02:58 +0200)]
Make C code in one packaging test comply with ISO C (#10359).
Patch by Hallvard B Furuseth.
Éric Araujo [Sat, 8 Oct 2011 00:57:45 +0000 (02:57 +0200)]
Merge fixes for #10526, #10359, #11254, #9100 and the bug without number
Éric Araujo [Fri, 7 Oct 2011 23:56:52 +0000 (01:56 +0200)]
Fix distutils.sysconfig.get_makefile_filename when prefix != exec-prefix
Éric Araujo [Fri, 7 Oct 2011 23:55:07 +0000 (01:55 +0200)]
Fix test_sysconfig when prefix != exec-prefix (#9100).
I tested this manually; it would be great to have buildbots using
installed Pythons, including Pythons configured with different prefix
and exec-prefix.
Reported by Zsolt Cserna.
Éric Araujo [Fri, 7 Oct 2011 22:34:13 +0000 (00:34 +0200)]
Fix distutils byte-compilation to comply with PEP 3147 (#11254).
Patch by Jeff Ramnani. Tested with -B, -O and -OO.
Éric Araujo [Fri, 7 Oct 2011 21:13:45 +0000 (23:13 +0200)]
Make C code in one distutils test comply with ISO C (#10359).
Patch by Hallvard B Furuseth.
Charles-François Natali [Fri, 7 Oct 2011 20:47:08 +0000 (22:47 +0200)]
Issue #10141: fix socketmodule compilation on Linux systems with <linux/can.h>
but without AF_CAN definition.
Éric Araujo [Fri, 7 Oct 2011 20:02:58 +0000 (22:02 +0200)]
Fix a typo and a broken link (part of #10536).
Found by Franz Glasner in #2504.
Barry Warsaw [Fri, 7 Oct 2011 19:26:54 +0000 (15:26 -0400)]
- Re-enable lib2to3's test_parser.py tests, though with an expected failure
(see issue 13125).
Barry Warsaw [Fri, 7 Oct 2011 19:16:20 +0000 (15:16 -0400)]
Merged
Barry Warsaw [Fri, 7 Oct 2011 19:15:38 +0000 (15:15 -0400)]
Trunk merge
Barry Warsaw [Fri, 7 Oct 2011 19:14:53 +0000 (15:14 -0400)]
- Re-enable lib2to3's test_parser.py tests, though with an expected failure
(see issue 13125).
Ned Deily [Fri, 7 Oct 2011 19:02:29 +0000 (12:02 -0700)]
Merge with 3.2
Ned Deily [Fri, 7 Oct 2011 19:01:40 +0000 (12:01 -0700)]
Issue #7367: Ensure test directory always gets removed.
Martin v. Löwis [Fri, 7 Oct 2011 18:58:00 +0000 (20:58 +0200)]
Fix indentation.
Martin v. Löwis [Fri, 7 Oct 2011 18:55:35 +0000 (20:55 +0200)]
Change PyUnicode_KIND to 1,2,4. Drop _KIND_SIZE and _CHARACTER_SIZE.
Barry Warsaw [Fri, 7 Oct 2011 18:45:25 +0000 (14:45 -0400)]
Branch merge.
Barry Warsaw [Fri, 7 Oct 2011 18:44:49 +0000 (14:44 -0400)]
- Issue #11250: Back port fix from 3.3 branch, so that 2to3 can handle files
with line feeds. This was ported from the sandbox to the 3.3 branch, but
didn't make it into 3.2.
- Re-enable lib2to3's test_parser.py tests, though with an expected failure
(see issue 13125).
Victor Stinner [Fri, 7 Oct 2011 15:02:31 +0000 (17:02 +0200)]
PyUnicode_Join() calls directly memcpy() if all strings are of the same kind
Antoine Pitrou [Fri, 7 Oct 2011 14:58:35 +0000 (16:58 +0200)]
Issue #12823: remove broken link and replace it with another resource.
Antoine Pitrou [Fri, 7 Oct 2011 14:58:07 +0000 (16:58 +0200)]
Issue #12823: remove broken link and replace it with another resource.
Antoine Pitrou [Fri, 7 Oct 2011 14:17:50 +0000 (16:17 +0200)]
Issue #13063: the Windows error ERROR_NO_DATA (numbered 232 and described
as "The pipe is being closed") is now mapped to POSIX errno EPIPE
(previously EINVAL).
Antoine Pitrou [Fri, 7 Oct 2011 14:16:31 +0000 (16:16 +0200)]
Issue #13063: the Windows error ERROR_NO_DATA (numbered 232 and described
as "The pipe is being closed") is now mapped to POSIX errno EPIPE
(previously EINVAL).
Meador Inge [Fri, 7 Oct 2011 13:53:38 +0000 (08:53 -0500)]
Issue #12943: python -m tokenize support has been added to tokenize.