]> granicus.if.org Git - python/log
python
13 years agoRework multiset methods to use less memory and to make fewer calls to __hash__.
Raymond Hettinger [Mon, 18 Apr 2011 03:08:41 +0000 (20:08 -0700)]
Rework multiset methods to use less memory and to make fewer calls to __hash__.

13 years agomerge 11442 NEWS
Martin v. Löwis [Sun, 17 Apr 2011 21:01:13 +0000 (23:01 +0200)]
merge 11442 NEWS

13 years agomerge 11442 NEWS
Martin v. Löwis [Sun, 17 Apr 2011 20:56:19 +0000 (22:56 +0200)]
merge 11442 NEWS

13 years agoIssue 11442: Add NEWS entry for e9724d7abbc2
Martin v. Löwis [Sun, 17 Apr 2011 20:29:40 +0000 (22:29 +0200)]
Issue 11442: Add NEWS entry for e9724d7abbc2

13 years agoFix a few hyphens in argparse.rst.
Ezio Melotti [Sat, 16 Apr 2011 20:04:51 +0000 (23:04 +0300)]
Fix a few hyphens in argparse.rst.

13 years agoIssue #11855: Apply missing formatting for urlretrieve
Eli Bendersky [Sat, 16 Apr 2011 12:28:42 +0000 (15:28 +0300)]
Issue #11855: Apply missing formatting for urlretrieve

13 years agoAdd another example to the collections module docs.
Raymond Hettinger [Sat, 16 Apr 2011 00:55:36 +0000 (17:55 -0700)]
Add another example to the collections module docs.

13 years agoFix minor subclassing issue with collections.Counter
Raymond Hettinger [Fri, 15 Apr 2011 20:12:21 +0000 (13:12 -0700)]
Fix minor subclassing issue with collections.Counter

13 years ago#11843: remove duplicate line from table in distutil doc.
Ezio Melotti [Fri, 15 Apr 2011 15:05:09 +0000 (18:05 +0300)]
#11843: remove duplicate line from table in distutil doc.

13 years agoIssue #5057: fix a bug in the peepholer that led to non-portable pyc files between...
Ezio Melotti [Fri, 15 Apr 2011 13:14:04 +0000 (16:14 +0300)]
Issue #5057: fix a bug in the peepholer that led to non-portable pyc files between narrow and wide builds while optimizing BINARY_SUBSCR on non-BMP chars (e.g. u"\U00012345"[0]).

13 years agoIssue #11467: Fix urlparse behavior when handling urls which contains scheme
Senthil Kumaran [Fri, 15 Apr 2011 10:07:33 +0000 (18:07 +0800)]
Issue #11467: Fix urlparse behavior when handling urls which contains scheme
specific part only digits. Patch by Santoso Wijaya.

13 years ago#11848: replace dead link in random.betavariate comment.
Ezio Melotti [Fri, 15 Apr 2011 05:25:16 +0000 (08:25 +0300)]
#11848: replace dead link in random.betavariate comment.

13 years ago#4783: document that is not possible to use json.dump twice on the same stream.
Ezio Melotti [Fri, 15 Apr 2011 04:37:00 +0000 (07:37 +0300)]
#4783: document that is not possible to use json.dump twice on the same stream.

13 years agoIssue #11827: remove mention of list2cmdline in the doc of subprocess
Eli Bendersky [Fri, 15 Apr 2011 04:35:06 +0000 (07:35 +0300)]
Issue #11827: remove mention of list2cmdline in the doc of subprocess

13 years agomerge the changes.
Senthil Kumaran [Thu, 14 Apr 2011 04:58:32 +0000 (12:58 +0800)]
merge the changes.

13 years agoFix Issue11474 - url2pathname() handling of '/C|/' on Windows
Senthil Kumaran [Thu, 14 Apr 2011 04:54:35 +0000 (12:54 +0800)]
Fix Issue11474 - url2pathname() handling of '/C|/' on Windows

13 years ago#11840: Improve c-api/unicode documentation. Patch by Sandro Tosi.
Ezio Melotti [Thu, 14 Apr 2011 04:39:06 +0000 (07:39 +0300)]
#11840: Improve c-api/unicode documentation. Patch by Sandro Tosi.

