]> granicus.if.org Git - python/log
python
12 years agoremove unused import in asyncore doc
Giampaolo Rodola' [Tue, 15 May 2012 13:46:00 +0000 (15:46 +0200)]
remove unused import in asyncore doc

12 years ago#14807: move undocumented tarfile.filemode() to stat.filemode(). Add tarfile.filemode...
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.

12 years agoDocument f4d7ad6c9d6e.
Martin v. Löwis [Tue, 15 May 2012 12:52:36 +0000 (14:52 +0200)]
Document f4d7ad6c9d6e.

12 years agoWiden ASDL sequences to Py_ssize_t lengths to better match PEP 353.
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.

12 years agoAdd safecase to silence Win64 warning.
Martin v. Löwis [Tue, 15 May 2012 12:34:58 +0000 (14:34 +0200)]
Add safecase to silence Win64 warning.

12 years agoSilence VS 2010 warning on loss of precision (_int64 -> _int32).
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.

12 years agoSilence VS 2010 signed/unsigned warnings.
Martin v. Löwis [Tue, 15 May 2012 11:45:49 +0000 (13:45 +0200)]
Silence VS 2010 signed/unsigned warnings.

12 years agoapparently importlib.h wants to be updated
Benjamin Peterson [Tue, 15 May 2012 05:17:34 +0000 (22:17 -0700)]
apparently importlib.h wants to be updated

12 years agoPEP 415: Implement suppression of __context__ display with an exception attribute
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.

12 years agoMerge #14766: Add correct algorithm for when a 'time' object is naive.
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).

12 years ago#14766: Reflow the altered paragraphs.
R David Murray [Tue, 15 May 2012 02:17:23 +0000 (22:17 -0400)]
#14766: Reflow the altered paragraphs.

12 years ago#14766: Add correct algorithm for when a 'time' object is naive.
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).

12 years agoMerge 3.2
Brian Curtin [Tue, 15 May 2012 00:43:16 +0000 (19:43 -0500)]
Merge 3.2

12 years agobsddb never existed in 3.x, no need to keep downloading sleepycat
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

12 years agoFollowup to issue #14157: respect the relative ordering of values produced by time...
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.

12 years agoFollowup to issue #14157: respect the relative ordering of values produced by time...
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.

12 years agoDon't build xxlimited in debug mode.
Martin v. Löwis [Mon, 14 May 2012 16:23:44 +0000 (18:23 +0200)]
Don't build xxlimited in debug mode.

12 years agomerge 3.2
Martin v. Löwis [Mon, 14 May 2012 16:19:16 +0000 (18:19 +0200)]
merge 3.2

12 years agoStop deleting non-existing bytecode files.
Martin v. Löwis [Mon, 14 May 2012 16:18:07 +0000 (18:18 +0200)]
Stop deleting non-existing bytecode files.

12 years agoUpgrade sqlite to 3.7.12.
Martin v. Löwis [Mon, 14 May 2012 14:51:35 +0000 (16:51 +0200)]
Upgrade sqlite to 3.7.12.

12 years agoIssue 14800: add comments explaining stat.py constants + docstring for S_* functions.
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.

