]>
granicus.if.org Git - python/log
Victor Stinner [Sun, 18 Dec 2011 02:26:31 +0000 (03:26 +0100)]
Optimize str * n for len(str)==1 and UCS-2 or UCS-4
Victor Stinner [Sun, 18 Dec 2011 01:56:18 +0000 (02:56 +0100)]
Issue #13522: Fix _Py_co_pow() documentation
Patch written by Arnaud Calmettes.
Victor Stinner [Sun, 18 Dec 2011 01:43:08 +0000 (02:43 +0100)]
Issue #13621: Optimize str.replace(char1, char2)
Use findchar() which is more optimized than a dummy loop using
PyUnicode_READ(). PyUnicode_READ() is a complex and slow macro.
Antoine Pitrou [Sun, 18 Dec 2011 00:26:05 +0000 (01:26 +0100)]
Issue #13522: document error return values of some float and complex C API functions.
Antoine Pitrou [Sun, 18 Dec 2011 00:25:27 +0000 (01:25 +0100)]
Issue #13522: document error return values of some float and complex C API functions.
Victor Stinner [Sun, 18 Dec 2011 00:17:41 +0000 (01:17 +0100)]
Issue #13623: Fix a performance regression introduced by issue #12170 in
bytes.find() and handle correctly OverflowError (raise the same ValueError than
the error for -1).
Victor Stinner [Sat, 17 Dec 2011 22:18:43 +0000 (23:18 +0100)]
Issue #11231: Fix bytes and bytearray docstrings
Patch written by Brice Berna.
Victor Stinner [Sat, 17 Dec 2011 22:18:07 +0000 (23:18 +0100)]
Issue #11231: Fix bytes and bytearray docstrings
Patch written by Brice Berna.
Victor Stinner [Sat, 17 Dec 2011 22:15:22 +0000 (23:15 +0100)]
Issue #13530: Document os.lseek() result
Patch written by Jérémy Anger.
Victor Stinner [Sat, 17 Dec 2011 22:15:09 +0000 (23:15 +0100)]
Issue #13530: Document os.lseek() result
Patch written by Jérémy Anger.
Victor Stinner [Sat, 17 Dec 2011 21:40:19 +0000 (22:40 +0100)]
Merge
Victor Stinner [Sat, 17 Dec 2011 21:39:43 +0000 (22:39 +0100)]
Issue #10951: Fix compiler warnings in timemodule.c and unicodeobject.c
Thanks Jérémy Anger for the fix.
Victor Stinner [Sat, 17 Dec 2011 21:37:18 +0000 (22:37 +0100)]
Issue #10951: Fix a compiler warning in timemodule.c
Victor Stinner [Sat, 17 Dec 2011 21:18:27 +0000 (22:18 +0100)]
Move PyUnicode_WCHAR_KIND outside PyUnicode_Kind enum
Gregory P. Smith [Sat, 17 Dec 2011 20:36:34 +0000 (12:36 -0800)]
Mention that level can be an int or str in the setLevel docstring.
Charles-François Natali [Sat, 17 Dec 2011 13:59:56 +0000 (14:59 +0100)]
Issue #12809: Expose IP_TRANSPARENT in the socket module. Patch by Michael
Farrell.
Benjamin Peterson [Sat, 17 Dec 2011 13:02:20 +0000 (08:02 -0500)]
fix possible NULL dereference
Victor Stinner [Sat, 17 Dec 2011 06:08:30 +0000 (07:08 +0100)]
The locale decoder raises a UnicodeDecodeError instead of an OSError
Search the invalid character using mbrtowc().
Victor Stinner [Sat, 17 Dec 2011 04:47:23 +0000 (05:47 +0100)]
Issue #13560: Locale codec functions use the classic "errors" parameter,
instead of surrogateescape
So it would be possible to support more error handlers later.
Victor Stinner [Sat, 17 Dec 2011 03:59:06 +0000 (04:59 +0100)]
What's New in Python 3.3: complete the deprecation list
Add also FIXMEs in unicodeobject.c
Victor Stinner [Sat, 17 Dec 2011 03:45:09 +0000 (04:45 +0100)]
Issue #13560: os.strerror() now uses the current locale encoding instead of UTF-8
Victor Stinner [Sat, 17 Dec 2011 03:13:41 +0000 (04:13 +0100)]
Issue #13560: Add PyUnicode_EncodeLocale()
* Use PyUnicode_EncodeLocale() in time.strftime() if wcsftime() is not
available
* Document my last changes in Misc/NEWS
Ezio Melotti [Fri, 16 Dec 2011 23:20:02 +0000 (01:20 +0200)]
#13613: merge with 3.2.
Ezio Melotti [Fri, 16 Dec 2011 23:17:17 +0000 (01:17 +0200)]
#13613: fix example in re doc.
Victor Stinner [Fri, 16 Dec 2011 22:56:01 +0000 (23:56 +0100)]
Add PyUnicode_DecodeLocaleAndSize() and PyUnicode_DecodeLocale()
* PyUnicode_DecodeLocaleAndSize() and PyUnicode_DecodeLocale() decode a string
from the current locale encoding
* _Py_char2wchar() writes an "error code" in the size argument to indicate
if the function failed because of memory allocation failure or because of a
decoding error. The function doesn't write the error message directly to
stderr.
* Fix time.strftime() (if wcsftime() is missing): decode strftime() result
from the current locale encoding, not from the filesystem encoding.
Victor Stinner [Fri, 16 Dec 2011 22:48:55 +0000 (23:48 +0100)]
(Merge 3.2) main() now displays an error message before exiting if a command
line argument cannot be decoded
Victor Stinner [Fri, 16 Dec 2011 22:48:31 +0000 (23:48 +0100)]
main() now displays an error message before exiting if a command line argument
cannot be decoded
Antoine Pitrou [Fri, 16 Dec 2011 14:04:12 +0000 (15:04 +0100)]
Skip test if the path is too long for a AF_UNIX socket
Antoine Pitrou [Fri, 16 Dec 2011 13:46:36 +0000 (14:46 +0100)]
Issue #8373: The filesystem path of AF_UNIX sockets now uses the filesystem
encoding and the surrogateescape error handler, rather than UTF-8. Patch
by David Watson.
Antoine Pitrou [Fri, 16 Dec 2011 11:29:37 +0000 (12:29 +0100)]
Issue #10350: Read and save errno before calling a function which might overwrite it.
Original patch by Hallvard B Furuseth.
Antoine Pitrou [Fri, 16 Dec 2011 11:28:32 +0000 (12:28 +0100)]
Issue #10350: Read and save errno before calling a function which might overwrite it.
Original patch by Hallvard B Furuseth.
Antoine Pitrou [Fri, 16 Dec 2011 10:25:15 +0000 (11:25 +0100)]
Add ACKS entry for
57f0af61da53 .
Antoine Pitrou [Fri, 16 Dec 2011 10:24:27 +0000 (11:24 +0100)]
Issue #6695: Full garbage collection runs now clear the freelist of set objects.
Initial patch by Matthias Troffaes.
Benjamin Peterson [Fri, 16 Dec 2011 00:24:49 +0000 (19:24 -0500)]
property -> staticmethod
Benjamin Peterson [Thu, 15 Dec 2011 20:57:47 +0000 (15:57 -0500)]
merge heads
Benjamin Peterson [Thu, 15 Dec 2011 20:57:15 +0000 (15:57 -0500)]
fix this test to actually test something (closes #13606)
Thanks Mark Shannon.
Victor Stinner [Thu, 15 Dec 2011 20:48:39 +0000 (21:48 +0100)]
Close #13596: Only recompile Lib/_sysconfigdata.py when needed
Benjamin Peterson [Thu, 15 Dec 2011 20:44:16 +0000 (15:44 -0500)]
merge heads
Benjamin Peterson [Thu, 15 Dec 2011 20:43:56 +0000 (15:43 -0500)]
input() in this sense is gone
Victor Stinner [Thu, 15 Dec 2011 20:42:28 +0000 (21:42 +0100)]
(Merge 3.2) Issue #13545: Fix platform.libc_version() is the SO version is missing
Victor Stinner [Thu, 15 Dec 2011 20:42:03 +0000 (21:42 +0100)]
Issue #13545: Fix platform.libc_version() is the SO version is missing
Benjamin Peterson [Thu, 15 Dec 2011 20:34:02 +0000 (15:34 -0500)]
improve abstract property support (closes #11610)
Thanks to Darren Dale for patch.
Antoine Pitrou [Thu, 15 Dec 2011 15:26:03 +0000 (16:26 +0100)]
Issue #13597: Improve documentation of standard streams.
Antoine Pitrou [Thu, 15 Dec 2011 15:25:34 +0000 (16:25 +0100)]
Issue #13597: Improve documentation of standard streams.
Antoine Pitrou [Thu, 15 Dec 2011 13:31:28 +0000 (14:31 +0100)]
Fix OSError.__init__ and OSError.__new__ so that each of them can be
overriden and take additional arguments (followup to issue #12555).
Antoine Pitrou [Thu, 15 Dec 2011 13:17:36 +0000 (14:17 +0100)]
Fix the fix for issue #12149: it was incorrect, although it had the side
effect of appearing to resolve the issue. Thanks to Mark Shannon for
noticing.
Antoine Pitrou [Thu, 15 Dec 2011 13:15:31 +0000 (14:15 +0100)]
Fix the fix for issue #12149: it was incorrect, although it had the side
effect of appearing to resolve the issue. Thanks to Mark Shannon for
noticing.
Meador Inge [Thu, 15 Dec 2011 04:53:13 +0000 (22:53 -0600)]
Issue #13593: updating the importlib utility decorators for __qualname__.
Meador Inge [Thu, 15 Dec 2011 04:39:28 +0000 (22:39 -0600)]
Issue #13591: Moving the NEWS line to the right release.
Meador Inge [Thu, 15 Dec 2011 04:37:48 +0000 (22:37 -0600)]
Issue #13591: Moving the NEWS line to the right release.
Meador Inge [Thu, 15 Dec 2011 04:27:28 +0000 (22:27 -0600)]
Issue #13591: import_module potentially imports a module twice.
Meador Inge [Thu, 15 Dec 2011 04:23:46 +0000 (22:23 -0600)]
Issue #13591: import_module potentially imports a module twice.
Ned Deily [Wed, 14 Dec 2011 23:14:52 +0000 (15:14 -0800)]
Issue #4625: Add NEWS entry.
Ned Deily [Wed, 14 Dec 2011 23:06:50 +0000 (15:06 -0800)]
Issue #4625: add NEWS entry.
Ned Deily [Wed, 14 Dec 2011 23:03:31 +0000 (15:03 -0800)]
Issue #4625: If IDLE cannot write to its recent file or breakpoint
files, display a message popup and continue rather than crash.
(original patch by Roger Serwy)
Ned Deily [Wed, 14 Dec 2011 22:58:24 +0000 (14:58 -0800)]
Issue #4625: If IDLE cannot write to its recent file or breakpoint
files, display a message popup and continue rather than crash.
(original patch by Roger Serwy)
Charles-François Natali [Wed, 14 Dec 2011 18:29:56 +0000 (19:29 +0100)]
Issue #13453: Fix a race condition in test_poplib.
Charles-François Natali [Wed, 14 Dec 2011 18:28:56 +0000 (19:28 +0100)]
Issue #13453: Fix a race condition in test_poplib.
Charles-François Natali [Wed, 14 Dec 2011 17:40:35 +0000 (18:40 +0100)]
Null merge - Issue #4028: Make multiprocessing build on SunOS.
Charles-François Natali [Wed, 14 Dec 2011 17:39:09 +0000 (18:39 +0100)]
Issue #4028: Make multiprocessing build on SunOS.
Giampaolo Rodola' [Wed, 14 Dec 2011 13:38:45 +0000 (14:38 +0100)]
Fix #13449: add 'blocking' parameter to sched.scheduler.run() so that the scheduler can be used in non-blocking applications
Giampaolo Rodola' [Wed, 14 Dec 2011 12:34:26 +0000 (13:34 +0100)]
Fix #8684: make sched.scheduler class thread-safe
Alexandre Vassalotti [Tue, 13 Dec 2011 18:22:42 +0000 (13:22 -0500)]
Merge 3.2
Alexandre Vassalotti [Tue, 13 Dec 2011 18:08:09 +0000 (13:08 -0500)]
Issue #13505: Make pickling of bytes object compatible with Python 2.
Initial patch by sbt.
Ezio Melotti [Tue, 13 Dec 2011 13:53:47 +0000 (15:53 +0200)]
#6570: merge with 3.2.
Ezio Melotti [Tue, 13 Dec 2011 13:49:22 +0000 (15:49 +0200)]
#6570: clarify tutorial section about keyword arguments.
Ezio Melotti [Tue, 13 Dec 2011 13:38:13 +0000 (15:38 +0200)]
#13549: merge with 3.2.
Ezio Melotti [Tue, 13 Dec 2011 13:36:19 +0000 (15:36 +0200)]
#13549: improve tutorial section about listcomps.
Antoine Pitrou [Mon, 12 Dec 2011 18:18:24 +0000 (19:18 +0100)]
Fix test_gdb failure
Florent Xicluna [Mon, 12 Dec 2011 17:54:29 +0000 (18:54 +0100)]
Issue #13575: there is only one class type.
Antoine Pitrou [Mon, 12 Dec 2011 12:47:25 +0000 (13:47 +0100)]
Issue #13577: various kinds of descriptors now have a __qualname__ attribute.
Patch by sbt.
Victor Stinner [Mon, 12 Dec 2011 12:24:15 +0000 (13:24 +0100)]
PyUnicode_Resize(): warn about canonical representation
Call also directly unicode_resize() in unicodeobject.c
Victor Stinner [Mon, 12 Dec 2011 12:08:33 +0000 (13:08 +0100)]
Fix PyUnicode_Resize() for compact string: leave the string unchanged on error
Fix also PyUnicode_Resize() doc
Lars Gustäbel [Mon, 12 Dec 2011 09:22:56 +0000 (10:22 +0100)]
Add missing versionchanged information.
Meador Inge [Mon, 12 Dec 2011 04:37:31 +0000 (22:37 -0600)]
Issue #13544: Add __qualname__ to functools.WRAPPER_ASSIGNMENTS.
Patch by Filip Gruszczyński.
Victor Stinner [Mon, 12 Dec 2011 00:53:47 +0000 (01:53 +0100)]
Make PyUnicode_Copy() private => _PyUnicode_Copy()
Undocument the function.
Make also decode_utf8_errors() as private (static).
Victor Stinner [Sun, 11 Dec 2011 23:13:42 +0000 (00:13 +0100)]
resize_copy() now supports legacy ready strings
Victor Stinner [Sun, 11 Dec 2011 23:01:39 +0000 (00:01 +0100)]
Rewrite PyUnicode_Append(); unicode_modifiable() is more strict
* Rename unicode_resizable() to unicode_modifiable()
* Rename _PyUnicode_Dirty() to unicode_check_modifiable() to make it clear
that the function is private
* Inline PyUnicode_Concat() and unicode_append_inplace() in PyUnicode_Append()
to simplify the code
* unicode_modifiable() return 0 if the hash has been computed or if the string
is not an exact unicode string
* Remove _PyUnicode_DIRTY(): no need to reset the hash anymore, because if the
hash has already been computed, you cannot modify a string inplace anymore
* PyUnicode_Concat() checks for integer overflow
Victor Stinner [Mon, 12 Dec 2011 00:24:20 +0000 (01:24 +0100)]
PyUnicode_IS_ASCII() macro ensures that the string is ready
It has no sense to check if a not ready string is ASCII or not.
Victor Stinner [Sun, 11 Dec 2011 21:44:26 +0000 (22:44 +0100)]
Create unicode_result_unchanged() subfunction
Victor Stinner [Sun, 11 Dec 2011 21:22:39 +0000 (22:22 +0100)]
Fix fixup() for unchanged unicode subtype
If maxchar_new == 0 and self is a unicode subtype, return u instead of duplicating u.
Victor Stinner [Sun, 11 Dec 2011 20:54:30 +0000 (21:54 +0100)]
unicode_fromascii() doesn't check string content twice in debug mode
_PyUnicode_CheckConsistency() also checks string content.
Victor Stinner [Sun, 11 Dec 2011 20:53:09 +0000 (21:53 +0100)]
Call directly PyUnicode_DecodeUTF8Stateful() instead of PyUnicode_DecodeUTF8()
* Remove micro-optimization from PyUnicode_FromStringAndSize():
PyUnicode_DecodeUTF8Stateful() has already these optimizations (for size=0
and one ascii char).
* Rename utf8_max_char_size_and_char_count() to utf8_scanner(), and remove an
useless variable
Victor Stinner [Sun, 11 Dec 2011 20:44:00 +0000 (21:44 +0100)]
Use directly unicode_empty instead of PyUnicode_New(0, 0)
Victor Stinner [Sun, 11 Dec 2011 19:09:03 +0000 (20:09 +0100)]
Move the slowest UTF-8 decoder to its own subfunction
* Create decode_utf8_errors()
* Reuse unicode_fromascii()
* decode_utf8_errors() doesn't refit at the beginning
* Remove refit_partial_string(), use unicode_adjust_maxchar() instead
Victor Stinner [Sun, 11 Dec 2011 19:04:56 +0000 (20:04 +0100)]
Fix error handling in resize_compact()
Benjamin Peterson [Sat, 10 Dec 2011 22:55:31 +0000 (17:55 -0500)]
merge heads
Benjamin Peterson [Sat, 10 Dec 2011 22:50:22 +0000 (17:50 -0500)]
alias resource.error to OSError
Giampaolo Rodola' [Sat, 10 Dec 2011 20:25:04 +0000 (21:25 +0100)]
fix #13563: make use of with statement in ftplib.py where needed
Florent Xicluna [Sat, 10 Dec 2011 20:14:53 +0000 (21:14 +0100)]
Fix imports in xml.dom.
Lars Gustäbel [Sat, 10 Dec 2011 19:38:14 +0000 (20:38 +0100)]
Issue #5689: Add support for lzma compression to the tarfile module.
Benjamin Peterson [Sat, 10 Dec 2011 17:44:37 +0000 (12:44 -0500)]
merge 3.2
Benjamin Peterson [Sat, 10 Dec 2011 17:44:25 +0000 (12:44 -0500)]
we're always going to have gc
Benjamin Peterson [Sat, 10 Dec 2011 17:38:52 +0000 (12:38 -0500)]
merge 3.2
Benjamin Peterson [Sat, 10 Dec 2011 17:31:42 +0000 (12:31 -0500)]
you can't get resource.error if you can't import resource
Victor Stinner [Sat, 10 Dec 2011 13:37:53 +0000 (14:37 +0100)]
Issue #11886: Fix also test_time for the non-DST timezone name (EST/AEST)
Charles-François Natali [Sat, 10 Dec 2011 12:17:46 +0000 (13:17 +0100)]
Issue #13453: Catch EAI_FAIL in support.transient_internet.
Charles-François Natali [Sat, 10 Dec 2011 12:16:44 +0000 (13:16 +0100)]
Issue #13453: Catch EAI_FAIL in support.transient_internet.
Florent Xicluna [Sat, 10 Dec 2011 12:02:17 +0000 (13:02 +0100)]
Fix comment in difflib.
Lars Gustäbel [Sat, 10 Dec 2011 11:48:03 +0000 (12:48 +0100)]
Merge with 3.2: Fix doc typo.