]>
granicus.if.org Git - python/log
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.
Lars Gustäbel [Sat, 10 Dec 2011 11:45:45 +0000 (12:45 +0100)]
Fix doc typo.
Florent Xicluna [Sat, 10 Dec 2011 10:07:42 +0000 (11:07 +0100)]
Issue #13248: turn 3.2's PendingDeprecationWarning into 3.3's DeprecationWarning (cgi, importlib, nntplib, smtpd).
Florent Xicluna [Fri, 9 Dec 2011 22:42:29 +0000 (23:42 +0100)]
Merge 3.2
Florent Xicluna [Fri, 9 Dec 2011 22:41:21 +0000 (23:41 +0100)]
Remove obsolete py3k comment.
Florent Xicluna [Fri, 9 Dec 2011 22:41:19 +0000 (23:41 +0100)]
Fix docstring typo.
Antoine Pitrou [Fri, 9 Dec 2011 22:11:16 +0000 (23:11 +0100)]
Issue #13528: rework the performance question in the programming FAQ
Antoine Pitrou [Fri, 9 Dec 2011 22:10:31 +0000 (23:10 +0100)]
Issue #13528: rework the performance question in the programming FAQ
Florent Xicluna [Fri, 9 Dec 2011 21:35:06 +0000 (22:35 +0100)]
Closes #2979: add parameter 'use_builtin_types' to the SimpleXMLRPCServer.
Victor Stinner [Fri, 9 Dec 2011 19:49:49 +0000 (20:49 +0100)]
Write tests for invalid characters (U+
00110000 )
Test the following functions:
* codecs.raw_unicode_escape_decode()
* PyUnicode_FromWideChar()
* PyUnicode_FromUnicode()
* "unicode_internal" and "unicode_escape" decoders
Victor Stinner [Fri, 9 Dec 2011 19:21:17 +0000 (20:21 +0100)]
(Merge 3.2) Issue #5905: time.strftime() is now using the locale encoding,
instead of UTF-8, if the wcsftime() function is not available.
Victor Stinner [Fri, 9 Dec 2011 19:19:24 +0000 (20:19 +0100)]
Issue #5905: time.strftime() is now using the locale encoding, instead of
UTF-8, if the wcsftime() function is not available.
Victor Stinner [Fri, 9 Dec 2011 10:29:44 +0000 (11:29 +0100)]
Issue #13441: Enable the workaround for Solaris locale bug
Skip locales triggering the mbstowcs() bug. I collected the locale list thanks
my previous commit:
* hu_HU (ISO8859-2): character U+
30000020
* de_AT (ISO8859-1): character U+
30000076
* cs_CZ (ISO8859-2): character U+
30000020
* sk_SK (ISO8859-2): character U+
30000020
* pl_PL (ISO8859-2): character U+
30000020
* fr_CA (ISO8859-1): character U+
30000020
Victor Stinner [Fri, 9 Dec 2011 09:28:45 +0000 (10:28 +0100)]
Issue #13441: Skip some locales (e.g. cs_CZ and hu_HU) on Solaris to workaround
a mbstowcs() bug. For example, on Solaris, the hu_HU locale uses the locale
encoding ISO-8859-2, the thousauds separator is b'\xA0' and it is decoded as
U+
30000020 (an invalid character) by mbstowcs().
The workaround is not enabled yet (commented): I would like first to get
more information about the failing locales.
Victor Stinner [Fri, 9 Dec 2011 00:20:03 +0000 (01:20 +0100)]
Issue #13441: Don't test the hu_HU locale on Solaris to workaround a mbstowcs()
bug. On Solaris, if the locale is hu_HU (and if the locale encoding is not
UTF-8), the thousauds separator is b'\xA0' which is decoded as U+
30000020
instead of U+0020 by mbstowcs().
Nadeem Vawda [Thu, 8 Dec 2011 23:32:46 +0000 (01:32 +0200)]
What's New in Python 3.3: Add entry for lzma module (issue #6715).
Victor Stinner [Thu, 8 Dec 2011 23:18:11 +0000 (00:18 +0100)]
Document PyUnicode_Copy() and PyUnicode_EncodeCodePage()
Victor Stinner [Thu, 8 Dec 2011 23:10:41 +0000 (00:10 +0100)]
What's New in Python 3.3: Add a Deprecated section
Victor Stinner [Thu, 8 Dec 2011 22:42:52 +0000 (23:42 +0100)]
Issue #13441: Log the locale when localeconv() fails
Stefan Krah [Thu, 8 Dec 2011 22:31:40 +0000 (23:31 +0100)]
Merge fix for issue #13547.
Stefan Krah [Thu, 8 Dec 2011 22:25:15 +0000 (23:25 +0100)]
Issue #13547: clean Lib/_sysconfigdata.py and Modules/_testembed
Stefan Krah [Thu, 8 Dec 2011 21:30:18 +0000 (22:30 +0100)]
Merge.
Stefan Krah [Thu, 8 Dec 2011 21:22:58 +0000 (22:22 +0100)]
Merge second fix for issue #11149.
Stefan Krah [Thu, 8 Dec 2011 21:20:31 +0000 (22:20 +0100)]
Issue #11149: Also enable -fwrapv if $CC is a full path
or has a trailing version number.
Victor Stinner [Thu, 8 Dec 2011 21:14:11 +0000 (22:14 +0100)]
PyUnicode_FromWideChar() and PyUnicode_FromUnicode() raise a ValueError if a
character in not in range [U+0000; U+10ffff].
Victor Stinner [Wed, 7 Dec 2011 23:33:14 +0000 (00:33 +0100)]
(Merge 3.2) Issue #11886: workaround an OS bug (time zone data) in test_time
Australian Eastern Standard Time (UTC+10) is called "EST" (as Eastern Standard
Time, UTC-5) instead of "AEST" on some operating systems (e.g. FreeBSD), which
is wrong. See for example this bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93810
Victor Stinner [Wed, 7 Dec 2011 23:32:51 +0000 (00:32 +0100)]
Issue #11886: workaround an OS bug (time zone data) in test_time
Australian Eastern Standard Time (UTC+10) is called "EST" (as Eastern Standard
Time, UTC-5) instead of "AEST" on some operating systems (e.g. FreeBSD), which
is wrong. See for example this bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93810
Victor Stinner [Wed, 7 Dec 2011 23:08:22 +0000 (00:08 +0100)]
libpython.py: defer call to gdb.lookup_type('PyUnicodeObject')
The lookup fails at startup if Python is linked to a shared library.
Charles-François Natali [Wed, 7 Dec 2011 22:17:58 +0000 (23:17 +0100)]
Followup to
a541bda2f5e2 : Add a short comment.
Ezio Melotti [Wed, 7 Dec 2011 22:03:59 +0000 (00:03 +0200)]
#13531: merge with 3.2.
Ezio Melotti [Wed, 7 Dec 2011 22:02:00 +0000 (00:02 +0200)]
#13531: add a test for defaultdict with a non-callable arg. Patch by Mike Cheng.
Charles-François Natali [Wed, 7 Dec 2011 18:16:01 +0000 (19:16 +0100)]
Issue #11051: Reduce the number of syscalls per import.
Ned Deily [Wed, 7 Dec 2011 09:12:50 +0000 (01:12 -0800)]
Issue #8641: Update IDLE 3 syntax coloring to recognize b".." and not u"..".
(Patch by Tal Einat)
Ned Deily [Wed, 7 Dec 2011 09:08:35 +0000 (01:08 -0800)]
Issue #8641: Update IDLE 3 syntax coloring to recognize b".." and not u"..".
(Patch by Tal Einat)
Antoine Pitrou [Tue, 6 Dec 2011 21:34:36 +0000 (22:34 +0100)]
Fix dangling whitespace
Antoine Pitrou [Tue, 6 Dec 2011 21:33:57 +0000 (22:33 +0100)]
Issue #13464: Add a readinto() method to http.client.HTTPResponse.
Patch by Jon Kuhn.
Jesus Cea [Tue, 6 Dec 2011 19:47:38 +0000 (20:47 +0100)]
MERGE: Close #13500: Hitting EOF gets cmd.py into a infinite EOF on return loop
Jesus Cea [Tue, 6 Dec 2011 19:46:57 +0000 (20:46 +0100)]
Close #13500: Hitting EOF gets cmd.py into a infinite EOF on return loop
Lars Gustäbel [Tue, 6 Dec 2011 12:44:10 +0000 (13:44 +0100)]
Remove no longer needed work-around for bz2 file object support.
Lars Gustäbel [Tue, 6 Dec 2011 12:00:58 +0000 (13:00 +0100)]
Merge with 3.2: Correctly detect bzip2 compressed streams with blocksizes other than 900k.
Lars Gustäbel [Tue, 6 Dec 2011 11:56:38 +0000 (12:56 +0100)]
Correctly detect bzip2 compressed streams with blocksizes other than 900k.
Barry Warsaw [Mon, 5 Dec 2011 21:50:41 +0000 (16:50 -0500)]
- Issue #11147: Fix an unused argument in _Py_ANNOTATE_MEMORY_ORDER. (Fix
given by Campbell Barton).
Barry Warsaw [Mon, 5 Dec 2011 21:45:02 +0000 (16:45 -0500)]
- Issue #11147: Fix an unused argument in _Py_ANNOTATE_MEMORY_ORDER. (Fix
given by Campbell Barton).
Antoine Pitrou [Mon, 5 Dec 2011 19:40:08 +0000 (20:40 +0100)]
Issue #13503: Use a more efficient reduction format for bytearrays with
pickle protocol >= 3. The old reduction format is kept with older
protocols in order to allow unpickling under Python 2.
Patch by Irmen de Jong.
Antoine Pitrou [Mon, 5 Dec 2011 00:47:40 +0000 (01:47 +0100)]
Merge assorted fixes from 3.2
Antoine Pitrou [Mon, 5 Dec 2011 00:46:35 +0000 (01:46 +0100)]
s/SOCKSTREAM/TCP/
Antoine Pitrou [Mon, 5 Dec 2011 00:43:32 +0000 (01:43 +0100)]
Reword IPC section
Antoine Pitrou [Mon, 5 Dec 2011 00:37:34 +0000 (01:37 +0100)]
Use www.python.org instead of a hostname pointing to a parked (or squatted) domain.
Also, reformat a bit.
Antoine Pitrou [Mon, 5 Dec 2011 00:32:29 +0000 (01:32 +0100)]
Remove the outdated notion that multithreading doesn't work well on Unices.
Antoine Pitrou [Mon, 5 Dec 2011 00:22:03 +0000 (01:22 +0100)]
Remove reference to the base64 encoding.
Antoine Pitrou [Mon, 5 Dec 2011 00:21:46 +0000 (01:21 +0100)]
Remove reference to the base64 encoding.
Antoine Pitrou [Mon, 5 Dec 2011 00:05:55 +0000 (01:05 +0100)]
The functional module hasn't been maintained since 2006 and doesn't work with Python 3.
Remove section about it from the functional programming FAQ.
Antoine Pitrou [Mon, 5 Dec 2011 00:05:32 +0000 (01:05 +0100)]
The functional module hasn't been maintained since 2006 and doesn't work with Python 3.
Remove section about it from the functional programming FAQ.
Antoine Pitrou [Sun, 4 Dec 2011 23:41:51 +0000 (00:41 +0100)]
Remove obsolete references to bsddb
Antoine Pitrou [Sun, 4 Dec 2011 23:41:19 +0000 (00:41 +0100)]
Remove obsolete references to bsddb
Antoine Pitrou [Sun, 4 Dec 2011 22:57:55 +0000 (23:57 +0100)]
Issue #13527: remove mention of Python megawidgets and Tkinter3000 WCK
from the doc. These two projects appear dead.
Antoine Pitrou [Sun, 4 Dec 2011 22:56:30 +0000 (23:56 +0100)]
Issue #13527: remove mention of Python megawidgets and Tkinter3000 WCK
from the doc. These two projects appear dead.
Jason R. Coombs [Sun, 4 Dec 2011 13:14:18 +0000 (08:14 -0500)]
Corrected order of parameters to HTTPError in test_urllib2.py.
Georg Brandl [Sun, 4 Dec 2011 10:51:33 +0000 (11:51 +0100)]
Merge with 3.2.
Georg Brandl [Sun, 4 Dec 2011 10:51:21 +0000 (11:51 +0100)]
Fix typo.
Jason R. Coombs [Sun, 4 Dec 2011 04:18:11 +0000 (23:18 -0500)]
Pass positional arguments - HTTPError is not accepting keyword arguments. Reference #13211 and #12555.
Antoine Pitrou [Sat, 3 Dec 2011 22:10:12 +0000 (23:10 +0100)]
Merge from 3.2
Antoine Pitrou [Sat, 3 Dec 2011 22:08:57 +0000 (23:08 +0100)]
Streamline mention of sorted()
Antoine Pitrou [Sat, 3 Dec 2011 22:06:50 +0000 (23:06 +0100)]
Break down and refine memory management question
Antoine Pitrou [Sat, 3 Dec 2011 21:56:02 +0000 (22:56 +0100)]
Reformulate answer, and remove off-topic discussion of bytecode in a question about compiling to C.
Antoine Pitrou [Sat, 3 Dec 2011 21:40:23 +0000 (22:40 +0100)]
Merge from 3.2
Antoine Pitrou [Sat, 3 Dec 2011 21:39:13 +0000 (22:39 +0100)]
Fix compatibility statement.
Antoine Pitrou [Sat, 3 Dec 2011 21:37:14 +0000 (22:37 +0100)]
Remove outdated question (the bsddb module isn't included anymore)
Antoine Pitrou [Sat, 3 Dec 2011 21:35:31 +0000 (22:35 +0100)]
Refine FAQ entry for catching stdout
Antoine Pitrou [Sat, 3 Dec 2011 21:30:19 +0000 (22:30 +0100)]
Advocate PyTuple_Pack instead of manual building of tuples
Antoine Pitrou [Sat, 3 Dec 2011 21:26:01 +0000 (22:26 +0100)]
Remove outdated FAQ content
Antoine Pitrou [Sat, 3 Dec 2011 21:19:55 +0000 (22:19 +0100)]
Remove outdate FAQ content
Antoine Pitrou [Sat, 3 Dec 2011 21:11:45 +0000 (22:11 +0100)]
Streamline FAQ entry about the ternary operator, and suggest using io.StringIO for a mutable unicode container.
Antoine Pitrou [Sat, 3 Dec 2011 21:11:11 +0000 (22:11 +0100)]
Streamline FAQ entry about the ternary operator, and suggest using io.StringIO for a mutable unicode container.
Antoine Pitrou [Sat, 3 Dec 2011 20:25:17 +0000 (21:25 +0100)]
Remove references to psyco, which is mostly unmaintained and doesn't work with Python 3.
Antoine Pitrou [Sat, 3 Dec 2011 20:21:36 +0000 (21:21 +0100)]
Remove references to psyco, which is mostly unmaintained and doesn't work with Python 3.
Antoine Pitrou [Sat, 3 Dec 2011 20:07:50 +0000 (21:07 +0100)]
Merge doc fixes from 3.2
Antoine Pitrou [Sat, 3 Dec 2011 20:07:01 +0000 (21:07 +0100)]
Mention PySide in the "other GUIs" page.
Antoine Pitrou [Sat, 3 Dec 2011 19:59:24 +0000 (20:59 +0100)]
Mention the new GTK+ 3 bindings.
Meador Inge [Sat, 3 Dec 2011 18:50:18 +0000 (12:50 -0600)]
Issue #13513: IOBase docs incorrectly link to the readline module
Meador Inge [Sat, 3 Dec 2011 18:29:54 +0000 (12:29 -0600)]
Issue #13513: IOBase docs incorrectly link to the readline module
Éric Araujo [Sat, 3 Dec 2011 15:00:56 +0000 (16:00 +0100)]
Fix glitches in email.policy docs (#12208)
Jason R. Coombs [Sat, 3 Dec 2011 14:39:58 +0000 (09:39 -0500)]
Merged fix for #13211 from 3.2