13 years ago#9101: backport json reference in configparser doc.
Ezio Melotti [Thu, 14 Apr 2011 03:53:44 +0000 (06:53 +0300)]
#9101: backport json reference in configparser doc.

13 years agoTransplant: Fix wording and clarify that the IDNA codec operates on full domain names.
R David Murray [Wed, 13 Apr 2011 18:20:30 +0000 (14:20 -0400)]
Transplant: Fix wording and clarify that the IDNA codec operates on full domain names.

Before reading the code to check, I wasn't sure if it operated on
full domain names or just individual labels.

13 years agoIssue 3051: make pure python code pass the same tests as the C version.
Raymond Hettinger [Wed, 13 Apr 2011 18:15:58 +0000 (11:15 -0700)]
Issue 3051: make pure python code pass the same tests as the C version.

13 years ago#9233: Fix json.loads({}) to return a dict (instead of a list), when _json is not...
Ezio Melotti [Wed, 13 Apr 2011 02:37:29 +0000 (05:37 +0300)]
#9233: Fix json.loads({}) to return a dict (instead of a list), when _json is not available.

13 years agoIssue 11718: Teach IDLE's open module dialog to find packages.
Raymond Hettinger [Wed, 13 Apr 2011 01:54:46 +0000 (18:54 -0700)]
Issue 11718: Teach IDLE's open module dialog to find packages.

13 years agoupdate news in 2.7 for Issue #11703
Senthil Kumaran [Wed, 13 Apr 2011 01:47:20 +0000 (09:47 +0800)]
update news in 2.7  for Issue #11703

13 years ago#10019: Fix regression relative to 2.6: add newlines if indent=0
R David Murray [Wed, 13 Apr 2011 01:00:26 +0000 (21:00 -0400)]
#10019: Fix regression relative to 2.6: add newlines if indent=0

Patch by Amaury Forgeot d'Arc, updated by Sando Tosi.

13 years agoFix Issue11703 - urllib2.get_url does not handle fragment in url properly.
Senthil Kumaran [Tue, 12 Apr 2011 23:31:45 +0000 (07:31 +0800)]
Fix Issue11703 - urllib2.get_url does not handle fragment in url properly.

13 years agoIssue 11747: Fix output format for context diffs.
Raymond Hettinger [Tue, 12 Apr 2011 22:48:25 +0000 (15:48 -0700)]
Issue 11747: Fix output format for context diffs.

13 years agoNeaten-up the fix to issue 11830
Raymond Hettinger [Tue, 12 Apr 2011 16:06:01 +0000 (09:06 -0700)]
Neaten-up the fix to issue 11830

13 years agoRemove unnecessary imports and use assertIs instead of assertTrue.
Ezio Melotti [Tue, 12 Apr 2011 13:06:43 +0000 (16:06 +0300)]
Remove unnecessary imports and use assertIs instead of assertTrue.

13 years ago#9233: skip _json-specific tests when _json is not available.
Ezio Melotti [Tue, 12 Apr 2011 12:59:50 +0000 (15:59 +0300)]
#9233: skip _json-specific tests when _json is not available.

13 years agoUse floor division operator instead of deprecated division operator.
Raymond Hettinger [Tue, 12 Apr 2011 00:45:01 +0000 (17:45 -0700)]
Use floor division operator instead of deprecated division operator.

13 years agoIssue #11830: Remove unnecessary introspection code in the decimal module.
Raymond Hettinger [Tue, 12 Apr 2011 00:27:42 +0000 (17:27 -0700)]
Issue #11830: Remove unnecessary introspection code in the decimal module.
It was causing a failed import in the Turkish locale where the locale
sensitive str.upper() method caused a name mismatch.

13 years agoAdd NEWS item for #5162.
brian.curtin [Mon, 11 Apr 2011 23:05:33 +0000 (18:05 -0500)]
Add NEWS item for #5162.

13 years agoFix #5162. Allow child spawning from Windows services (via pywin32).
brian.curtin [Mon, 11 Apr 2011 23:00:59 +0000 (18:00 -0500)]
Fix #5162. Allow child spawning from Windows services (via pywin32).

13 years agoRemove unnecessary call to PyErr_Clear.
Ezio Melotti [Mon, 11 Apr 2011 00:45:25 +0000 (03:45 +0300)]
Remove unnecessary call to PyErr_Clear.

