]> granicus.if.org Git - python/log
python
12 years agoImprove variable names
Raymond Hettinger [Mon, 11 Mar 2013 03:34:16 +0000 (20:34 -0700)]
Improve variable names

12 years agoIssue #17385: Fix quadratic behavior in threading.Condition
Raymond Hettinger [Mon, 11 Mar 2013 00:57:28 +0000 (17:57 -0700)]
Issue #17385: Fix quadratic behavior in threading.Condition

12 years agoUpdate code to increment and decrement using the cleaner += 1 and -= 1 style.
Raymond Hettinger [Sun, 10 Mar 2013 22:13:35 +0000 (15:13 -0700)]
Update code to increment and decrement using the cleaner += 1 and -= 1 style.

12 years agoFix typo in PyDict_SetDefault docs.
Ezio Melotti [Sun, 10 Mar 2013 18:57:16 +0000 (20:57 +0200)]
Fix typo in PyDict_SetDefault docs.

12 years agomerge
Raymond Hettinger [Sun, 10 Mar 2013 16:51:37 +0000 (09:51 -0700)]
merge

12 years agoInherit from object() for consistency
Raymond Hettinger [Sun, 10 Mar 2013 16:50:37 +0000 (09:50 -0700)]
Inherit from object() for consistency

12 years agomerge
Raymond Hettinger [Sun, 10 Mar 2013 16:42:22 +0000 (09:42 -0700)]
merge

12 years agoIssue #17351: Modernize the pure Python property() example.
Raymond Hettinger [Sun, 10 Mar 2013 16:41:18 +0000 (09:41 -0700)]
Issue #17351: Modernize the pure Python property() example.

12 years ago#11963: merge with 3.3.
Ezio Melotti [Sun, 10 Mar 2013 01:29:55 +0000 (03:29 +0200)]
#11963: merge with 3.3.

12 years ago#11963: merge with 3.2.
Ezio Melotti [Sun, 10 Mar 2013 01:27:26 +0000 (03:27 +0200)]
#11963: merge with 3.2.

12 years ago#11963: fix Windows buildbots.
Ezio Melotti [Sun, 10 Mar 2013 01:25:45 +0000 (03:25 +0200)]
#11963: fix Windows buildbots.

12 years ago#11963: merge with 3.3.
Ezio Melotti [Sat, 9 Mar 2013 20:21:32 +0000 (22:21 +0200)]
#11963: merge with 3.3.

12 years ago#11963: merge with 3.2.
Ezio Melotti [Sat, 9 Mar 2013 20:20:23 +0000 (22:20 +0200)]
#11963: merge with 3.2.

12 years ago#11963: avoid printing messages in test_parser. Initial patch by Éric Araujo.
Ezio Melotti [Sat, 9 Mar 2013 20:17:33 +0000 (22:17 +0200)]
#11963: avoid printing messages in test_parser.  Initial patch by Éric Araujo.

12 years agomerge
Brett Cannon [Sat, 9 Mar 2013 19:25:08 +0000 (14:25 -0500)]
merge

12 years agoTouch up the Python 2 to 3 porting guide
Brett Cannon [Sat, 9 Mar 2013 19:22:35 +0000 (14:22 -0500)]
Touch up the Python 2 to 3 porting guide

12 years agoIssue #16954: Add docstrings for ElementTree
Eli Bendersky [Sat, 9 Mar 2013 15:12:48 +0000 (07:12 -0800)]
Issue #16954: Add docstrings for ElementTree

Based on patch by David Lam

12 years agoAdd warning in ctypes documentation for #16575 and #16576
Eli Bendersky [Sat, 9 Mar 2013 13:55:24 +0000 (05:55 -0800)]
Add warning in ctypes documentation for #16575 and #16576

12 years agoAdd warning in ctypes documentation for #16575 and #16576
Eli Bendersky [Sat, 9 Mar 2013 13:54:32 +0000 (05:54 -0800)]
Add warning in ctypes documentation for #16575 and #16576