12 years agoUse size_t, not ssize_t (issue #14801).
Antoine Pitrou [Mon, 14 May 2012 12:44:37 +0000 (14:44 +0200)]
Use size_t, not ssize_t (issue #14801).

12 years agoRemove tab characters
Antoine Pitrou [Mon, 14 May 2012 12:43:25 +0000 (14:43 +0200)]
Remove tab characters

12 years agoUse size_t, not ssize_t (issue #14801).
Antoine Pitrou [Mon, 14 May 2012 12:43:03 +0000 (14:43 +0200)]
Use size_t, not ssize_t (issue #14801).

12 years agonull merge
Martin v. Löwis [Mon, 14 May 2012 12:17:20 +0000 (14:17 +0200)]
null merge

12 years agoUpgrade bzip2 to 1.0.6.
Martin v. Löwis [Mon, 14 May 2012 12:13:48 +0000 (14:13 +0200)]
Upgrade bzip2 to 1.0.6.

12 years agoRelabel bzip2 filters.
Martin v. Löwis [Mon, 14 May 2012 12:12:00 +0000 (14:12 +0200)]
Relabel bzip2 filters.

12 years agoUpgrade bzip2 to 1.0.6.
Martin v. Löwis [Mon, 14 May 2012 11:52:03 +0000 (13:52 +0200)]
Upgrade bzip2 to 1.0.6.

12 years agoIssue #13815: Resurrect the ExFileObject class.
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.

12 years ago#14405: merge with 3.2.
Ezio Melotti [Mon, 14 May 2012 10:32:26 +0000 (13:32 +0300)]
#14405: merge with 3.2.

12 years ago#14405: remove outdated/broken/duplicate links.
Ezio Melotti [Mon, 14 May 2012 10:26:45 +0000 (13:26 +0300)]
#14405: remove outdated/broken/duplicate links.

12 years agoFix release build settings.
Martin v. Löwis [Mon, 14 May 2012 10:22:08 +0000 (12:22 +0200)]
Fix release build settings.

12 years agoUpdate the clean and MSI scripts for VS2010
Brian Curtin [Mon, 14 May 2012 03:45:57 +0000 (22:45 -0500)]
Update the clean and MSI scripts for VS2010

12 years agoCorrect PlatformTarget->Platform usage for building the solution
Brian Curtin [Sun, 13 May 2012 23:59:26 +0000 (18:59 -0500)]
Correct PlatformTarget->Platform usage for building the solution

12 years agoConvert build slave scripts to work with VS2010
Brian Curtin [Sun, 13 May 2012 23:51:43 +0000 (18:51 -0500)]
Convert build slave scripts to work with VS2010

12 years agochangeset: 76969:0cbe1099226d
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

12 years agoIssue #14245: Merge changes from 3.2.
Mark Dickinson [Sun, 13 May 2012 20:02:22 +0000 (21:02 +0100)]
Issue #14245: Merge changes from 3.2.

12 years agoIssue #14245: Improve floating-point entry in FAQ. Thanks Zbyszek Jędrzejewski-Szmek...
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.

12 years agoIssue #14417: Mutating a dict during lookup now restarts the lookup instead of raisin...
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).

12 years agoIssue #14532: Add a secure_compare() helper to the hmac module, to mitigate
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.

12 years agoAdd importlib.util.resolve_name().
Brett Cannon [Sun, 13 May 2012 17:45:09 +0000 (13:45 -0400)]
Add importlib.util.resolve_name().

12 years agoMove out VS9 project files to PC\VS9.0 folder. Fixes #13210
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

12 years ago#14770: merge with 3.2.
Ezio Melotti [Sun, 13 May 2012 17:17:40 +0000 (20:17 +0300)]
#14770: merge with 3.2.

12 years ago#14770: improve the library FAQ.
Ezio Melotti [Sun, 13 May 2012 17:14:04 +0000 (20:14 +0300)]
#14770: improve the library FAQ.

12 years agoIssue #13959: Document imp.find_module/load_module as deprecated.
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().

12 years agoFix #13210. Port the Windows build from VS2008 to VS2010.
Brian Curtin [Sun, 13 May 2012 16:19:23 +0000 (11:19 -0500)]
Fix #13210. Port the Windows build from VS2008 to VS2010.

12 years agomerge with 3.2
Sandro Tosi [Sun, 13 May 2012 09:01:36 +0000 (11:01 +0200)]
merge with 3.2

12 years agoIssue #14793: fix grammar in bytes object paragraph; patch by Tshepang Lekhonkhobe
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

12 years agoIssue #14366: Support lzma compression in zip files.
Martin v. Löwis [Sun, 13 May 2012 08:06:36 +0000 (10:06 +0200)]
Issue #14366: Support lzma compression in zip files.
Patch by Serhiy Storchaka.

12 years agoMerge
Antoine Pitrou [Sat, 12 May 2012 21:44:59 +0000 (23:44 +0200)]
Merge

12 years agoMerge
Antoine Pitrou [Sat, 12 May 2012 21:43:55 +0000 (23:43 +0200)]
Merge

12 years agoMake the reference counting of dictkeys objects participate in refleak hunting
Antoine Pitrou [Sat, 12 May 2012 21:43:44 +0000 (23:43 +0200)]
Make the reference counting of dictkeys objects participate in refleak hunting
(issue #13903).

12 years agoIssue #13959: Introduce importlib.find_loader().
Brett Cannon [Sat, 12 May 2012 21:43:17 +0000 (17:43 -0400)]
Issue #13959: Introduce importlib.find_loader().

The long-term goal is to deprecate imp.find_module() in favour of this
API, but it will take some time as some APIs explicitly return/use what
imp.find_module() returns.

12 years agoRemove a now worthless test.
Brett Cannon [Sat, 12 May 2012 21:40:28 +0000 (17:40 -0400)]
Remove a now worthless test.

12 years agoTry to fix test_shutil failure under Fedora - patch by Hynek.
Antoine Pitrou [Sat, 12 May 2012 21:37:35 +0000 (23:37 +0200)]
Try to fix test_shutil failure under Fedora - patch by Hynek.

12 years agomerge with 3.2
Sandro Tosi [Sat, 12 May 2012 21:30:05 +0000 (23:30 +0200)]
merge with 3.2

12 years agocorrectly define what 'fill' could be; thanks to Leland Hulbert from docs@
Sandro Tosi [Sat, 12 May 2012 21:29:32 +0000 (23:29 +0200)]
correctly define what 'fill' could be; thanks to Leland Hulbert from docs@

12 years agoIssue #14779: Do not use get_config_var('SIZEOF_VOID_P') on OS X 64-/32-bit
Stefan Krah [Sat, 12 May 2012 21:11:51 +0000 (23:11 +0200)]
Issue #14779: Do not use get_config_var('SIZEOF_VOID_P') on OS X 64-/32-bit
universal: it returns a meaningless result. Use sys.maxsize instead of
platform.architecture as a fallback. Patch by Ned Deily.

12 years agoMerge
Antoine Pitrou [Sat, 12 May 2012 17:02:47 +0000 (19:02 +0200)]
Merge

12 years agoIssue #14082: shutil.copy2() now copies extended attributes, if possible.
Antoine Pitrou [Sat, 12 May 2012 17:02:01 +0000 (19:02 +0200)]
Issue #14082: shutil.copy2() now copies extended attributes, if possible.
Patch by Hynek Schlawack.

12 years agoFix refleaks introduced by 83da67651687.
Antoine Pitrou [Sat, 12 May 2012 13:51:51 +0000 (15:51 +0200)]
Fix refleaks introduced by 83da67651687.

12 years agoFix logic error introduced by 83da67651687.
Antoine Pitrou [Sat, 12 May 2012 13:49:07 +0000 (15:49 +0200)]
Fix logic error introduced by 83da67651687.

12 years agoRemove uninitialized compiler warning.
Ross Lagerwall [Sat, 12 May 2012 06:30:33 +0000 (08:30 +0200)]
Remove uninitialized compiler warning.

12 years agosimplify by shortcutting when the kind of the needle is larger than the haystack
Benjamin Peterson [Fri, 11 May 2012 22:41:20 +0000 (17:41 -0500)]
simplify by shortcutting when the kind of the needle is larger than the haystack

12 years agoIssue #13959: Have
Brett Cannon [Fri, 11 May 2012 18:48:41 +0000 (14:48 -0400)]
Issue #13959: Have
importlib.abc.FileLoader.load_module()/get_filename() and
importlib.machinery.ExtensionFileLoader.load_module() have their
single argument be optional as the loader's constructor has all the
ncessary information.

This allows for the deprecation of
imp.load_source()/load_compile()/load_package().

12 years agoDeprecate the imp constants related to imp.get_suffixes().
Brett Cannon [Fri, 11 May 2012 18:27:29 +0000 (14:27 -0400)]
Deprecate the imp constants related to imp.get_suffixes().

12 years agoUpdate importlib.h
Brett Cannon [Fri, 11 May 2012 17:11:02 +0000 (13:11 -0400)]
Update importlib.h

12 years agoIssue #13959: Deprecate imp.get_suffixes() for new attributes on
Brett Cannon [Fri, 11 May 2012 16:58:42 +0000 (12:58 -0400)]
Issue #13959: Deprecate imp.get_suffixes() for new attributes on
importlib.machinery that provide the suffix details for import.
The attributes were not put on imp so as to compartmentalize
everything importlib needs for setting up imports in
importlib.machinery.

This also led to an indirect deprecation of inspect.getmoduleinfo() as
it directly returned imp.get_suffix's returned tuple which no longer
makes sense.

12 years agoIssue #14764: Update importlib.test.benchmark to work in a world where
Brett Cannon [Fri, 11 May 2012 15:12:00 +0000 (11:12 -0400)]
Issue #14764: Update importlib.test.benchmark to work in a world where
import machinery is no longer implicit.

12 years agomerge
Ned Deily [Fri, 11 May 2012 01:11:30 +0000 (18:11 -0700)]
merge

12 years agoIssue #14662: Prevent shutil failures on OS X when destination does not
Ned Deily [Fri, 11 May 2012 00:21:23 +0000 (17:21 -0700)]
Issue #14662: Prevent shutil failures on OS X when destination does not
support chflag operations.  (Patch by Hynek Schlawack)

12 years agoIssue #14662: Prevent shutil failures on OS X when destination does not
Ned Deily [Fri, 11 May 2012 00:05:19 +0000 (17:05 -0700)]
Issue #14662: Prevent shutil failures on OS X when destination does not
support chflag operations.  (Patch by Hynek Schlawack)

12 years agouse yield from
Benjamin Peterson [Thu, 10 May 2012 21:17:35 +0000 (16:17 -0500)]
use yield from

12 years agoIssue #14157: Fix time.strptime failing without a year on February 29th.
Antoine Pitrou [Thu, 10 May 2012 18:18:46 +0000 (20:18 +0200)]
Issue #14157: Fix time.strptime failing without a year on February 29th.
Patch by Hynek Schlawack.

12 years agoIssue #14157: Fix time.strptime failing without a year on February 29th.
Antoine Pitrou [Thu, 10 May 2012 18:17:46 +0000 (20:17 +0200)]
Issue #14157: Fix time.strptime failing without a year on February 29th.
Patch by Hynek Schlawack.

12 years agoIssue #14753: Make multiprocessing treat negative timeouts as it did in 3.2
Richard Oudkerk [Thu, 10 May 2012 15:11:12 +0000 (16:11 +0100)]
Issue #14753: Make multiprocessing treat negative timeouts as it did in 3.2

In Python 3.2 and earlier, Process.join() and Connection.poll()
treated negative timeouts as zero timeouts.  Earlier versions from
the 3.3 line of development treat them as infinite timeouts.

The patch reverts to the old behaviour.

12 years agoIssue #14738: Speed-up UTF-8 decoding on non-ASCII data. Patch by Serhiy Storchaka.
Antoine Pitrou [Thu, 10 May 2012 14:36:02 +0000 (16:36 +0200)]
Issue #14738: Speed-up UTF-8 decoding on non-ASCII data.  Patch by Serhiy Storchaka.

12 years agoSome nits in the pickle docs.
Antoine Pitrou [Thu, 10 May 2012 13:38:47 +0000 (15:38 +0200)]
Some nits in the pickle docs.

12 years agoSome nits in the pickle docs.
Antoine Pitrou [Thu, 10 May 2012 13:38:30 +0000 (15:38 +0200)]
Some nits in the pickle docs.

12 years agoRemoved outdated statement about pickle's and marshal's relative performance.
Antoine Pitrou [Thu, 10 May 2012 13:18:40 +0000 (15:18 +0200)]
Removed outdated statement about pickle's and marshal's relative performance.

12 years agoRemoved outdated statement about pickle's and marshal's relative performance.
Antoine Pitrou [Thu, 10 May 2012 13:18:20 +0000 (15:18 +0200)]
Removed outdated statement about pickle's and marshal's relative performance.

12 years ago#14763: merge with 3.2.
Ezio Melotti [Thu, 10 May 2012 12:33:13 +0000 (15:33 +0300)]
#14763: merge with 3.2.

12 years ago#14763: document default maxsplit value for str.split.
Ezio Melotti [Thu, 10 May 2012 12:30:42 +0000 (15:30 +0300)]
#14763: document default maxsplit value for str.split.

12 years agoMERGE: Closes #14768: os.path.expanduser('~/a') doesn't works correctly when HOME...
Jesus Cea [Thu, 10 May 2012 03:16:41 +0000 (05:16 +0200)]
MERGE: Closes #14768: os.path.expanduser('~/a') doesn't works correctly when HOME is '/'

12 years agoCloses #14768: os.path.expanduser('~/a') doesn't works correctly when HOME is '/'
Jesus Cea [Thu, 10 May 2012 03:10:50 +0000 (05:10 +0200)]
Closes #14768: os.path.expanduser('~/a') doesn't works correctly when HOME is '/'

12 years agoRename unicode_write_t structure and its methods to "_PyUnicodeWriter"
Victor Stinner [Wed, 9 May 2012 20:25:00 +0000 (22:25 +0200)]
Rename unicode_write_t structure and its methods to "_PyUnicodeWriter"

12 years agoIssue #14744: Inline unicode_writer_write_char() and unicode_write_str()
Victor Stinner [Wed, 9 May 2012 20:24:08 +0000 (22:24 +0200)]
Issue #14744: Inline unicode_writer_write_char() and unicode_write_str()

Optimize also PyUnicode_Format(): call unicode_writer_prepare() only once
per argument.

12 years agoNull merge for issue #14761.
Antoine Pitrou [Wed, 9 May 2012 11:28:05 +0000 (13:28 +0200)]
Null merge for issue #14761.

12 years agoIssue #14761: Fix potential leak on an error case in the import machinery.
Antoine Pitrou [Wed, 9 May 2012 11:24:31 +0000 (13:24 +0200)]
Issue #14761: Fix potential leak on an error case in the import machinery.

12 years agoIssue #14746: Remove redundant paragraphs from skipitem() in Python/getargs.c.
Larry Hastings [Wed, 9 May 2012 06:52:03 +0000 (23:52 -0700)]
Issue #14746: Remove redundant paragraphs from skipitem() in Python/getargs.c.

12 years agoMerge: Improve the grammar of a non-sentence.
R David Murray [Wed, 9 May 2012 01:29:06 +0000 (21:29 -0400)]
Merge: Improve the grammar of a non-sentence.

12 years agoImprove the grammar of a non-sentence.
R David Murray [Wed, 9 May 2012 01:28:24 +0000 (21:28 -0400)]
Improve the grammar of a non-sentence.

12 years agounicode_writer_finish() checks string consistency
Victor Stinner [Wed, 9 May 2012 01:24:14 +0000 (03:24 +0200)]
unicode_writer_finish() checks string consistency

12 years agoIssue #14727: Fix race in test_multiprocessing
Richard Oudkerk [Tue, 8 May 2012 21:24:47 +0000 (22:24 +0100)]
Issue #14727: Fix race in test_multiprocessing

12 years agoMinor fix for test_multiprocessing
Richard Oudkerk [Tue, 8 May 2012 15:08:07 +0000 (16:08 +0100)]
Minor fix for test_multiprocessing

12 years agomerge 3.2 (#14752)
Benjamin Peterson [Tue, 8 May 2012 13:22:45 +0000 (09:22 -0400)]
merge 3.2 (#14752)

12 years agofix possible refleak (closes #14752)
Benjamin Peterson [Tue, 8 May 2012 13:22:24 +0000 (09:22 -0400)]
fix possible refleak (closes #14752)

12 years agoMerge from 3.2. Issue #14749: Add support for 'Z' to skipitem().
Larry Hastings [Tue, 8 May 2012 10:54:05 +0000 (03:54 -0700)]
Merge from 3.2.  Issue #14749: Add support for 'Z' to skipitem().

12 years agoIssue #14749: Add support for 'Z' to skipitem() in Python/getargs.c.
Larry Hastings [Tue, 8 May 2012 10:51:18 +0000 (03:51 -0700)]
Issue #14749: Add support for 'Z' to skipitem() in Python/getargs.c.

12 years agomerge 3.2
Benjamin Peterson [Tue, 8 May 2012 02:24:05 +0000 (22:24 -0400)]
merge 3.2