]> granicus.if.org Git - python/log
python
13 years agoRefactor calculation of the cache key. Minor code cleanups.
Raymond Hettinger [Fri, 16 Mar 2012 23:53:05 +0000 (16:53 -0700)]
Refactor calculation of the cache key.  Minor code cleanups.

13 years agocleanup Ellipsis and NotImplemented strings after we're done
Benjamin Peterson [Fri, 16 Mar 2012 23:45:31 +0000 (18:45 -0500)]
cleanup Ellipsis and NotImplemented strings after we're done

13 years agoMerge
Antoine Pitrou [Fri, 16 Mar 2012 23:24:12 +0000 (00:24 +0100)]
Merge

13 years agoIssue #14335: multiprocessing's custom Pickler subclass now inherits from the C-accel...
Antoine Pitrou [Fri, 16 Mar 2012 23:23:04 +0000 (00:23 +0100)]
Issue #14335: multiprocessing's custom Pickler subclass now inherits from the C-accelerated implementation.
Patch by sbt.

13 years agomerge heads
Benjamin Peterson [Fri, 16 Mar 2012 23:22:53 +0000 (18:22 -0500)]
merge heads

13 years agoclear the root with the cache
Benjamin Peterson [Fri, 16 Mar 2012 23:22:26 +0000 (18:22 -0500)]
clear the root with the cache

13 years agoMinor code cleanup.
Raymond Hettinger [Fri, 16 Mar 2012 18:48:12 +0000 (11:48 -0700)]
Minor code cleanup.