12 years agoAdd warning in ctypes documentation for #16575 and #16576
Eli Bendersky [Sat, 9 Mar 2013 13:54:00 +0000 (05:54 -0800)]
Add warning in ctypes documentation for #16575 and #16576

12 years agoMerge with 3.3
Terry Jan Reedy [Sat, 9 Mar 2013 07:26:07 +0000 (02:26 -0500)]
Merge with 3.3

12 years agoMerge heads
Terry Jan Reedy [Sat, 9 Mar 2013 07:25:18 +0000 (02:25 -0500)]
Merge heads

12 years agoMerge heads
Terry Jan Reedy [Sat, 9 Mar 2013 07:22:03 +0000 (02:22 -0500)]
Merge heads

12 years agoMerge: closes issue 16643 (not ....2 as in last commit message)
Terry Jan Reedy [Sat, 9 Mar 2013 07:19:33 +0000 (02:19 -0500)]
Merge: closes issue 16643 (not ....2 as in last commit message)

12 years agoIssue #16642: sched.scheduler timefunc initial default is time.monotonic.
Terry Jan Reedy [Sat, 9 Mar 2013 07:14:27 +0000 (02:14 -0500)]
Issue #16642: sched.scheduler timefunc initial default is time.monotonic.
Patch by Ramchandra Apte

12 years agomerge
Raymond Hettinger [Sat, 9 Mar 2013 07:04:47 +0000 (23:04 -0800)]
merge

12 years agoSync-up with 3.4 to make maintenance easier.
Raymond Hettinger [Sat, 9 Mar 2013 07:01:07 +0000 (23:01 -0800)]
Sync-up with 3.4 to make maintenance easier.

12 years agomerge
Raymond Hettinger [Sat, 9 Mar 2013 04:14:46 +0000 (21:14 -0700)]
merge

12 years agoImprove comments and variable names.
Raymond Hettinger [Sat, 9 Mar 2013 04:11:55 +0000 (21:11 -0700)]
Improve comments and variable names.

12 years agoIssue #17332: fix json doc typo /convered/converted/ found by Ernie Hershey.
Terry Jan Reedy [Sat, 9 Mar 2013 00:40:17 +0000 (19:40 -0500)]
Issue #17332: fix json doc typo /convered/converted/ found by Ernie Hershey.

12 years agoIssue #17332: fix json doc typo /convered/converted/ found by Ernie Hershey.
Terry Jan Reedy [Sat, 9 Mar 2013 00:39:30 +0000 (19:39 -0500)]
Issue #17332: fix json doc typo /convered/converted/ found by Ernie Hershey.

12 years agoIssue #17332: fix json doc typo /convered/converted/ found by Ernie Hershey.
Terry Jan Reedy [Sat, 9 Mar 2013 00:35:15 +0000 (19:35 -0500)]
Issue #17332: fix json doc typo /convered/converted/ found by Ernie Hershey.

12 years agoCloses #17376: Merged clarification from 3.3.
Vinay Sajip [Fri, 8 Mar 2013 23:27:24 +0000 (23:27 +0000)]
Closes #17376: Merged clarification from 3.3.

12 years agoIssue #17376: Merged clarification from 3.2.
Vinay Sajip [Fri, 8 Mar 2013 23:26:43 +0000 (23:26 +0000)]
Issue #17376: Merged clarification from 3.2.

12 years agoIssue #17376: Clarified documentation for TimedRotatingFileHandler weekday rotation.
Vinay Sajip [Fri, 8 Mar 2013 23:24:30 +0000 (23:24 +0000)]
Issue #17376: Clarified documentation for TimedRotatingFileHandler weekday rotation.

