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.
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.
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.
(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
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.
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.
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.
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
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.
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.
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.
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.
Antoine Pitrou [Wed, 14 Mar 2012 16:47:11 +0000 (17:47 +0100)]
Issue #13839: When invoked on the command-line, the pstats module now accepts several filenames of profile stat files and merges them all.
Patch by Matt Joiner.