13 years agoplug memory leak (closes #14325)
Benjamin Peterson [Fri, 16 Mar 2012 18:25:58 +0000 (13:25 -0500)]
plug memory leak (closes #14325)

13 years agoEliminate duplicate link lookup. Minor cleanup.
Raymond Hettinger [Fri, 16 Mar 2012 18:21:39 +0000 (11:21 -0700)]
Eliminate duplicate link lookup.  Minor cleanup.

13 years agokill capsule names that we don't need anymore
Benjamin Peterson [Fri, 16 Mar 2012 17:24:01 +0000 (12:24 -0500)]
kill capsule names that we don't need anymore

13 years agouse memory macros
Benjamin Peterson [Fri, 16 Mar 2012 17:23:39 +0000 (12:23 -0500)]
use memory macros

13 years agocheck result of PyMem_New
Benjamin Peterson [Fri, 16 Mar 2012 17:21:02 +0000 (12:21 -0500)]
check result of PyMem_New

13 years agomerge heads
Benjamin Peterson [Fri, 16 Mar 2012 15:13:30 +0000 (10:13 -0500)]
merge heads

13 years agofix condition (#14296)
Benjamin Peterson [Fri, 16 Mar 2012 15:12:55 +0000 (10:12 -0500)]
fix condition (#14296)

13 years agoIssue #14202: some additional doc fixes
Eli Bendersky [Fri, 16 Mar 2012 14:51:01 +0000 (16:51 +0200)]
Issue #14202: some additional doc fixes

13 years agoIssue #14202: some additional doc fixes
Eli Bendersky [Fri, 16 Mar 2012 14:49:58 +0000 (16:49 +0200)]
Issue #14202: some additional doc fixes

13 years agoin 72556ff86828, I should have updated the magic as well as the comment (#14230)
Benjamin Peterson [Fri, 16 Mar 2012 14:39:12 +0000 (09:39 -0500)]
in 72556ff86828, I should have updated the magic as well as the comment (#14230)

13 years agomerge 3.2 (#14334)
Benjamin Peterson [Fri, 16 Mar 2012 14:35:38 +0000 (09:35 -0500)]
merge 3.2 (#14334)

13 years agocheck to make sure the attribute is a string (#14334)
Benjamin Peterson [Fri, 16 Mar 2012 14:32:59 +0000 (09:32 -0500)]
check to make sure the attribute is a string (#14334)

13 years agofix trailing whitespace
Eli Bendersky [Fri, 16 Mar 2012 13:32:04 +0000 (15:32 +0200)]
fix trailing whitespace

13 years agomerge heads
Eli Bendersky [Fri, 16 Mar 2012 13:30:53 +0000 (15:30 +0200)]
merge heads

13 years agoAdd a test that makes sure TreeBuilder can be passed element_factory in the
Eli Bendersky [Fri, 16 Mar 2012 13:29:50 +0000 (15:29 +0200)]
Add a test that makes sure TreeBuilder can be passed element_factory in the
constructor. Marked as expectedFailure since it currently fails for the C
implementation.

13 years agoIssue #14325: Stop using python lists, capsules, and the garbage collector to deal...
Jean-Paul Calderone [Fri, 16 Mar 2012 12:51:42 +0000 (08:51 -0400)]
Issue #14325: Stop using python lists, capsules, and the garbage collector to deal with PyArg_Parse* cleanup.

13 years agoIssue #14202: Greatly enhance the documentation of xml.dom.pulldom.
Eli Bendersky [Fri, 16 Mar 2012 12:40:13 +0000 (14:40 +0200)]
Issue #14202: Greatly enhance the documentation of xml.dom.pulldom.
Patch by Florian Mladitsch

13 years agoIssue #14202: Greatly enhance the documentation of xml.dom.pulldom.
Eli Bendersky [Fri, 16 Mar 2012 12:37:14 +0000 (14:37 +0200)]
Issue #14202: Greatly enhance the documentation of xml.dom.pulldom.
Patch by Florian Mladitsch

13 years agomerge
Raymond Hettinger [Fri, 16 Mar 2012 08:18:33 +0000 (01:18 -0700)]
merge

13 years agoImprove the memory utilization (and speed) of functools.lru_cache().
Raymond Hettinger [Fri, 16 Mar 2012 08:16:31 +0000 (01:16 -0700)]
Improve the memory utilization (and speed) of functools.lru_cache().

13 years agocloses issue10484 - Fix the http.server's cgi PATH_INFO handling problem
Senthil Kumaran [Fri, 16 Mar 2012 08:14:51 +0000 (01:14 -0700)]
closes issue10484 - Fix the http.server's cgi PATH_INFO handling problem

13 years agocloses issue10484 - Fix the http.server's cgi PATH_INFO handling problem
Senthil Kumaran [Fri, 16 Mar 2012 08:13:50 +0000 (01:13 -0700)]
closes issue10484 - Fix the http.server's cgi PATH_INFO handling problem

13 years agoIssue #13709: some fixes to the ctypes documentation. In addition to fixing
Eli Bendersky [Fri, 16 Mar 2012 07:17:43 +0000 (09:17 +0200)]
Issue #13709: some fixes to the ctypes documentation. In addition to fixing
the problems pointed in the issue, I removed the confusing Windows/Linux
distinction. It serves no real goal in the documentation, and is probably
wrong anyway since for Windows the WINFUNCTYPE constructor should be used.
In addition, the "look, this is faster on Linux" comment is misleading since
it's not explained. The outcome may just be an artifact of qsort implementation
for this particular input, and may change between C runtime version releases.

13 years agoIssue #9257: clarify the events iterparse accepts
Eli Bendersky [Fri, 16 Mar 2012 06:42:36 +0000 (08:42 +0200)]
Issue #9257: clarify the events iterparse accepts

13 years agoIssue #9257: clarify the events iterparse accepts
Eli Bendersky [Fri, 16 Mar 2012 06:41:30 +0000 (08:41 +0200)]
Issue #9257: clarify the events iterparse accepts

13 years agoIssue #14207: the ParseError exception raised by _elementtree was made
Eli Bendersky [Fri, 16 Mar 2012 06:20:05 +0000 (08:20 +0200)]
Issue #14207: the ParseError exception raised by _elementtree was made
consistent to the one raised by the Python module (the 'code' attribute
was added).

In addition, the exception is now documented.

Added a test to check that ParseError has the required attributes, and
threw away the equivalent doctest which is no longer required.

13 years agoCloses Issue #14246: _elementtree parser will now handle io.StringIO
Eli Bendersky [Fri, 16 Mar 2012 03:53:30 +0000 (05:53 +0200)]
Closes Issue #14246: _elementtree parser will now handle io.StringIO

13 years agoExplain the use of charset parameter with Content-Type header: issue11082
Senthil Kumaran [Fri, 16 Mar 2012 01:15:34 +0000 (18:15 -0700)]
Explain the use of charset parameter with Content-Type header: issue11082

13 years agoExplain the use of charset parameter with Content-Type header. Issue11082
Senthil Kumaran [Fri, 16 Mar 2012 01:11:16 +0000 (18:11 -0700)]
Explain the use of charset parameter with Content-Type header. Issue11082

13 years ago- Issue #14327: Call AC_CANONICAL_HOST in configure.ac and check in
Matthias Klose [Thu, 15 Mar 2012 21:19:28 +0000 (22:19 +0100)]
- Issue #14327: Call AC_CANONICAL_HOST in configure.ac and check in
  config.{guess,sub}. Don't use uname calls for cross builds.

13 years agofix comment
Benjamin Peterson [Thu, 15 Mar 2012 20:40:37 +0000 (15:40 -0500)]
fix comment

13 years agomerge heads
Benjamin Peterson [Thu, 15 Mar 2012 20:38:17 +0000 (15:38 -0500)]
merge heads

13 years agospace
Benjamin Peterson [Thu, 15 Mar 2012 20:37:54 +0000 (15:37 -0500)]
space

13 years agoperform yield from delegation by repeating YIELD_FROM opcode (closes #14230)
Benjamin Peterson [Thu, 15 Mar 2012 20:37:39 +0000 (15:37 -0500)]
perform yield from delegation by repeating YIELD_FROM opcode (closes #14230)

This allows generators that are using yield from to be seen by debuggers. It
also kills the f_yieldfrom field on frame objects.

Patch mostly from Mark Shannon with a few tweaks by me.

13 years ago- Issue #14327: Call AC_CANONICAL_HOST in configure.ac and check in
Matthias Klose [Thu, 15 Mar 2012 20:30:11 +0000 (21:30 +0100)]
- Issue #14327: Call AC_CANONICAL_HOST in configure.ac and check in
  config.{guess,sub}.

13 years agoport from 3.2 - Fix the urllib closing issue which hangs on particular ftp urls/ftp...
Senthil Kumaran [Thu, 15 Mar 2012 20:28:27 +0000 (13:28 -0700)]
port from 3.2 - Fix the urllib closing issue which hangs on particular ftp urls/ftp servers. closes issue11199

13 years agocloses Issue #11199: Fix the with urllib which hangs on particular ftp urls.
Senthil Kumaran [Thu, 15 Mar 2012 20:26:12 +0000 (13:26 -0700)]
closes Issue #11199: Fix the with urllib which hangs on particular ftp urls.

13 years ago- Issue #14324: Fix configure tests for cross builds.
Matthias Klose [Thu, 15 Mar 2012 19:42:23 +0000 (20:42 +0100)]
- Issue #14324: Fix configure tests for cross builds.

when configured with --(en|dis)able-ipv6 for cross builds, don't fail the configury due to the missing buggy-getaddrinfo check.

13 years ago- Issue #14324: Fix configure tests for cross builds.
Matthias Klose [Thu, 15 Mar 2012 18:51:34 +0000 (19:51 +0100)]
- Issue #14324: Fix configure tests for cross builds.

when configured --with(out)-computed-gotos for a cross, use this value instead of defaulting to no.

13 years ago- Issue #14324: Fix configure tests for cross builds.
Matthias Klose [Thu, 15 Mar 2012 18:31:06 +0000 (19:31 +0100)]
- Issue #14324: Fix configure tests for cross builds.

when using gcc, use a compilation test for the cross build check for long long format.

13 years ago- Issue #14321: Do not run pgen during the build if files are up to date.
Matthias Klose [Thu, 15 Mar 2012 17:08:34 +0000 (18:08 +0100)]
- Issue #14321: Do not run pgen during the build if files are up to date.

13 years ago(sched) when run() is invoked with blocking=False return the deadline of the next...
Giampaolo Rodola' [Thu, 15 Mar 2012 12:05:41 +0000 (13:05 +0100)]
(sched) when run() is invoked with blocking=False return the deadline of the next scheduled call in the scheduler; this use case was suggested in http://bugs.python.org/issue1641#msg149453

13 years agoFixes #14314: Improved SMTP timeout handling.
Vinay Sajip [Thu, 15 Mar 2012 12:02:08 +0000 (12:02 +0000)]
Fixes #14314: Improved SMTP timeout handling.

13 years agoMerge #12758: removing confusing mention of UTC from time.time description
R David Murray [Thu, 15 Mar 2012 07:09:53 +0000 (03:09 -0400)]
Merge #12758: removing confusing mention of UTC from time.time description

Patch by Dylan Sarber.

(Not sure why hg told me it merged pyexpat.c too, it showed no changes)

13 years ago#12758: removing confusing mention of UTC from time.time description
R David Murray [Thu, 15 Mar 2012 07:06:15 +0000 (03:06 -0400)]
#12758: removing confusing mention of UTC from time.time description

Patch by Dylan Sarber.

13 years agoCloses issue #14163 - tkinter: problems with hello doc example
Andrew Svetlov [Thu, 15 Mar 2012 04:41:23 +0000 (21:41 -0700)]
Closes issue #14163 - tkinter: problems with hello doc example

13 years agotry to fix compilation on glibc's with cpu sets (#14296)
Benjamin Peterson [Thu, 15 Mar 2012 03:28:25 +0000 (22:28 -0500)]
try to fix compilation on glibc's with cpu sets (#14296)

13 years agofree AST's dict
Benjamin Peterson [Thu, 15 Mar 2012 02:50:29 +0000 (21:50 -0500)]
free AST's dict

13 years agomerge
Raymond Hettinger [Thu, 15 Mar 2012 01:17:20 +0000 (18:17 -0700)]
merge

13 years agoIssue #13248: Removed docs for two deprecated unittest features. To be conservative...
Raymond Hettinger [Thu, 15 Mar 2012 01:16:18 +0000 (18:16 -0700)]
Issue #13248:  Removed docs for two deprecated unittest features.  To be conservative, the code is left in for one more release.

13 years agomerge heads
Gregory P. Smith [Thu, 15 Mar 2012 01:14:48 +0000 (18:14 -0700)]
merge heads

13 years agomerge heads
Gregory P. Smith [Thu, 15 Mar 2012 01:14:26 +0000 (18:14 -0700)]
merge heads

13 years agoFixes Issue 14234: fix for the previous commit, keep compilation when
Gregory P. Smith [Thu, 15 Mar 2012 01:11:46 +0000 (18:11 -0700)]
Fixes Issue 14234: fix for the previous commit, keep compilation when
using --with-system-expat working when the system expat does not have
salted hash support.

13 years agocpython:Fix the wrong urllib exampls which use str for POST data. Closes Issue11261
Senthil Kumaran [Thu, 15 Mar 2012 01:11:46 +0000 (18:11 -0700)]
cpython:Fix the wrong urllib exampls which use str for POST data. Closes Issue11261

13 years agoFixes Issue 14234: fix for the previous commit, keep compilation when
Gregory P. Smith [Thu, 15 Mar 2012 01:10:37 +0000 (18:10 -0700)]
Fixes Issue 14234: fix for the previous commit, keep compilation when
using --with-system-expat working when the system expat does not have
salted hash support.

13 years agoFix the wrong urllib exampls which use str for POST data. Closes Issue11261
Senthil Kumaran [Thu, 15 Mar 2012 01:08:13 +0000 (18:08 -0700)]
Fix the wrong urllib exampls which use str for POST data. Closes Issue11261

13 years agoIssue #14222: Use the new time.steady() function instead of time.time() for
Victor Stinner [Thu, 15 Mar 2012 00:22:16 +0000 (01:22 +0100)]
Issue #14222: Use the new time.steady() function instead of time.time() for
timeout in queue and threading modules to not be affected of system time
update.

13 years agoIssue #10278: Add an optional strict argument to time.steady(), False by default
Victor Stinner [Thu, 15 Mar 2012 00:17:09 +0000 (01:17 +0100)]
Issue #10278: Add an optional strict argument to time.steady(), False by default

13 years agoIssue #10278: Drop time.monotonic() function, rename time.wallclock() to time.steady()
Victor Stinner [Wed, 14 Mar 2012 23:58:32 +0000 (00:58 +0100)]
Issue #10278: Drop time.monotonic() function, rename time.wallclock() to time.steady()

 * On Mac OS X, time.steady() now uses mach_absolute_time(), a monotonic clock
 * Optimistic change: bet that CLOCK_MONOTONIC and CLOCK_REALTIME are available
   when clock_gettime() is available
 * Rewrite time.steady() documentation

13 years agofix compiler warnings
Benjamin Peterson [Wed, 14 Mar 2012 23:21:35 +0000 (18:21 -0500)]
fix compiler warnings

13 years agoremove get_prefix and set_prefix (#13248)
Benjamin Peterson [Wed, 14 Mar 2012 22:41:15 +0000 (17:41 -0500)]
remove get_prefix and set_prefix (#13248)

13 years agomerge 3.2
Matthias Klose [Wed, 14 Mar 2012 22:27:12 +0000 (23:27 +0100)]
merge 3.2

13 years agomerge heads
Matthias Klose [Wed, 14 Mar 2012 22:26:26 +0000 (23:26 +0100)]
merge heads

13 years agomerge 3.1
Matthias Klose [Wed, 14 Mar 2012 22:26:07 +0000 (23:26 +0100)]
merge 3.1

13 years agomerge heads
Matthias Klose [Wed, 14 Mar 2012 22:24:32 +0000 (23:24 +0100)]
merge heads

13 years agomerge heads
Matthias Klose [Wed, 14 Mar 2012 22:24:11 +0000 (23:24 +0100)]
merge heads

13 years agomerge 3.2
Matthias Klose [Wed, 14 Mar 2012 22:17:31 +0000 (23:17 +0100)]
merge 3.2

13 years agomerge 3.1
Matthias Klose [Wed, 14 Mar 2012 22:14:35 +0000 (23:14 +0100)]
merge 3.1

13 years ago- rename configure.in to configure.ac
Matthias Klose [Wed, 14 Mar 2012 22:10:15 +0000 (23:10 +0100)]
- rename configure.in to configure.ac
- change references from configure.in to configure.ac

13 years agomerge
Gregory P. Smith [Wed, 14 Mar 2012 22:04:57 +0000 (15:04 -0700)]
merge

13 years agomerge heads
Gregory P. Smith [Wed, 14 Mar 2012 22:04:18 +0000 (15:04 -0700)]
merge heads

13 years agomerge heads
Gregory P. Smith [Wed, 14 Mar 2012 22:03:40 +0000 (15:03 -0700)]
merge heads

13 years agomerge (no change)
Gregory P. Smith [Wed, 14 Mar 2012 22:01:57 +0000 (15:01 -0700)]
merge (no change)

13 years agoFixes Issue #14234: CVE-2012-0876: Randomize hashes of xml attributes
Gregory P. Smith [Wed, 14 Mar 2012 22:00:39 +0000 (15:00 -0700)]
Fixes Issue #14234: CVE-2012-0876: Randomize hashes of xml attributes
in the hash table internal to the pyexpat module's copy of the expat
library to avoid a denial of service due to hash collisions.
Patch by David Malcolm with some modifications by the expat project.

13 years agomerge (no change needed in 3.2)
Gregory P. Smith [Wed, 14 Mar 2012 21:58:50 +0000 (14:58 -0700)]
merge (no change needed in 3.2)

13 years agomove the Misc/NEWS entry to the right section.
Gregory P. Smith [Wed, 14 Mar 2012 21:58:22 +0000 (14:58 -0700)]
move the Misc/NEWS entry to the right section.

13 years agoRemoved XXX from unittest.mock docstring and switch to a nicer try...except...finally
Michael Foord [Wed, 14 Mar 2012 21:56:54 +0000 (14:56 -0700)]
Removed XXX from unittest.mock docstring and switch to a nicer try...except...finally

13 years agomerge with 3.2
Georg Brandl [Wed, 14 Mar 2012 21:42:49 +0000 (22:42 +0100)]
merge with 3.2

13 years agoFixes Issue #14234: CVE-2012-0876: Randomize hashes of xml attributes
Gregory P. Smith [Wed, 14 Mar 2012 21:41:00 +0000 (14:41 -0700)]
Fixes Issue #14234: CVE-2012-0876: Randomize hashes of xml attributes
in the hash table internal to the pyexpat module's copy of the expat
library to avoid a denial of service due to hash collisions.
Patch by David Malcolm with some modifications by the expat project.

13 years agoRemove more Python 2 compatibility cruft from unittest.mock
Michael Foord [Wed, 14 Mar 2012 21:40:22 +0000 (14:40 -0700)]
Remove more Python 2 compatibility cruft from unittest.mock

13 years agoCloses #14305: fix typo.
Georg Brandl [Wed, 14 Mar 2012 21:40:08 +0000 (22:40 +0100)]
Closes #14305: fix typo.

13 years agoFixes issue #14234: CVE-2012-0876: Randomize hashes of xml attributes
Gregory P. Smith [Wed, 14 Mar 2012 21:26:55 +0000 (14:26 -0700)]
Fixes issue #14234: CVE-2012-0876: Randomize hashes of xml attributes
in the hash table internal to the pyexpat module's copy of the expat
library to avoid a denial of service due to hash collisions.
Patch by David Malcolm with some modifications by the expat project.

13 years agomerge heads
Senthil Kumaran [Wed, 14 Mar 2012 21:00:31 +0000 (14:00 -0700)]
merge heads

13 years agoFix the buildbot breakdown - issue 10050
Senthil Kumaran [Wed, 14 Mar 2012 20:59:56 +0000 (13:59 -0700)]
Fix the buildbot breakdown - issue 10050

13 years agoMegre from tip
Andrew Svetlov [Wed, 14 Mar 2012 20:46:08 +0000 (13:46 -0700)]
Megre from tip

13 years agoMerge from tip
Andrew Svetlov [Wed, 14 Mar 2012 20:44:02 +0000 (13:44 -0700)]
Merge from tip

13 years agodeprecated the old urllib primitives in 3.3 urllib package - issue 10050
Senthil Kumaran [Wed, 14 Mar 2012 20:43:53 +0000 (13:43 -0700)]
deprecated the old urllib primitives in 3.3 urllib package - issue 10050

13 years agoRemove Python 2 compatibility cruft from unittest.mock
Michael Foord [Wed, 14 Mar 2012 20:30:29 +0000 (13:30 -0700)]
Remove Python 2 compatibility cruft from unittest.mock

13 years agoIssue #14200: Idle shell crash on printing non-BMP unicode character.
Andrew Svetlov [Wed, 14 Mar 2012 20:22:12 +0000 (13:22 -0700)]
Issue #14200: Idle shell crash on printing non-BMP unicode character.

UnicodeEncodeError is raised for strings contains non-BMP characters.
For eval results unicode escaping is used, print() calls display
exception with traceback as usual.

13 years agoAnd another one... mock import fix.
Michael Foord [Wed, 14 Mar 2012 20:01:31 +0000 (13:01 -0700)]
And another one... mock import fix.

13 years agoMerge
Michael Foord [Wed, 14 Mar 2012 19:59:08 +0000 (12:59 -0700)]
Merge

13 years agoFix another mock import
Michael Foord [Wed, 14 Mar 2012 19:58:46 +0000 (12:58 -0700)]
Fix another mock import

13 years agoFix import failure in mock test
Michael Foord [Wed, 14 Mar 2012 19:38:06 +0000 (12:38 -0700)]
Fix import failure in mock test