13 years ago#4877: Fix a segfault in xml.parsers.expat while attempting to parse a closed file.
Ezio Melotti [Mon, 11 Apr 2011 00:44:28 +0000 (03:44 +0300)]
#4877: Fix a segfault in xml.parsers.expat while attempting to parse a closed file.

13 years agoIssue #8428: Fix a race condition in multiprocessing.Pool when terminating
Antoine Pitrou [Sun, 10 Apr 2011 22:26:42 +0000 (00:26 +0200)]
Issue #8428: Fix a race condition in multiprocessing.Pool when terminating
worker processes: new processes would be spawned while the pool is being
shut down.  Patch by Charles-François Natali.

13 years agoIssue9670: Back out changeset b0d2b696da19; test fails on other platforms
Ned Deily [Sat, 9 Apr 2011 21:59:30 +0000 (14:59 -0700)]
Issue9670: Back out changeset b0d2b696da19; test fails on other platforms
and on OS X with pydebug.

13 years agoIssue #9670: Increase the default stack size for secondary threads on
Ned Deily [Sat, 9 Apr 2011 19:29:58 +0000 (12:29 -0700)]
Issue #9670: Increase the default stack size for secondary threads on
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(Patch by Ronald Oussoren)

13 years agoIssue #11719: Fix message about unexpected test_msilib skip.
Ross Lagerwall [Sat, 9 Apr 2011 18:39:50 +0000 (20:39 +0200)]
Issue #11719: Fix message about unexpected test_msilib skip.
Patch by Nadeem Vawda.

13 years ago(Merge 3.1) Issue #11650: PyOS_StdioReadline() retries fgets() if it was
Victor Stinner [Sat, 9 Apr 2011 14:09:08 +0000 (16:09 +0200)]
(Merge 3.1) Issue #11650: PyOS_StdioReadline() retries fgets() if it was
interrupted (EINTR), for example if the program is stopped with CTRL+z on Mac
OS X. Patch written by Charles-Francois Natali.

13 years agoIssue #11794: Reorganised logging documentation.
Vinay Sajip [Fri, 8 Apr 2011 10:40:38 +0000 (11:40 +0100)]
Issue #11794: Reorganised logging documentation.

13 years agoBackport for Python 2.7 of issue 11715 support for building Python on
Barry Warsaw [Thu, 7 Apr 2011 15:28:11 +0000 (11:28 -0400)]
Backport for Python 2.7 of issue 11715 support for building Python on
multiarch Debian/Ubuntu.

13 years agoIssue #11766: increase countdown waiting for a pool of processes to start
Antoine Pitrou [Wed, 6 Apr 2011 20:54:14 +0000 (22:54 +0200)]
Issue #11766: increase countdown waiting for a pool of processes to start
up.  Hopefully fixes transient buildbot failures.

13 years agohg pull/merge - Changes to accomodate.
Senthil Kumaran [Wed, 6 Apr 2011 06:41:42 +0000 (14:41 +0800)]
hg pull/merge - Changes to accomodate.

13 years agoIssue #10762: Guard against invalid/non-supported format string '%f' on Windows....
Senthil Kumaran [Wed, 6 Apr 2011 06:27:47 +0000 (14:27 +0800)]
Issue #10762: Guard against invalid/non-supported format string '%f' on Windows. Patch Santoso Wijaya.

13 years agoIssue #11576: Fixed timedelta subtraction glitch on big timedelta values
Alexander Belopolsky [Wed, 6 Apr 2011 02:12:22 +0000 (22:12 -0400)]
Issue #11576: Fixed timedelta subtraction glitch on big timedelta values

13 years agoIssue #7108: Fix test_commands to not fail when special attributes ('@'
Ned Deily [Wed, 6 Apr 2011 00:16:09 +0000 (17:16 -0700)]
Issue #7108: Fix test_commands to not fail when special attributes ('@'
or '.') appear in 'ls -l' output.

13 years ago#7311: fix HTMLParser to accept non-ASCII attribute values.
Ezio Melotti [Tue, 5 Apr 2011 17:40:52 +0000 (20:40 +0300)]
#7311: fix HTMLParser to accept non-ASCII attribute values.

