python
13 years agoFollowup to a541bda2f5e2: Add a short comment.
Charles-François Natali [Wed, 7 Dec 2011 22:17:58 +0000 (23:17 +0100)]
Followup to a541bda2f5e2: Add a short comment.

13 years ago#13531: merge with 3.2.
Ezio Melotti [Wed, 7 Dec 2011 22:03:59 +0000 (00:03 +0200)]
#13531: merge with 3.2.

13 years ago#13531: add a test for defaultdict with a non-callable arg. Patch by Mike Cheng.
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.

13 years agoIssue #11051: Reduce the number of syscalls per import.
Charles-François Natali [Wed, 7 Dec 2011 18:16:01 +0000 (19:16 +0100)]
Issue #11051: Reduce the number of syscalls per import.

13 years agoIssue #8641: Update IDLE 3 syntax coloring to recognize b".." and not u"..".
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)

13 years agoIssue #8641: Update IDLE 3 syntax coloring to recognize b".." and not u"..".
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)

13 years agoFix dangling whitespace
Antoine Pitrou [Tue, 6 Dec 2011 21:34:36 +0000 (22:34 +0100)]
Fix dangling whitespace

13 years agoIssue #13464: Add a readinto() method to http.client.HTTPResponse.
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.

13 years agoMERGE: Close #13500: Hitting EOF gets cmd.py into a infinite EOF on return loop
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

13 years agoClose #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

13 years agoRemove no longer needed work-around for bz2 file object support.
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.

13 years agoMerge with 3.2: Correctly detect bzip2 compressed streams with blocksizes other than...
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.

13 years agoCorrectly 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.

13 years ago- Issue #11147: Fix an unused argument in _Py_ANNOTATE_MEMORY_ORDER. (Fix
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).

13 years ago- Issue #11147: Fix an unused argument in _Py_ANNOTATE_MEMORY_ORDER. (Fix
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).

13 years agoIssue #13503: Use a more efficient reduction format for bytearrays with
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.

13 years agoMerge assorted fixes from 3.2
Antoine Pitrou [Mon, 5 Dec 2011 00:47:40 +0000 (01:47 +0100)]
Merge assorted fixes from 3.2

13 years agos/SOCKSTREAM/TCP/
Antoine Pitrou [Mon, 5 Dec 2011 00:46:35 +0000 (01:46 +0100)]
s/SOCKSTREAM/TCP/

13 years agoReword IPC section
Antoine Pitrou [Mon, 5 Dec 2011 00:43:32 +0000 (01:43 +0100)]
Reword IPC section

13 years agoUse www.python.org instead of a hostname pointing to a parked (or squatted) domain.
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.

13 years agoRemove the outdated notion that multithreading doesn't work well on Unices.
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.

13 years agoRemove reference to the base64 encoding.
Antoine Pitrou [Mon, 5 Dec 2011 00:22:03 +0000 (01:22 +0100)]
Remove reference to the base64 encoding.

13 years agoRemove reference to the base64 encoding.
Antoine Pitrou [Mon, 5 Dec 2011 00:21:46 +0000 (01:21 +0100)]
Remove reference to the base64 encoding.

13 years agoThe functional module hasn't been maintained since 2006 and doesn't work with Python 3.
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.

13 years agoThe functional module hasn't been maintained since 2006 and doesn't work with Python 3.
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.

13 years agoRemove obsolete references to bsddb
Antoine Pitrou [Sun, 4 Dec 2011 23:41:51 +0000 (00:41 +0100)]
Remove obsolete references to bsddb

13 years agoRemove obsolete references to bsddb
Antoine Pitrou [Sun, 4 Dec 2011 23:41:19 +0000 (00:41 +0100)]
Remove obsolete references to bsddb

13 years agoIssue #13527: remove mention of Python megawidgets and Tkinter3000 WCK
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.

13 years agoIssue #13527: remove mention of Python megawidgets and Tkinter3000 WCK
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.

