]>
granicus.if.org Git - python/log
Antoine Pitrou [Thu, 17 May 2012 19:02:54 +0000 (21:02 +0200)]
Make the test completely clean up after itself.
Antoine Pitrou [Thu, 17 May 2012 17:00:35 +0000 (19:00 +0200)]
Move import lock-related functions to a separate doc section.
Antoine Pitrou [Thu, 17 May 2012 16:55:59 +0000 (18:55 +0200)]
Issue #9260: A finer-grained import lock.
Most of the import sequence now uses per-module locks rather than the
global import lock, eliminating well-known issues with threads and imports.
Antoine Pitrou [Thu, 17 May 2012 15:37:02 +0000 (17:37 +0200)]
Add mention of decoding optimizations in the what's new document.
R David Murray [Thu, 17 May 2012 13:14:28 +0000 (09:14 -0400)]
#14823: Simplify threading.Lock.acquire argument discussion.
R David Murray [Thu, 17 May 2012 13:13:30 +0000 (09:13 -0400)]
#14823: Simplify threading.Lock.acquire argument discussion.
Stefan Krah [Wed, 16 May 2012 22:21:57 +0000 (00:21 +0200)]
Issue 14813: Fix Visual Studio 2008 build after the move into the PC/VS9.0
directory.
Antoine Pitrou [Wed, 16 May 2012 19:40:01 +0000 (21:40 +0200)]
Issue #14780: urllib.request.urlopen() now has a `cadefault` argument to use the default certificate store.
Initial patch by James Oakley.
Stefan Krah [Wed, 16 May 2012 18:41:56 +0000 (20:41 +0200)]
Issue #14779: Get sizeof(void *) directly rather than relying on sysconfig.
Stefan Krah [Wed, 16 May 2012 18:20:03 +0000 (20:20 +0200)]
Fix Visual Studio warning.
Stefan Krah [Wed, 16 May 2012 18:10:21 +0000 (20:10 +0200)]
Changes in _mpd_qexp():
-----------------------
1) Reduce the number of iterations in the Horner scheme for operands with
a negative adjusted exponent. Previously the number was overestimated
quite generously.
2) The function _mpd_get_exp_iterations() now has an ACL2 proof and
is rewritten accordingly.
3) The proof relies on abs(op) > 9 * 10**(-prec-1), so operands without
that property are now handled by the new function _mpd_qexp_check_one().
4) The error analysis for the evaluation of the truncated Taylor series
in Hull&Abrham's paper relies on the fact that the reduced operand
'r' has fewer than context.prec digits.
Since the operands may have more than context.prec digits, a new ACL2
proof covers the case that r.digits > context.prec. To facilitate the
proof, the Horner step now uses fma instead of rounding twice in
multiply/add.
Changes in mpd_qexp():
----------------------
1) Fix a bound in the correct rounding loop that was too optimistic. In
practice results were always correctly rounded, because it is unlikely
that the error in _mpd_qexp() ever reaches the theoretical maximum.
Hynek Schlawack [Wed, 16 May 2012 17:08:36 +0000 (19:08 +0200)]
#14692 Fix json docs to reflect changes in json.load
The behaviour of the parse_constant callback changed insofar that 'null',
'true', 'false' don't trigger its call anymore.
Patch by Serhiy Storchaka
Hynek Schlawack [Wed, 16 May 2012 17:01:04 +0000 (19:01 +0200)]
#14692 Fix json docs to reflect changes in json.load
The behaviour of the parse_constant callback changed insofar that 'null',
'true', 'false' don't trigger its call anymore.
Patch by Serhiy Storchaka
Antoine Pitrou [Wed, 16 May 2012 14:41:26 +0000 (16:41 +0200)]
Issue #14693: Under non-Windows platforms, hashlib's fallback modules are always compiled, even if OpenSSL is present at build time.
Giampaolo Rodola' [Wed, 16 May 2012 14:03:07 +0000 (16:03 +0200)]
merge heads
Giampaolo Rodola' [Wed, 16 May 2012 14:01:59 +0000 (16:01 +0200)]
#14807: fix BB failures on Windows - avoid to to rely too many details of the mode string.
Antoine Pitrou [Wed, 16 May 2012 13:06:00 +0000 (15:06 +0200)]
Forward port additional tests from 2.7 (issue #14829).
Antoine Pitrou [Wed, 16 May 2012 13:01:40 +0000 (15:01 +0200)]
Forward port additional tests from 2.7 (issue #14829).
Antoine Pitrou [Wed, 16 May 2012 12:42:38 +0000 (14:42 +0200)]
More .hgignore additions for new VS build files
Antoine Pitrou [Wed, 16 May 2012 12:39:36 +0000 (14:39 +0200)]
Issue #14829: Fix bisect and range() indexing with large indices (>= 2 ** 32) under 64-bit Windows.
(untested, because of Windows build issues under 3.x)
Antoine Pitrou [Wed, 16 May 2012 12:37:54 +0000 (14:37 +0200)]
Issue #14829: Fix bisect and range() indexing with large indices (>= 2 ** 32) under 64-bit Windows.
Antoine Pitrou [Wed, 16 May 2012 10:58:04 +0000 (12:58 +0200)]
Avoid "warning: no newline at end of file" in importlib.h.
Antoine Pitrou [Wed, 16 May 2012 10:51:55 +0000 (12:51 +0200)]
Fix build failure.
Antoine Pitrou [Wed, 16 May 2012 09:33:08 +0000 (11:33 +0200)]
Issue #14732: The _csv module now uses PEP 3121 module initialization.
Patch by Robin Schreiber.
Antoine Pitrou [Wed, 16 May 2012 09:31:13 +0000 (11:31 +0200)]
Update .hgignore for new MSVC files
Eric V. Smith [Wed, 16 May 2012 08:48:04 +0000 (04:48 -0400)]
Cleanup so subsequent tests won't fail. Needs to be moved into a support routine (see 14715).
Hynek Schlawack [Wed, 16 May 2012 07:51:07 +0000 (09:51 +0200)]
#14809: Add HTTP status codes from RFC 6585 to http.server and http.client
Patch by EungJun Yi.
Eric V. Smith [Wed, 16 May 2012 08:49:22 +0000 (04:49 -0400)]
Merge from 3.2.
R David Murray [Wed, 16 May 2012 02:13:55 +0000 (22:13 -0400)]
R David Murray [Wed, 16 May 2012 02:13:29 +0000 (22:13 -0400)]
R David Murray [Wed, 16 May 2012 02:09:14 +0000 (22:09 -0400)]
merge #
1440472 : Explain that email parser/generator isn't *quite* "idempotent"
R David Murray [Wed, 16 May 2012 02:07:52 +0000 (22:07 -0400)]
#
1440472 : Explain that email parser/generator isn't *quite* "idempotent"
Ned Deily [Wed, 16 May 2012 01:13:02 +0000 (18:13 -0700)]
Issue #14777: merge
Ned Deily [Wed, 16 May 2012 01:08:11 +0000 (18:08 -0700)]
Issue #14777: In an X11 windowing environment, tkinter may return
undecoded UTF-8 bytes as a string when accessing the Tk clipboard.
Modify clipboad_get() to first request type UTF8_STRING when no
specific type is requested in an X11 windowing environment, falling
back to the current default type STRING if that fails.
Original patch by Thomas Kluyver.
Eric V. Smith [Wed, 16 May 2012 00:46:06 +0000 (20:46 -0400)]
Merge from 3.2.
Eric V. Smith [Wed, 16 May 2012 00:44:06 +0000 (20:44 -0400)]
Issue #14817: Add rudimentary tests for pkgutil.extend_path.
Antoine Pitrou [Tue, 15 May 2012 21:48:04 +0000 (23:48 +0200)]
Issue #14624: UTF-16 decoding is now 3x to 4x faster on various inputs.
Patch by Serhiy Storchaka.
Giampaolo Rodola' [Tue, 15 May 2012 20:21:01 +0000 (22:21 +0200)]
merge heads
Giampaolo Rodola' [Tue, 15 May 2012 20:20:10 +0000 (22:20 +0200)]
#14807: fix bb failure due to symlink test relying on hard-coded permissions
Charles-François Natali [Tue, 15 May 2012 19:00:32 +0000 (21:00 +0200)]
Add versionadded for hmac.secure_compare().
Martin v. Löwis [Tue, 15 May 2012 18:04:25 +0000 (20:04 +0200)]
Stop including gzio in the build; it's not used.
Benjamin Peterson [Tue, 15 May 2012 17:11:33 +0000 (10:11 -0700)]
merge heads
Benjamin Peterson [Tue, 15 May 2012 17:10:27 +0000 (10:10 -0700)]
use Py_ssize_t for ast sequence lengths
Hynek Schlawack [Tue, 15 May 2012 16:40:17 +0000 (18:40 +0200)]
Add two more sorts to test_os.WalkTests I've missed before
Senthil Kumaran [Tue, 15 May 2012 16:07:24 +0000 (00:07 +0800)]
merge heads
Senthil Kumaran [Tue, 15 May 2012 16:03:29 +0000 (00:03 +0800)]
Issue12541 - Add UserWarning for unquoted realms
Senthil Kumaran [Tue, 15 May 2012 15:59:42 +0000 (23:59 +0800)]
Issue12541 - Add UserWarning for unquoted realms
Hynek Schlawack [Tue, 15 May 2012 15:55:38 +0000 (17:55 +0200)]
Sort file list in test_os.WalkTests
Adding new files into the tree lead to buildbot fails as the order wasn't
deterministic.
Senthil Kumaran [Tue, 15 May 2012 14:42:11 +0000 (22:42 +0800)]
merge heads
Senthil Kumaran [Tue, 15 May 2012 14:39:17 +0000 (22:39 +0800)]
merge from 3.2 - Issue #12541: Be lenient with quotes around Realm field of HTTP Basic Authentation in urllib2.
Hynek Schlawack [Tue, 15 May 2012 14:32:21 +0000 (16:32 +0200)]
#14773: Fix os.fwalk() failing on dangling symlinks
Senthil Kumaran [Tue, 15 May 2012 14:30:25 +0000 (22:30 +0800)]
Issue #12541: Be lenient with quotes around Realm field of HTTP Basic Authentation in urllib2.
G: changed Misc/NEWS
Giampaolo Rodola' [Tue, 15 May 2012 13:46:00 +0000 (15:46 +0200)]
remove unused import in asyncore doc
Giampaolo Rodola' [Tue, 15 May 2012 13:30:25 +0000 (15:30 +0200)]
#14807: move undocumented tarfile.filemode() to stat.filemode(). Add tarfile.filemode alias with deprecation warning.
Martin v. Löwis [Tue, 15 May 2012 12:52:36 +0000 (14:52 +0200)]
Martin v. Löwis [Tue, 15 May 2012 12:45:03 +0000 (14:45 +0200)]
Widen ASDL sequences to Py_ssize_t lengths to better match PEP 353.
Martin v. Löwis [Tue, 15 May 2012 12:34:58 +0000 (14:34 +0200)]
Add safecase to silence Win64 warning.
Martin v. Löwis [Tue, 15 May 2012 12:06:21 +0000 (14:06 +0200)]
Silence VS 2010 warning on loss of precision (_int64 -> _int32).
This is safe because the actual value is already range-checked.
Martin v. Löwis [Tue, 15 May 2012 11:45:49 +0000 (13:45 +0200)]
Silence VS 2010 signed/unsigned warnings.
Benjamin Peterson [Tue, 15 May 2012 05:17:34 +0000 (22:17 -0700)]
apparently importlib.h wants to be updated
Benjamin Peterson [Tue, 15 May 2012 05:09:31 +0000 (22:09 -0700)]
PEP 415: Implement suppression of __context__ display with an exception attribute
This replaces the original PEP 409 implementation. See #14133.
R David Murray [Tue, 15 May 2012 02:19:10 +0000 (22:19 -0400)]
Merge #14766: Add correct algorithm for when a 'time' object is naive.
This patch also clarifies the definition of Naive and Aware.
Original patch by Greg Weller, I modified the first hunk
somewhat to make the exposition even clearer (I hope).
R David Murray [Tue, 15 May 2012 02:17:23 +0000 (22:17 -0400)]
#14766: Reflow the altered paragraphs.
R David Murray [Tue, 15 May 2012 02:14:46 +0000 (22:14 -0400)]
#14766: Add correct algorithm for when a 'time' object is naive.
This patch also clarifies the definition of Naive and Aware.
Original patch by Greg Weller, I modified the first hunk
somewhat to make the exposition even clearer (I hope).
Brian Curtin [Tue, 15 May 2012 00:43:16 +0000 (19:43 -0500)]
Merge 3.2
Brian Curtin [Tue, 15 May 2012 00:42:36 +0000 (19:42 -0500)]
bsddb never existed in 3.x, no need to keep downloading sleepycat
Antoine Pitrou [Mon, 14 May 2012 17:45:27 +0000 (19:45 +0200)]
Followup to issue #14157: respect the relative ordering of values produced by time.strptime().
Patch by Hynek.
Antoine Pitrou [Mon, 14 May 2012 17:44:59 +0000 (19:44 +0200)]
Followup to issue #14157: respect the relative ordering of values produced by time.strptime().
Patch by Hynek.
Martin v. Löwis [Mon, 14 May 2012 16:23:44 +0000 (18:23 +0200)]
Don't build xxlimited in debug mode.
Martin v. Löwis [Mon, 14 May 2012 16:19:16 +0000 (18:19 +0200)]
merge 3.2
Martin v. Löwis [Mon, 14 May 2012 16:18:07 +0000 (18:18 +0200)]
Stop deleting non-existing bytecode files.
Martin v. Löwis [Mon, 14 May 2012 14:51:35 +0000 (16:51 +0200)]
Upgrade sqlite to 3.7.12.
Giampaolo Rodola' [Mon, 14 May 2012 12:53:33 +0000 (14:53 +0200)]
Issue 14800: add comments explaining stat.py constants + docstring for S_* functions.
Antoine Pitrou [Mon, 14 May 2012 12:44:37 +0000 (14:44 +0200)]
Use size_t, not ssize_t (issue #14801).
Antoine Pitrou [Mon, 14 May 2012 12:43:25 +0000 (14:43 +0200)]
Remove tab characters
Antoine Pitrou [Mon, 14 May 2012 12:43:03 +0000 (14:43 +0200)]
Use size_t, not ssize_t (issue #14801).
Martin v. Löwis [Mon, 14 May 2012 12:17:20 +0000 (14:17 +0200)]
null merge
Martin v. Löwis [Mon, 14 May 2012 12:13:48 +0000 (14:13 +0200)]
Upgrade bzip2 to 1.0.6.
Martin v. Löwis [Mon, 14 May 2012 12:12:00 +0000 (14:12 +0200)]
Relabel bzip2 filters.
Martin v. Löwis [Mon, 14 May 2012 11:52:03 +0000 (13:52 +0200)]
Upgrade bzip2 to 1.0.6.
Lars Gustäbel [Mon, 14 May 2012 11:18:16 +0000 (13:18 +0200)]
Issue #13815: Resurrect the ExFileObject class.
After a discussion in the tracker, the decision was made to keep the
ExFileObject class after all as a subclass of io.BufferedReader instead of
removing it completely.
Ezio Melotti [Mon, 14 May 2012 10:32:26 +0000 (13:32 +0300)]
#14405: merge with 3.2.
Ezio Melotti [Mon, 14 May 2012 10:26:45 +0000 (13:26 +0300)]
#14405: remove outdated/broken/duplicate links.
Martin v. Löwis [Mon, 14 May 2012 10:22:08 +0000 (12:22 +0200)]
Fix release build settings.
Brian Curtin [Mon, 14 May 2012 03:45:57 +0000 (22:45 -0500)]
Update the clean and MSI scripts for VS2010
Brian Curtin [Sun, 13 May 2012 23:59:26 +0000 (18:59 -0500)]
Correct PlatformTarget->Platform usage for building the solution
Brian Curtin [Sun, 13 May 2012 23:51:43 +0000 (18:51 -0500)]
Convert build slave scripts to work with VS2010
Brian Curtin [Sun, 13 May 2012 21:16:09 +0000 (16:16 -0500)]
changeset: 76969:
0cbe1099226d
branch: vs2010
tag: tip
user: Brian Curtin <brian@python.org>
date: Sun May 13 16:15:11 2012 -0500
summary: Changes to allow Profile Guided Optimization builds to succeed on VS2010
Mark Dickinson [Sun, 13 May 2012 20:02:22 +0000 (21:02 +0100)]
Issue #14245: Merge changes from 3.2.
Mark Dickinson [Sun, 13 May 2012 20:00:35 +0000 (21:00 +0100)]
Issue #14245: Improve floating-point entry in FAQ. Thanks Zbyszek Jędrzejewski-Szmek for some of the wording.
Antoine Pitrou [Sun, 13 May 2012 18:48:01 +0000 (20:48 +0200)]
Issue #14417: Mutating a dict during lookup now restarts the lookup instead of raising a RuntimeError (undoes issue #14205).
Charles-François Natali [Sun, 13 May 2012 17:53:07 +0000 (19:53 +0200)]
Issue #14532: Add a secure_compare() helper to the hmac module, to mitigate
timing attacks. Patch by Jon Oberheide.
Brett Cannon [Sun, 13 May 2012 17:45:09 +0000 (13:45 -0400)]
Add importlib.util.resolve_name().
Brian Curtin [Sun, 13 May 2012 17:40:15 +0000 (12:40 -0500)]
Move out VS9 project files to PC\VS9.0 folder. Fixes #13210
Ezio Melotti [Sun, 13 May 2012 17:17:40 +0000 (20:17 +0300)]
#14770: merge with 3.2.
Ezio Melotti [Sun, 13 May 2012 17:14:04 +0000 (20:14 +0300)]
#14770: improve the library FAQ.
Brett Cannon [Sun, 13 May 2012 17:04:21 +0000 (13:04 -0400)]
Issue #13959: Document imp.find_module/load_module as deprecated.
The code itself does not raise a DeprecationWarning as the functions
are technically fine, it's just a bad API. Unfortunately experience
has shown that the terrible API has been exposed in various places,
necessitating that it stick around probably until py4k comes around
since it is such a shift to move over to importlib.find_loader().
Brian Curtin [Sun, 13 May 2012 16:19:23 +0000 (11:19 -0500)]
Fix #13210. Port the Windows build from VS2008 to VS2010.
Sandro Tosi [Sun, 13 May 2012 09:01:36 +0000 (11:01 +0200)]
merge with 3.2
Sandro Tosi [Sun, 13 May 2012 09:01:20 +0000 (11:01 +0200)]
Issue #14793: fix grammar in bytes object paragraph; patch by Tshepang Lekhonkhobe