13 years agoIssue #10963: Ensure that subprocess.communicate() never raises EPIPE.
Ross Lagerwall [Tue, 5 Apr 2011 13:24:34 +0000 (15:24 +0200)]
Issue #10963: Ensure that subprocess.communicate() never raises EPIPE.

13 years agoIssue #9347: Fix formatting for tuples in argparse type= error messages.
Steven Bethard [Sun, 3 Apr 2011 23:47:52 +0000 (01:47 +0200)]
Issue #9347: Fix formatting for tuples in argparse type= error messages.

13 years agoDummy merge from 2.6.
R David Murray [Thu, 31 Mar 2011 15:48:31 +0000 (11:48 -0400)]
Dummy merge from 2.6.

13 years agoIssue 11713: clarify docstring for collections.deque()
Raymond Hettinger [Wed, 30 Mar 2011 00:28:25 +0000 (17:28 -0700)]
Issue 11713: clarify docstring for collections.deque()

13 years agoMerge cleanup.
Guido van Rossum [Tue, 29 Mar 2011 20:04:24 +0000 (13:04 -0700)]
Merge cleanup.

13 years agoMerge cleanup.
Guido van Rossum [Tue, 29 Mar 2011 20:03:10 +0000 (13:03 -0700)]
Merge cleanup.

13 years agoMerge issue 11662 from 2.6.
Guido van Rossum [Tue, 29 Mar 2011 19:53:55 +0000 (12:53 -0700)]
Merge issue 11662 from 2.6.

13 years agoMerge issue 11662 from 2.5.
Guido van Rossum [Tue, 29 Mar 2011 19:51:16 +0000 (12:51 -0700)]
Merge issue 11662 from 2.5.

13 years agoMerge urllib/urllib2 security fix from 2.6 branch.
guido@google.com [Tue, 29 Mar 2011 18:14:01 +0000 (11:14 -0700)]
Merge urllib/urllib2 security fix from 2.6 branch.

13 years agoMerge urllib/urllib2 security fix from 2.5 branch.
guido@google.com [Tue, 29 Mar 2011 17:48:23 +0000 (10:48 -0700)]
Merge urllib/urllib2 security fix from 2.5 branch.

13 years agoAdding .hgignore (copied from default branch).
guido@google.com [Tue, 29 Mar 2011 16:53:33 +0000 (09:53 -0700)]
Adding .hgignore (copied from default branch).

13 years agoIssue #11639: Configuration function documentation referred to logging.XXX rather...
Vinay Sajip [Tue, 29 Mar 2011 00:21:48 +0000 (01:21 +0100)]
Issue #11639: Configuration function documentation referred to logging.XXX rather than logging.config.XXX.

13 years agoIssue #11639: Configuration function documentation referred to logging.XXX rather...
Vinay Sajip [Tue, 29 Mar 2011 00:15:37 +0000 (01:15 +0100)]
Issue #11639: Configuration function documentation referred to logging.XXX rather than logging.config.XXX.

13 years agoIssue #11639: Configuration function documentation referred to logging.XXX rather...
Vinay Sajip [Tue, 29 Mar 2011 00:07:50 +0000 (01:07 +0100)]
Issue #11639: Configuration function documentation referred to logging.XXX rather than logging.config.XXX.