13 years agoCorrected order of parameters to HTTPError in test_urllib2.py.
Jason R. Coombs [Sun, 4 Dec 2011 13:14:18 +0000 (08:14 -0500)]
Corrected order of parameters to HTTPError in test_urllib2.py.

13 years agoMerge with 3.2.
Georg Brandl [Sun, 4 Dec 2011 10:51:33 +0000 (11:51 +0100)]
Merge with 3.2.

13 years agoFix typo.
Georg Brandl [Sun, 4 Dec 2011 10:51:21 +0000 (11:51 +0100)]
Fix typo.

13 years agoPass positional arguments - HTTPError is not accepting keyword arguments. Reference...
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.

13 years agoMerge from 3.2
Antoine Pitrou [Sat, 3 Dec 2011 22:10:12 +0000 (23:10 +0100)]
Merge from 3.2

13 years agoStreamline mention of sorted()
Antoine Pitrou [Sat, 3 Dec 2011 22:08:57 +0000 (23:08 +0100)]
Streamline mention of sorted()

13 years agoBreak down and refine memory management question
Antoine Pitrou [Sat, 3 Dec 2011 22:06:50 +0000 (23:06 +0100)]
Break down and refine memory management question

13 years agoReformulate answer, and remove off-topic discussion of bytecode in a question about...
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.

13 years agoMerge from 3.2
Antoine Pitrou [Sat, 3 Dec 2011 21:40:23 +0000 (22:40 +0100)]
Merge from 3.2

13 years agoFix compatibility statement.
Antoine Pitrou [Sat, 3 Dec 2011 21:39:13 +0000 (22:39 +0100)]
Fix compatibility statement.

