]> granicus.if.org Git - python/log
python
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

12 years agoremove basically bitrotted XXXs
Benjamin Peterson [Tue, 8 May 2012 02:23:48 +0000 (22:23 -0400)]
remove basically bitrotted XXXs

12 years agoexplicitly set UnsupportedOperation's module rather than relying on incorrect globals...
Benjamin Peterson [Tue, 8 May 2012 02:19:42 +0000 (22:19 -0400)]
explicitly set UnsupportedOperation's module rather than relying on incorrect globals on startup (closes #14745)

12 years agoBackout ab500b297900: the check for integer overflow is wrong
Victor Stinner [Mon, 7 May 2012 21:50:05 +0000 (23:50 +0200)]
Backout ab500b297900: the check for integer overflow is wrong

Issue #14716: Change integer overflow check in unicode_writer_prepare()
to compute the limit at compile time instead of runtime. Patch writen by Serhiy
Storchaka.

12 years agoIssue #14742: Don't include DirectoryTestCase from test_unparse in test_tools until...
Mark Dickinson [Mon, 7 May 2012 21:36:43 +0000 (22:36 +0100)]
Issue #14742:  Don't include DirectoryTestCase from test_unparse in test_tools until we can speed it up.

12 years agoIssue #14583: Fix importlib bug when a package's __init__.py would first import one...
Antoine Pitrou [Mon, 7 May 2012 19:41:59 +0000 (21:41 +0200)]
Issue #14583: Fix importlib bug when a package's __init__.py would first import one of its modules then raise an error.

12 years agoIssue #14741: Merge fix from 3.2.
Mark Dickinson [Mon, 7 May 2012 16:25:14 +0000 (17:25 +0100)]
Issue #14741: Merge fix from 3.2.

12 years agoIssue #14741: Fix missing support for ellipsis in parser module.
Mark Dickinson [Mon, 7 May 2012 16:24:04 +0000 (17:24 +0100)]
Issue #14741: Fix missing support for ellipsis in parser module.

12 years agoIssue #14697: Merge fix from 3.2.
Mark Dickinson [Mon, 7 May 2012 15:36:33 +0000 (16:36 +0100)]
Issue #14697:  Merge fix from 3.2.

12 years agoIssue #14697: Fix missing parser module support for set displays and set comprehensions.
Mark Dickinson [Mon, 7 May 2012 15:34:34 +0000 (16:34 +0100)]
Issue #14697: Fix missing parser module support for set displays and set comprehensions.

12 years agoIssue #14716: Change integer overflow check in unicode_writer_prepare()
Victor Stinner [Mon, 7 May 2012 11:02:44 +0000 (13:02 +0200)]
Issue #14716: Change integer overflow check in unicode_writer_prepare()
to compute the limit at compile time instead of runtime. Patch writen by Serhiy
Storchaka.

12 years agoIssue #14701: Add missing support for 'raise ... from' in parser module.
Mark Dickinson [Mon, 7 May 2012 11:01:27 +0000 (12:01 +0100)]
Issue #14701:  Add missing support for 'raise ... from' in parser module.

12 years agoClose #14716: str.format() now uses the new "unicode writer" API instead of the
Victor Stinner [Mon, 7 May 2012 10:47:02 +0000 (12:47 +0200)]
Close #14716: str.format() now uses the new "unicode writer" API instead of the
PyAccu API. For example, it makes str.format() from 25% to 30% faster on Linux.

12 years agoIssue #14701: Merge fix from 3.2.
Mark Dickinson [Mon, 7 May 2012 11:03:11 +0000 (12:03 +0100)]
Issue #14701: Merge fix from 3.2.

12 years agoIssue #14700: Fix two broken and undefined-behaviour-inducing overflow checks in...
Mark Dickinson [Mon, 7 May 2012 10:20:50 +0000 (11:20 +0100)]
Issue #14700: Fix two broken and undefined-behaviour-inducing overflow checks in old-style string formatting.  Thanks Serhiy Storchaka for report and original patch.

12 years agoIssue #14705: Added support for the new 'p' format unit to skipitem().
Larry Hastings [Mon, 7 May 2012 09:44:50 +0000 (02:44 -0700)]
Issue #14705: Added support for the new 'p' format unit to skipitem().