13 years agoCorrect handling of functions with only kwarg args in getcallargs (closes #11256)
Benjamin Peterson [Mon, 28 Mar 2011 22:32:31 +0000 (17:32 -0500)]
Correct handling of functions with only kwarg args in getcallargs (closes #11256)

A patch from Daniel Urban.

13 years agolet's keep parenthesis around sizeof
Benjamin Peterson [Mon, 28 Mar 2011 22:25:15 +0000 (17:25 -0500)]
let's keep parenthesis around sizeof

13 years agoAdd CVE number to urllib/urllib2 news item.
guido@google.com [Mon, 28 Mar 2011 20:53:40 +0000 (13:53 -0700)]
Add CVE number to urllib/urllib2 news item.

13 years agoAdd tests for the urllib[2] vulnerability. Change to raise exceptions.
guido@google.com [Mon, 28 Mar 2011 20:47:01 +0000 (13:47 -0700)]
Add tests for the urllib[2] vulnerability. Change to raise exceptions.

13 years ago#10617: add class directives to collections ABCs.
Ezio Melotti [Mon, 28 Mar 2011 10:46:28 +0000 (13:46 +0300)]
#10617: add class directives to collections ABCs.

13 years agoAdd missing file from #11696.
Martin v. Löwis [Sun, 27 Mar 2011 19:01:03 +0000 (21:01 +0200)]
Add missing file from #11696.

13 years agoCloses #11696: Fix ID generation in msilib.
Martin v. Löwis [Sun, 27 Mar 2011 18:58:52 +0000 (20:58 +0200)]
Closes #11696: Fix ID generation in msilib.
Patch by Mark Mc Mahon.

13 years agoIssue #9696: Fix exception incorrectly raised by xdrlib.Packer.pack_int when trying...
Mark Dickinson [Sun, 27 Mar 2011 15:15:24 +0000 (16:15 +0100)]
Issue #9696: Fix exception incorrectly raised by xdrlib.Packer.pack_int when trying to pack a negative (in-range) integer.

13 years agoMove Misc/NEWS entry to correct section.
Mark Dickinson [Sun, 27 Mar 2011 14:32:05 +0000 (15:32 +0100)]
Move Misc/NEWS entry to correct section.

13 years agoIssue #9026: Fix order of argparse sub-commands in help messages. (Merged from 3.2.)
Steven Bethard [Sun, 27 Mar 2011 11:57:55 +0000 (13:57 +0200)]
Issue #9026: Fix order of argparse sub-commands in help messages. (Merged from 3.2.)

13 years agoFix short file name generation in bdist_msi.
Martin v. Löwis [Sun, 27 Mar 2011 08:10:46 +0000 (10:10 +0200)]
Fix short file name generation in bdist_msi.
Patch by Christoph Gohlke.
Closes #7639.

13 years agorevert unintended changes
Benjamin Peterson [Sat, 26 Mar 2011 23:11:54 +0000 (18:11 -0500)]
revert unintended changes

13 years agofix missing variable declarations
Benjamin Peterson [Sat, 26 Mar 2011 23:09:55 +0000 (18:09 -0500)]
fix missing variable declarations

13 years agoalways check return value of PyObject_IsInstance for error
Benjamin Peterson [Sat, 26 Mar 2011 23:04:09 +0000 (18:04 -0500)]
always check return value of PyObject_IsInstance for error

13 years agocheck possible recursive _as_parameter_ to prevent segfault (closes #1838)
Benjamin Peterson [Sat, 26 Mar 2011 22:56:28 +0000 (17:56 -0500)]
check possible recursive _as_parameter_ to prevent segfault (closes #1838)

13 years agoIn the Windows clean script for buildbots, also clear the build dir
Antoine Pitrou [Sat, 26 Mar 2011 21:08:21 +0000 (22:08 +0100)]
In the Windows clean script for buildbots, also clear the build dir
(so that stale test files, which can be very large, get wiped out)

13 years agoIssue #9343: Document that argparse parent parsers must be configured before their...
Steven Bethard [Sat, 26 Mar 2011 20:50:38 +0000 (21:50 +0100)]
Issue #9343: Document that argparse parent parsers must be configured before their children. (Merge from 3.2.)

13 years agoIssue #8982: Improve the documentation for the argparse Namespace object. (Merge...
Steven Bethard [Sat, 26 Mar 2011 18:59:02 +0000 (19:59 +0100)]
Issue #8982: Improve the documentation for the argparse Namespace object. (Merge from 3.2.)

13 years agoIssue #9348: Raise an early error if argparse nargs and metavar don't match. (Merge...
Steven Bethard [Sat, 26 Mar 2011 16:57:52 +0000 (17:57 +0100)]
Issue #9348: Raise an early error if argparse nargs and metavar don't match. (Merge from 3.2.)

13 years agoIssue #11144: Fix corner cases where float-to-int conversion unnecessarily returned...
Mark Dickinson [Sat, 26 Mar 2011 12:18:00 +0000 (12:18 +0000)]
Issue #11144: Fix corner cases where float-to-int conversion unnecessarily returned a long.

13 years agoIssue #11675: Zero-out newly-created multiprocessing.[Raw]Array objects.
Mark Dickinson [Sat, 26 Mar 2011 10:02:37 +0000 (10:02 +0000)]
Issue #11675:  Zero-out newly-created multiprocessing.[Raw]Array objects.

13 years agoTweaks to sys.flags description table.
Éric Araujo [Sat, 26 Mar 2011 01:09:14 +0000 (02:09 +0100)]
Tweaks to sys.flags description table.
The options listed in the table are now links to their documentation,
and the table uses compact markup to make it easier to read and edit.
First proposed in #10998.

13 years agoRemove untrue statement from tutorial
Éric Araujo [Sat, 26 Mar 2011 00:26:08 +0000 (01:26 +0100)]
Remove untrue statement from tutorial

13 years agoUse universal construct os.path.expanduser('~') instead of os.environ['HOME']
Éric Araujo [Sat, 26 Mar 2011 00:24:47 +0000 (01:24 +0100)]
Use universal construct os.path.expanduser('~') instead of os.environ['HOME']

13 years agoIssue #11666: Teach pydoc to display full help for named tuples
Raymond Hettinger [Fri, 25 Mar 2011 23:00:13 +0000 (16:00 -0700)]
Issue #11666: Teach pydoc to display full help for named tuples

13 years agoIssue #11673: Fix multiprocessing.[Raw]Array constructor to accept a size of type...
Mark Dickinson [Fri, 25 Mar 2011 22:01:06 +0000 (22:01 +0000)]
Issue #11673: Fix multiprocessing.[Raw]Array constructor to accept a size of type long.  Thanks Robert Kern.

13 years agomerge heads
Benjamin Peterson [Fri, 25 Mar 2011 21:58:31 +0000 (16:58 -0500)]
merge heads

13 years agoremove this dead subversion code
Benjamin Peterson [Fri, 25 Mar 2011 21:57:30 +0000 (16:57 -0500)]
remove this dead subversion code

13 years ago<Home> toggle failing on Tk 8.5, causing IDLE exits. Issue 3851.
Kurt B. Kaiser [Fri, 25 Mar 2011 21:48:27 +0000 (17:48 -0400)]
<Home> toggle failing on Tk 8.5, causing IDLE exits.  Issue 3851.

13 years ago#2650: Refactor re.escape and its tests.
Ezio Melotti [Fri, 25 Mar 2011 12:50:52 +0000 (14:50 +0200)]
#2650: Refactor re.escape and its tests.

13 years agoIssue #11634: Remove misleading paragraph from a comment
Eli Bendersky [Thu, 24 Mar 2011 20:38:25 +0000 (22:38 +0200)]
Issue #11634: Remove misleading paragraph from a comment

13 years agoAdd FTP to the allowed url schemes. Add Misc/NEWS.
guido@google.com [Thu, 24 Mar 2011 17:44:17 +0000 (10:44 -0700)]
Add FTP to the allowed url schemes. Add Misc/NEWS.

13 years agoIssue 22663: fix redirect vulnerability in urllib/urllib2.
guido@google.com [Thu, 24 Mar 2011 15:07:45 +0000 (08:07 -0700)]
Issue 22663: fix redirect vulnerability in urllib/urllib2.

13 years agoFix obscure set crashers (#4420). Backport of d56b3cafb1e6, reviewed by Raymond.
Éric Araujo [Tue, 22 Mar 2011 22:47:32 +0000 (23:47 +0100)]
Fix obscure set crashers (#4420).  Backport of d56b3cafb1e6, reviewed by Raymond.

13 years agoIssue #10771: Clarify that descriptors get used in an *owner* class or one of its...
Raymond Hettinger [Wed, 23 Mar 2011 00:51:57 +0000 (17:51 -0700)]
Issue #10771: Clarify that descriptors get used in an *owner* class or one of its parents.

13 years agoIssue 10787: Document the probability density function for random.gammavariate.
Raymond Hettinger [Tue, 22 Mar 2011 22:52:46 +0000 (15:52 -0700)]
Issue 10787: Document the probability density function for random.gammavariate.

13 years agoIssue 10988: fix description of super's descriptor call.
Raymond Hettinger [Tue, 22 Mar 2011 22:28:45 +0000 (15:28 -0700)]
Issue 10988: fix description of super's descriptor call.

13 years agoFix typo spotted by Sandro Tosi
Éric Araujo [Tue, 22 Mar 2011 20:45:42 +0000 (21:45 +0100)]
Fix typo spotted by Sandro Tosi