13 years agoRemove outdated question (the bsddb module isn't included anymore)
Antoine Pitrou [Sat, 3 Dec 2011 21:37:14 +0000 (22:37 +0100)]
Remove outdated question (the bsddb module isn't included anymore)

13 years agoRefine FAQ entry for catching stdout
Antoine Pitrou [Sat, 3 Dec 2011 21:35:31 +0000 (22:35 +0100)]
Refine FAQ entry for catching stdout

13 years agoAdvocate PyTuple_Pack instead of manual building of tuples
Antoine Pitrou [Sat, 3 Dec 2011 21:30:19 +0000 (22:30 +0100)]
Advocate PyTuple_Pack instead of manual building of tuples

13 years agoRemove outdated FAQ content
Antoine Pitrou [Sat, 3 Dec 2011 21:26:01 +0000 (22:26 +0100)]
Remove outdated FAQ content

13 years agoRemove outdate FAQ content
Antoine Pitrou [Sat, 3 Dec 2011 21:19:55 +0000 (22:19 +0100)]
Remove outdate FAQ content

13 years agoStreamline FAQ entry about the ternary operator, and suggest using io.StringIO for...
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.

13 years agoStreamline FAQ entry about the ternary operator, and suggest using io.StringIO for...
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.

13 years agoRemove references to psyco, which is mostly unmaintained and doesn't work with Python 3.
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.

13 years agoRemove 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.

13 years agoMerge doc fixes from 3.2
Antoine Pitrou [Sat, 3 Dec 2011 20:07:50 +0000 (21:07 +0100)]
Merge doc fixes from 3.2

13 years agoMention PySide in the "other GUIs" page.
Antoine Pitrou [Sat, 3 Dec 2011 20:07:01 +0000 (21:07 +0100)]
Mention PySide in the "other GUIs" page.

13 years agoMention the new GTK+ 3 bindings.
Antoine Pitrou [Sat, 3 Dec 2011 19:59:24 +0000 (20:59 +0100)]
Mention the new GTK+ 3 bindings.

13 years agoIssue #13513: IOBase docs incorrectly link to the readline module
Meador Inge [Sat, 3 Dec 2011 18:50:18 +0000 (12:50 -0600)]
Issue #13513: IOBase docs incorrectly link to the readline module

13 years agoIssue #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

13 years agoFix glitches in email.policy docs (#12208)
Éric Araujo [Sat, 3 Dec 2011 15:00:56 +0000 (16:00 +0100)]
Fix glitches in email.policy docs (#12208)

13 years agoMerged fix for #13211 from 3.2
Jason R. Coombs [Sat, 3 Dec 2011 14:39:58 +0000 (09:39 -0500)]
Merged fix for #13211 from 3.2

13 years agoMerge fix for Issue #12666 from 3.2
Jason R. Coombs [Sat, 3 Dec 2011 13:59:53 +0000 (08:59 -0500)]
Merge fix for Issue #12666 from 3.2

13 years agoIssue #12612: Add some Valgrind suppressions for 64-bit machines. Patch by Paul
Charles-François Natali [Sat, 3 Dec 2011 13:43:57 +0000 (14:43 +0100)]
Issue #12612: Add some Valgrind suppressions for 64-bit machines. Patch by Paul
Price.

13 years agoIssue #12666: Added section about map changes.
Jason R. Coombs [Sat, 3 Dec 2011 13:24:21 +0000 (08:24 -0500)]
Issue #12666: Added section about map changes.

13 years agoIssue #13439: Merge branch 3.2
Petri Lehtinen [Fri, 2 Dec 2011 19:25:39 +0000 (21:25 +0200)]
Issue #13439: Merge branch 3.2

13 years agoIssue #13439: Fix many errors in turtle docstrings.
Petri Lehtinen [Fri, 2 Dec 2011 19:24:14 +0000 (21:24 +0200)]
Issue #13439: Fix many errors in turtle docstrings.

13 years ago#13494: merge with 3.2.
Ezio Melotti [Fri, 2 Dec 2011 17:49:02 +0000 (19:49 +0200)]
#13494: merge with 3.2.

13 years ago#13494: s/cast/convert/. Also add a link.
Ezio Melotti [Fri, 2 Dec 2011 17:47:24 +0000 (19:47 +0200)]
#13494: s/cast/convert/.  Also add a link.

13 years ago#13499: merge with 3.2.
Ezio Melotti [Fri, 2 Dec 2011 17:29:10 +0000 (19:29 +0200)]
#13499: merge with 3.2.

13 years ago#13499: fix example adding >>> before the comments.
Ezio Melotti [Fri, 2 Dec 2011 17:28:36 +0000 (19:28 +0200)]
#13499: fix example adding >>> before the comments.

13 years ago#8414: merge with 3.2.
Ezio Melotti [Fri, 2 Dec 2011 16:23:54 +0000 (18:23 +0200)]
#8414: merge with 3.2.

13 years ago#8414: add more tests for "assert". Initial patch by Gregory Nofi.
Ezio Melotti [Fri, 2 Dec 2011 16:22:52 +0000 (18:22 +0200)]
#8414: add more tests for "assert".  Initial patch by Gregory Nofi.

13 years agoIssue #9530: Fix undefined behaviour due to signed overflow in Python/formatter_unico...
Mark Dickinson [Thu, 1 Dec 2011 15:27:04 +0000 (15:27 +0000)]
Issue #9530: Fix undefined behaviour due to signed overflow in Python/formatter_unicode.c.

13 years agoFix PyObject_Repr(): don't call PyUnicode_READY() if res is NULL
Victor Stinner [Thu, 1 Dec 2011 02:22:44 +0000 (03:22 +0100)]
Fix PyObject_Repr(): don't call PyUnicode_READY() if res is NULL

13 years agoReplace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0)
Victor Stinner [Thu, 1 Dec 2011 02:18:59 +0000 (03:18 +0100)]
Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0)

Create an empty string with the new Unicode API.

13 years agoMultibyteCodec_Decode() catchs PyUnicode_AS_UNICODE() failures
Victor Stinner [Thu, 1 Dec 2011 02:18:30 +0000 (03:18 +0100)]
MultibyteCodec_Decode() catchs PyUnicode_AS_UNICODE() failures

13 years agoc-api: Replace PyUnicodeObject* by PyObject* in "U" format doc
Victor Stinner [Thu, 1 Dec 2011 01:52:55 +0000 (02:52 +0100)]
c-api: Replace PyUnicodeObject* by PyObject* in "U" format doc

13 years agoPyCodec_IgnoreErrors() avoids the deprecated "u#" format
Victor Stinner [Thu, 1 Dec 2011 01:52:11 +0000 (02:52 +0100)]
PyCodec_IgnoreErrors() avoids the deprecated "u#" format

13 years agoPyObject_Repr() ensures that the result is a ready Unicode string
Victor Stinner [Thu, 1 Dec 2011 01:15:00 +0000 (02:15 +0100)]
PyObject_Repr() ensures that the result is a ready Unicode string

And PyObject_Str() and PyObject_Repr() don't make strings ready in debug
mode to ensure that the caller makes the string ready before using it.

13 years agoCredit Per Øyvind Karlsen for the initial implementation of the lzma module (issue...
Nadeem Vawda [Wed, 30 Nov 2011 23:18:27 +0000 (01:18 +0200)]
Credit Per Øyvind Karlsen for the initial implementation of the lzma module (issue #6715).

13 years agoIssue #1040439: better document how to compile and link an embedded Python interpreter.
Antoine Pitrou [Wed, 30 Nov 2011 20:20:01 +0000 (21:20 +0100)]
Issue #1040439: better document how to compile and link an embedded Python interpreter.
Still lacks docs for Windows (anyone?).

13 years agoIssue #1040439: better document how to compile and link an embedded Python interpreter.
Antoine Pitrou [Wed, 30 Nov 2011 20:19:21 +0000 (21:19 +0100)]
Issue #1040439: better document how to compile and link an embedded Python interpreter.
Still lacks docs for Windows (anyone?).

13 years agoMake error handling in BZ2File.{readable,seekable,writable,fileno} consistent with...
Nadeem Vawda [Wed, 30 Nov 2011 15:39:30 +0000 (17:39 +0200)]
Make error handling in BZ2File.{readable,seekable,writable,fileno} consistent with TextIOWrapper.

Also, add tests for these methods.

13 years agoIssue #6715: Add module for compression using the LZMA algorithm.
Nadeem Vawda [Tue, 29 Nov 2011 22:25:06 +0000 (00:25 +0200)]
Issue #6715: Add module for compression using the LZMA algorithm.

13 years agoPy_UNICODE_HIGH_SURROGATE() and Py_UNICODE_LOW_SURROGATE() macros
Victor Stinner [Tue, 29 Nov 2011 21:58:13 +0000 (22:58 +0100)]
Py_UNICODE_HIGH_SURROGATE() and Py_UNICODE_LOW_SURROGATE() macros

And use surrogates macros everywhere in unicodeobject.c

13 years agoMention hashable memoryviews, and reformat.
Antoine Pitrou [Tue, 29 Nov 2011 21:47:11 +0000 (22:47 +0100)]
Mention hashable memoryviews, and reformat.

13 years agoAdd subheaders to make PEP 393 description clearer
Antoine Pitrou [Tue, 29 Nov 2011 21:45:07 +0000 (22:45 +0100)]
Add subheaders to make PEP 393 description clearer

13 years agoMerge 3.2
Éric Araujo [Tue, 29 Nov 2011 16:14:27 +0000 (17:14 +0100)]
Merge 3.2

13 years agoFix inspect.getmodule to use a copy of sys.modules for iteration (#13487).
Éric Araujo [Tue, 29 Nov 2011 15:58:53 +0000 (16:58 +0100)]
Fix inspect.getmodule to use a copy of sys.modules for iteration (#13487).

This fixes a regression compared to 2.x, where sys.modules.items()
returns a copy, as indicated by a comment in the source.  Diagnosis and
patch by Erik Tollerud.

13 years agoMark up constants in sockets docs as such
Éric Araujo [Tue, 29 Nov 2011 15:46:38 +0000 (16:46 +0100)]
Mark up constants in sockets docs as such

13 years agoFix instructions on how to rebuild some modules
Éric Araujo [Tue, 29 Nov 2011 15:45:34 +0000 (16:45 +0100)]
Fix instructions on how to rebuild some modules

13 years agoAdd a regrtest cleanup check for shutil registries
Éric Araujo [Tue, 29 Nov 2011 15:45:07 +0000 (16:45 +0100)]
Add a regrtest cleanup check for shutil registries

13 years agoFix last remaining references to ex-devguide
Éric Araujo [Tue, 29 Nov 2011 15:36:17 +0000 (16:36 +0100)]
Fix last remaining references to ex-devguide

13 years agoFix typo (#13467)
Éric Araujo [Tue, 29 Nov 2011 15:34:58 +0000 (16:34 +0100)]
Fix typo (#13467)

13 years agocleanup setup.py for curses options
Victor Stinner [Mon, 28 Nov 2011 23:08:12 +0000 (00:08 +0100)]
cleanup setup.py for curses options

13 years ago(Merge 3.2) Fix curses module for strict SysV implementation (without has_key function)
Victor Stinner [Mon, 28 Nov 2011 23:06:10 +0000 (00:06 +0100)]
(Merge 3.2) Fix curses module for strict SysV implementation (without has_key function)

13 years agoFix curses module for strict SysV implementation (without has_key function)
Victor Stinner [Mon, 28 Nov 2011 23:03:50 +0000 (00:03 +0100)]
Fix curses module for strict SysV implementation (without has_key function)

13 years agoMerge test_xmlrpc_net fixes (issue #13434)
Antoine Pitrou [Mon, 28 Nov 2011 20:15:22 +0000 (21:15 +0100)]
Merge test_xmlrpc_net fixes (issue #13434)

13 years agoFix resource warning in test_xmlrpc_net
Antoine Pitrou [Mon, 28 Nov 2011 20:14:46 +0000 (21:14 +0100)]
Fix resource warning in test_xmlrpc_net

13 years agoIssue #13434: skip the time.xmlrpc.com test, and reenable the buildbot test.
Antoine Pitrou [Mon, 28 Nov 2011 20:12:24 +0000 (21:12 +0100)]
Issue #13434: skip the time.xmlrpc.com test, and reenable the buildbot test.

13 years agoIssue #7111: Python can now be run without a stdin, stdout or stderr stream.
Antoine Pitrou [Mon, 28 Nov 2011 18:09:45 +0000 (19:09 +0100)]
Issue #7111: Python can now be run without a stdin, stdout or stderr stream.

It was already the case with Python 2.  However, the corresponding
sys module entries are now set to None (instead of an unusable file object).

13 years agoIssue #7111: Python can now be run without a stdin, stdout or stderr stream.
Antoine Pitrou [Mon, 28 Nov 2011 18:08:36 +0000 (19:08 +0100)]
Issue #7111: Python can now be run without a stdin, stdout or stderr stream.

It was already the case with Python 2.  However, the corresponding
sys module entries are now set to None (instead of an unusable file object).

13 years agoIssue #12618: py_compile cannot create files in current directory
Meador Inge [Mon, 28 Nov 2011 15:34:47 +0000 (09:34 -0600)]
Issue #12618: py_compile cannot create files in current directory

Initial patch by Sjoerd de Vries.

13 years agoIssue #12618: py_compile cannot create files in current directory
Meador Inge [Mon, 28 Nov 2011 15:27:32 +0000 (09:27 -0600)]
Issue #12618: py_compile cannot create files in current directory

Initial patch by Sjoerd de Vries.

13 years agoIssue #13415: test_curses skips unencodable characters
Victor Stinner [Mon, 28 Nov 2011 06:26:19 +0000 (07:26 +0100)]
Issue #13415: test_curses skips unencodable characters

13 years agoNull merge.
Charles-François Natali [Sun, 27 Nov 2011 11:50:15 +0000 (12:50 +0100)]
Null merge.