12 years agoAdd John Regehr to Misc/ACKS for his help with finding integer overflows (issue ...
Mark Dickinson [Mon, 7 May 2012 09:37:37 +0000 (10:37 +0100)]
Add John Regehr to Misc/ACKS for his help with finding integer overflows (issue #9530).

12 years agoIssue #14695: Run Tools/parser/test_unparse.py as part of test_tools.
Mark Dickinson [Mon, 7 May 2012 09:27:23 +0000 (10:27 +0100)]
Issue #14695: Run Tools/parser/test_unparse.py as part of test_tools.

12 years agoMerge Misc/NEWS issue number fix from 3.2
Mark Dickinson [Mon, 7 May 2012 09:25:56 +0000 (10:25 +0100)]
Merge Misc/NEWS issue number fix from 3.2

12 years agoFix issue number in Misc/NEWS.
Mark Dickinson [Mon, 7 May 2012 09:24:02 +0000 (10:24 +0100)]
Fix issue number in Misc/NEWS.

12 years agoAdd Misc/NEWS entry for rev b4a1d9287780
Richard Oudkerk [Sun, 6 May 2012 23:12:02 +0000 (00:12 +0100)]
Add Misc/NEWS entry for rev b4a1d9287780

12 years agoFix buildbot failures in test_lzma.
Nadeem Vawda [Sun, 6 May 2012 22:40:57 +0000 (00:40 +0200)]
Fix buildbot failures in test_lzma.

12 years agoRename lzma.check_is_supported() to is_check_supported() to avoid grammatical confusion.
Nadeem Vawda [Sun, 6 May 2012 21:01:51 +0000 (23:01 +0200)]
Rename lzma.check_is_supported() to is_check_supported() to avoid grammatical confusion.

12 years agoAdd lzma.{encode,decode}_filter_properties().
Nadeem Vawda [Sun, 6 May 2012 21:01:27 +0000 (23:01 +0200)]
Add lzma.{encode,decode}_filter_properties().

12 years agoMerge with 3.2.
Georg Brandl [Sun, 6 May 2012 19:39:59 +0000 (21:39 +0200)]
Merge with 3.2.

12 years agoFix document title for Sphinx.
Georg Brandl [Sun, 6 May 2012 19:39:35 +0000 (21:39 +0200)]
Fix document title for Sphinx.

12 years agoReally fix test_gzip failures on Windows.
Nadeem Vawda [Sun, 6 May 2012 17:24:18 +0000 (19:24 +0200)]
Really fix test_gzip failures on Windows.

12 years agoIssue #14965: Bring Tools/parser/unparse.py up to date with the Python 3.3. Grammar.
Mark Dickinson [Sun, 6 May 2012 16:35:19 +0000 (17:35 +0100)]
Issue #14965:  Bring Tools/parser/unparse.py up to date with the Python 3.3. Grammar.

12 years agoIssue #14965: Fix missing support for starred assignments in Tools/parser/unparse.py.
Mark Dickinson [Sun, 6 May 2012 16:27:39 +0000 (17:27 +0100)]
Issue #14965: Fix missing support for starred assignments in Tools/parser/unparse.py.

12 years agoMake test_multiprocessing more lenient about another timeout check
Richard Oudkerk [Sun, 6 May 2012 15:46:36 +0000 (16:46 +0100)]
Make test_multiprocessing more lenient about another timeout check

12 years agoMake AcquirerProxy.acquire() support timeout argument
Richard Oudkerk [Sun, 6 May 2012 15:45:02 +0000 (16:45 +0100)]
Make AcquirerProxy.acquire() support timeout argument

12 years agoFix too early decrefs.
Antoine Pitrou [Sun, 6 May 2012 15:15:23 +0000 (17:15 +0200)]
Fix too early decrefs.

12 years agoFix test_gzip failures on Windows.
Nadeem Vawda [Sun, 6 May 2012 14:25:35 +0000 (16:25 +0200)]
Fix test_gzip failures on Windows.

12 years ago#14034: merge indentation fixes from 3.2.
Ezio Melotti [Sun, 6 May 2012 14:05:54 +0000 (17:05 +0300)]
#14034: merge indentation fixes from 3.2.

12 years ago#14034: fix indentation.
Ezio Melotti [Sun, 6 May 2012 14:05:16 +0000 (17:05 +0300)]
#14034: fix indentation.

12 years agoMerge heads.
Ezio Melotti [Sun, 6 May 2012 13:55:17 +0000 (16:55 +0300)]
Merge heads.

12 years ago#14034: merge argparse tutorial from 3.2.
Ezio Melotti [Sun, 6 May 2012 13:34:43 +0000 (16:34 +0300)]
#14034: merge argparse tutorial from 3.2.

12 years agoSeparate tests for gzip.GzipFile and gzip.open.
Nadeem Vawda [Sun, 6 May 2012 13:17:52 +0000 (15:17 +0200)]
Separate tests for gzip.GzipFile and gzip.open.

12 years ago#14034: added the argparse tutorial. Patch by Tshepang Lekhonkhobe.
Ezio Melotti [Sun, 6 May 2012 13:15:35 +0000 (16:15 +0300)]
#14034: added the argparse tutorial.  Patch by Tshepang Lekhonkhobe.

12 years agoCloses #13989: Add support for text modes to gzip.open().
Nadeem Vawda [Sun, 6 May 2012 13:04:01 +0000 (15:04 +0200)]
Closes #13989: Add support for text modes to gzip.open().

Also, add tests for gzip.open().

12 years agoFix formatting of preset values for exception messages in _lzmamodule.c.
Nadeem Vawda [Sun, 6 May 2012 11:35:47 +0000 (13:35 +0200)]
Fix formatting of preset values for exception messages in _lzmamodule.c.

12 years ago#12660: Skip test_gdb when run from an installed Python.
Vinay Sajip [Sun, 6 May 2012 11:03:05 +0000 (12:03 +0100)]
#12660: Skip test_gdb when run from an installed Python.

12 years agoIssue #9116: Allowed test to pass on Windows by adjusting the test condition slightly...
Vinay Sajip [Sun, 6 May 2012 10:34:50 +0000 (11:34 +0100)]
Issue #9116: Allowed test to pass on Windows by adjusting the test condition slightly to allow for a Windows-specific error message.

12 years agoCloses #14729: Allowed test to pass on Windows by adjusting the test condition slight...
Vinay Sajip [Sun, 6 May 2012 10:28:46 +0000 (11:28 +0100)]
Closes #14729: Allowed test to pass on Windows by adjusting the test condition slightly to allow for a Windows-specific error message.

12 years agomerge with 3.2
Georg Brandl [Sun, 6 May 2012 10:06:24 +0000 (12:06 +0200)]
merge with 3.2

12 years ago#13183: backport fixes to test_pdb to 3.2 branch
Georg Brandl [Sun, 6 May 2012 09:50:00 +0000 (11:50 +0200)]
#13183: backport fixes to test_pdb to 3.2 branch

12 years agoFix some rst errors in NEWS.
Georg Brandl [Sun, 6 May 2012 09:24:06 +0000 (11:24 +0200)]
Fix some rst errors in NEWS.

12 years agoPost-3.3a3 bump.
Georg Brandl [Sun, 6 May 2012 09:20:09 +0000 (11:20 +0200)]
Post-3.3a3 bump.

12 years agoUpdate Misc/NEWS for issues #14127 and #14705. (And, technically, #10148.)
Larry Hastings [Sun, 6 May 2012 04:57:17 +0000 (21:57 -0700)]
Update Misc/NEWS for issues #14127 and #14705.  (And, technically, #10148.)

12 years agoBacked out changeset 709850f1ec67
Benjamin Peterson [Sun, 6 May 2012 01:22:14 +0000 (21:22 -0400)]
Backed out changeset 709850f1ec67

12 years agoUpdate Misc/NEWS for issues #14127 and #14705. (And, technically, #10148.)
Larry Hastings [Sun, 6 May 2012 00:39:09 +0000 (17:39 -0700)]
Update Misc/NEWS for issues #14127 and #14705.  (And, technically, #10148.)

12 years agoIssue #14705: Add 'p' format character to PyArg_ParseTuple* for bool support.
Larry Hastings [Sat, 5 May 2012 23:54:29 +0000 (16:54 -0700)]
Issue #14705: Add 'p' format character to PyArg_ParseTuple* for bool support.

12 years agoFix typo in exception message.
Stefan Krah [Sat, 5 May 2012 20:37:05 +0000 (22:37 +0200)]
Fix typo in exception message.

12 years agoDummy merge
Richard Oudkerk [Sat, 5 May 2012 19:55:46 +0000 (20:55 +0100)]
Dummy merge

12 years agoFix for issue 14725 for 3.2 branch
Richard Oudkerk [Sat, 5 May 2012 19:41:23 +0000 (20:41 +0100)]
Fix for issue 14725 for 3.2 branch

12 years agoFix for Issue 14725 for 3.3 branch.
Richard Oudkerk [Sat, 5 May 2012 18:45:37 +0000 (19:45 +0100)]
Fix for Issue 14725 for 3.3 branch.

12 years agoIssue #13815: TarFile.extractfile() now returns io.BufferedReader objects.
Lars Gustäbel [Sat, 5 May 2012 16:15:03 +0000 (18:15 +0200)]
Issue #13815: TarFile.extractfile() now returns io.BufferedReader objects.
The ExFileObject class was removed, some of its code went into _FileInFile.

12 years agodon't append the bytecode suffix to the source suffixes global
Benjamin Peterson [Sat, 5 May 2012 13:44:08 +0000 (09:44 -0400)]
don't append the bytecode suffix to the source suffixes global

12 years agoFix typo in changeset eb5c5c23ca9b.
Nadeem Vawda [Sat, 5 May 2012 10:27:30 +0000 (12:27 +0200)]
Fix typo in changeset eb5c5c23ca9b.

12 years agoMerge
Antoine Pitrou [Fri, 4 May 2012 21:17:03 +0000 (23:17 +0200)]
Merge

12 years agoAdd some whatsnew entries
Antoine Pitrou [Fri, 4 May 2012 21:15:47 +0000 (23:15 +0200)]
Add some whatsnew entries

12 years agoClean up a docstring.
Brett Cannon [Fri, 4 May 2012 20:47:54 +0000 (16:47 -0400)]
Clean up a docstring.