12 years agofix warning (closes #17327)
Benjamin Peterson [Fri, 8 Mar 2013 13:36:49 +0000 (08:36 -0500)]
fix warning (closes #17327)

12 years agoIssue #17378: ctypes documentation fix.
Eli Bendersky [Fri, 8 Mar 2013 13:33:05 +0000 (05:33 -0800)]
Issue #17378: ctypes documentation fix.

Document that ctypes automatically applies byref() when argtypes declares
POINTER.

12 years agoIssue #17378: ctypes documentation fix.
Eli Bendersky [Fri, 8 Mar 2013 13:32:45 +0000 (05:32 -0800)]
Issue #17378: ctypes documentation fix.

Document that ctypes automatically applies byref() when argtypes declares
POINTER.

12 years agoIssue #17378: ctypes documentation fix.
Eli Bendersky [Fri, 8 Mar 2013 13:31:54 +0000 (05:31 -0800)]
Issue #17378: ctypes documentation fix.

Document that ctypes automatically applies byref() when argtypes declares
POINTER.

12 years agoIssue #17384: Consolidated cleanup operations in tests.
Vinay Sajip [Fri, 8 Mar 2013 09:50:57 +0000 (09:50 +0000)]
Issue #17384: Consolidated cleanup operations in tests.

12 years agoAdd PyDict_SetDefault. (closes #17327)
Benjamin Peterson [Fri, 8 Mar 2013 03:16:29 +0000 (22:16 -0500)]
Add PyDict_SetDefault. (closes #17327)

Patch by Stefan Behnel and I.

12 years ago(Merge 3.3) Issue #17223: the test is specific to 32-bit wchar_t type
Victor Stinner [Fri, 8 Mar 2013 01:33:44 +0000 (02:33 +0100)]
(Merge 3.3) Issue #17223: the test is specific to 32-bit wchar_t type

Skip the test on Windows.

12 years agoIssue #17223: the test is specific to 32-bit wchar_t type
Victor Stinner [Fri, 8 Mar 2013 01:33:06 +0000 (02:33 +0100)]
Issue #17223: the test is specific to 32-bit wchar_t type

Skip the test on Windows.

12 years agoMerge: PEP8 fixup on previous patch, remove unused imports in test_email.
R David Murray [Thu, 7 Mar 2013 23:17:19 +0000 (18:17 -0500)]
Merge: PEP8 fixup on previous patch, remove unused imports in test_email.

12 years agoMerge: PEP8 fixup on previous patch, remove unused imports in test_email.
R David Murray [Thu, 7 Mar 2013 23:16:47 +0000 (18:16 -0500)]
Merge: PEP8 fixup on previous patch, remove unused imports in test_email.

12 years agoPEP8 fixup on previous patch, remove unused import in test_email.
R David Murray [Thu, 7 Mar 2013 23:15:13 +0000 (18:15 -0500)]
PEP8 fixup on previous patch, remove unused import in test_email.

12 years agoMerge: #14645: Generator now emits correct linesep for all parts.
R David Murray [Thu, 7 Mar 2013 22:31:21 +0000 (17:31 -0500)]
Merge: #14645: Generator now emits correct linesep for all parts.

Previously the parts of the message retained whatever linesep they had on
read, which means if the messages weren't read in univeral newline mode, the
line endings could well be inconsistent.  In general sending it via smtplib
would result in them getting fixed, but it is better to generate them
correctly to begin with.  Also, the new send_message method of smtplib does
not do the fixup, so that method is producing rfc-invalid output without this
fix.

12 years agoMerge: #14645: Generator now emits correct linesep for all parts.
R David Murray [Thu, 7 Mar 2013 21:43:58 +0000 (16:43 -0500)]
Merge: #14645: Generator now emits correct linesep for all parts.

Previously the parts of the message retained whatever linesep they had on
read, which means if the messages weren't read in univeral newline mode, the
line endings could well be inconsistent.  In general sending it via smtplib
would result in them getting fixed, but it is better to generate them
correctly to begin with.  Also, the new send_message method of smtplib does
not do the fixup, so that method is producing rfc-invalid output without this
fix.

12 years ago#14645: Generator now emits correct linesep for all parts.
R David Murray [Thu, 7 Mar 2013 21:38:03 +0000 (16:38 -0500)]
#14645: Generator now emits correct linesep for all parts.

Previously the parts of the message retained whatever linesep they had on
read, which means if the messages weren't read in univeral newline mode, the
line endings could well be inconsistent.  In general sending it via smtplib
would result in them getting fixed, but it is better to generate them
correctly to begin with.  Also, the new send_message method of smtplib does
not do the fixup, so that method is producing rfc-invalid output without this
fix.

12 years agoFix memory leak introduced in 15190138d3f3.
Ezio Melotti [Thu, 7 Mar 2013 19:18:45 +0000 (21:18 +0200)]
Fix memory leak introduced in 15190138d3f3.

12 years agoMerge typo fix in Misc/NEWS entry from 3.3.
Ezio Melotti [Thu, 7 Mar 2013 17:56:15 +0000 (19:56 +0200)]
Merge typo fix in Misc/NEWS entry from 3.3.

12 years agoMerge typo fix in Misc/NEWS entry from 3.2.
Ezio Melotti [Thu, 7 Mar 2013 17:55:08 +0000 (19:55 +0200)]
Merge typo fix in Misc/NEWS entry from 3.2.

12 years agoFix typo in Misc/NEWS entry.
Ezio Melotti [Thu, 7 Mar 2013 17:53:19 +0000 (19:53 +0200)]
Fix typo in Misc/NEWS entry.

12 years ago#11732: null merge with 3.3.
Ezio Melotti [Thu, 7 Mar 2013 16:46:09 +0000 (18:46 +0200)]
#11732: null merge with 3.3.

12 years ago#11732: null merge with 3.2.
Ezio Melotti [Thu, 7 Mar 2013 16:45:48 +0000 (18:45 +0200)]
#11732: null merge with 3.2.

12 years ago#11732: add a new suppress_crash_popup() context manager to test.support that disable...
Ezio Melotti [Thu, 7 Mar 2013 16:44:29 +0000 (18:44 +0200)]
#11732: add a new suppress_crash_popup() context manager to test.support that disables crash popups on Windows and use it in test_ctypes.

12 years ago#11732: merge with 3.3.
Ezio Melotti [Thu, 7 Mar 2013 16:38:45 +0000 (18:38 +0200)]
#11732: merge with 3.3.

12 years ago#11732: make suppress_crash_popup() work on Windows XP and Windows Server 2003.
Ezio Melotti [Thu, 7 Mar 2013 16:37:13 +0000 (18:37 +0200)]
#11732: make suppress_crash_popup() work on Windows XP and Windows Server 2003.

12 years agoMerge fix for #15465 from 3.3
Nick Coghlan [Thu, 7 Mar 2013 13:45:03 +0000 (23:45 +1000)]
Merge fix for #15465 from 3.3

12 years agoClose #15465: Document C API version macros
Nick Coghlan [Thu, 7 Mar 2013 13:14:44 +0000 (23:14 +1000)]
Close #15465: Document C API version macros

Mostly moving the existing macro docs over from the standard
library docs to the C API docs where they belong.

Patch by Kushal Das.

12 years agoRefactor ftplib by getting rid of 4 methods (retr*() and stor*()) which were duplicat...
Giampaolo Rodola' [Thu, 7 Mar 2013 13:03:27 +0000 (14:03 +0100)]
Refactor ftplib by getting rid of 4 methods (retr*() and stor*()) which were duplicated in TLS_FTP class.

12 years agoPEP8-ify ftplib.py: get rid of multiple statements on one line (if cond: ...)
Giampaolo Rodola' [Thu, 7 Mar 2013 12:51:20 +0000 (13:51 +0100)]
PEP8-ify ftplib.py: get rid of multiple statements on one line (if cond: ...)

12 years agoMerge 3.3.
Stefan Krah [Thu, 7 Mar 2013 00:23:01 +0000 (01:23 +0100)]
Merge 3.3.

12 years agoIssue #17361: Use cc from sysconfig for testing flags.
Stefan Krah [Thu, 7 Mar 2013 00:12:03 +0000 (01:12 +0100)]
Issue #17361: Use cc from sysconfig for testing flags.

12 years ago(Merge 3.3) _PyUnicode_Writer() now also reuses Unicode singletons:
Victor Stinner [Wed, 6 Mar 2013 18:29:09 +0000 (19:29 +0100)]
(Merge 3.3) _PyUnicode_Writer() now also reuses Unicode singletons:
empty string and latin1 single character

12 years ago_PyUnicode_Writer() now also reuses Unicode singletons:
Victor Stinner [Wed, 6 Mar 2013 18:28:37 +0000 (19:28 +0100)]
_PyUnicode_Writer() now also reuses Unicode singletons:
empty string and latin1 single character

12 years agoFix doc grammar and line width
Eli Bendersky [Wed, 6 Mar 2013 14:50:36 +0000 (06:50 -0800)]
Fix doc grammar and line width

12 years agoFix doc grammar and line width
Eli Bendersky [Wed, 6 Mar 2013 14:49:22 +0000 (06:49 -0800)]
Fix doc grammar and line width

12 years agoFix doc grammar and line width
Eli Bendersky [Wed, 6 Mar 2013 14:48:57 +0000 (06:48 -0800)]
Fix doc grammar and line width

12 years agoFix formatting changes that led to compilation errors
Eli Bendersky [Wed, 6 Mar 2013 14:30:23 +0000 (06:30 -0800)]
Fix formatting changes that led to compilation errors

12 years agocall_commethod was only used in samples/Windows, which no longer exists.
Eli Bendersky [Wed, 6 Mar 2013 14:21:46 +0000 (06:21 -0800)]
call_commethod was only used in samples/Windows, which no longer exists.
This method is dead code - not documented, not tested. As far as we know, it
can be horribly broken.

12 years agoFix some formatting
Eli Bendersky [Wed, 6 Mar 2013 13:45:57 +0000 (05:45 -0800)]
Fix some formatting

12 years ago#17364: merge with 3.3.
Ezio Melotti [Wed, 6 Mar 2013 01:23:52 +0000 (03:23 +0200)]
#17364: merge with 3.3.

12 years ago#17364: merge with 3.2.
Ezio Melotti [Wed, 6 Mar 2013 01:23:28 +0000 (03:23 +0200)]
#17364: merge with 3.2.

12 years ago#17364: remove documentation for a function that does not exist.
Ezio Melotti [Wed, 6 Mar 2013 01:20:27 +0000 (03:20 +0200)]
#17364: remove documentation for a function that does not exist.

12 years ago#17363: merge with 3.3.
Ezio Melotti [Wed, 6 Mar 2013 00:59:25 +0000 (02:59 +0200)]
#17363: merge with 3.3.

12 years ago#17363: fix arguments in PyState_AddModule and PyState_RemoveModule docs.
Ezio Melotti [Wed, 6 Mar 2013 00:57:25 +0000 (02:57 +0200)]
#17363: fix arguments in PyState_AddModule and PyState_RemoveModule docs.

12 years agoBacked out changeset b9f7b1bf36aa
Victor Stinner [Wed, 6 Mar 2013 00:09:24 +0000 (01:09 +0100)]
Backed out changeset b9f7b1bf36aa

12 years agoIssue #17223: Fix PyUnicode_FromUnicode() on Windows (16-bit wchar_t type)
Victor Stinner [Tue, 5 Mar 2013 23:41:50 +0000 (00:41 +0100)]
Issue #17223: Fix PyUnicode_FromUnicode() on Windows (16-bit wchar_t type)
to reject invalid UTF-16 surrogate.

12 years agoIssue #17223: Add another test to check that _PyUnicode_Ready() rejects
Victor Stinner [Tue, 5 Mar 2013 23:39:03 +0000 (00:39 +0100)]
Issue #17223: Add another test to check that _PyUnicode_Ready() rejects
code points bigger than U+10ffff

12 years ago#11732: merge with 3.3.
Ezio Melotti [Tue, 5 Mar 2013 18:33:38 +0000 (20:33 +0200)]
#11732: merge with 3.3.

12 years agoFix indentation.
Ezio Melotti [Tue, 5 Mar 2013 18:31:34 +0000 (20:31 +0200)]
Fix indentation.

12 years ago#11732: add a new suppress_crash_popup() context manager to test.support.
Ezio Melotti [Tue, 5 Mar 2013 18:26:17 +0000 (20:26 +0200)]
#11732: add a new suppress_crash_popup() context manager to test.support.

12 years agoReverting the changeset b87792757ee8 made for Issue #12921
Senthil Kumaran [Tue, 5 Mar 2013 10:28:18 +0000 (02:28 -0800)]
Reverting the changeset b87792757ee8  made for Issue #12921

12 years agoReverting the changeset 5d76a4746d9d made for Issue #12921
Senthil Kumaran [Tue, 5 Mar 2013 10:26:50 +0000 (02:26 -0800)]
Reverting the changeset 5d76a4746d9d made for Issue #12921

12 years agoReverting the changeset 5126e62c60af made for Issue #12921
Senthil Kumaran [Tue, 5 Mar 2013 10:25:58 +0000 (02:25 -0800)]
Reverting the changeset 5126e62c60af made for Issue #12921

12 years agoFix Issue #12921: BaseHTTPServer's send_error should send the correct error
Senthil Kumaran [Tue, 5 Mar 2013 09:26:33 +0000 (01:26 -0800)]
Fix Issue #12921: BaseHTTPServer's send_error should send the correct error
response message when  send_error includes a message in addition to error
status. Patch contributed by Karl.

12 years agoFix Issue #12921: BaseHTTPServer's send_error should send the correct error
Senthil Kumaran [Tue, 5 Mar 2013 09:23:44 +0000 (01:23 -0800)]
Fix Issue #12921: BaseHTTPServer's send_error should send the correct error
response message when  send_error includes a message in addition to error
status. Patch contributed by Karl.

12 years agoFix Issue #12921: BaseHTTPServer's send_error should send the correct error
Senthil Kumaran [Tue, 5 Mar 2013 09:22:57 +0000 (01:22 -0800)]
Fix Issue #12921: BaseHTTPServer's send_error should send the correct error
response message when  send_error includes a message in addition to error
status. Patch contributed by Karl.

12 years agomerge
Raymond Hettinger [Tue, 5 Mar 2013 07:11:37 +0000 (02:11 -0500)]
merge

12 years agoFix typo
Raymond Hettinger [Tue, 5 Mar 2013 07:11:10 +0000 (02:11 -0500)]
Fix typo

12 years agomerge
Raymond Hettinger [Tue, 5 Mar 2013 06:37:02 +0000 (01:37 -0500)]
merge

12 years agoIssue #16098: Update heapq.nsmallest to use the same algorithm as nlargest.
Raymond Hettinger [Tue, 5 Mar 2013 06:36:30 +0000 (01:36 -0500)]
Issue #16098:  Update heapq.nsmallest to use the same algorithm as nlargest.

This removes the dependency on bisect and it bring the pure Python code
in-sync with the C code.

12 years agoUse LT in all comparisons
Raymond Hettinger [Tue, 5 Mar 2013 06:17:57 +0000 (01:17 -0500)]
Use LT in all comparisons

12 years agoIssue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when the list is...
Antoine Pitrou [Mon, 4 Mar 2013 19:35:55 +0000 (20:35 +0100)]
Issue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when the list is being resized concurrently.

12 years agoIssue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when the list is...
Antoine Pitrou [Mon, 4 Mar 2013 19:33:36 +0000 (20:33 +0100)]
Issue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when the list is being resized concurrently.

12 years agoIssue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when the list is...
Antoine Pitrou [Mon, 4 Mar 2013 19:30:01 +0000 (20:30 +0100)]
Issue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when the list is being resized concurrently.

12 years agomerge 3.3 (#17328)
Benjamin Peterson [Mon, 4 Mar 2013 14:48:30 +0000 (09:48 -0500)]
merge 3.3 (#17328)

12 years agofix possible setdefault refleak (closes #17328)
Benjamin Peterson [Mon, 4 Mar 2013 14:47:50 +0000 (09:47 -0500)]
fix possible setdefault refleak (closes #17328)

12 years ago#17346: merge with 3.3.
Ezio Melotti [Mon, 4 Mar 2013 13:21:14 +0000 (15:21 +0200)]
#17346: merge with 3.3.