]>
granicus.if.org Git - python/log
R David Murray [Mon, 4 Jun 2012 19:55:51 +0000 (15:55 -0400)]
#8739: fix omission of DEBUGSTREAM reset in new test in test_smtpd.
This clears up an error in detected by refleak mode that showed up when
test_smtplib was run after test_smtpd in the same refleak run.
Richard Oudkerk [Mon, 4 Jun 2012 17:59:10 +0000 (18:59 +0100)]
Prevent handle leak if CreateProcess() fails in multiprocessing
Richard Oudkerk [Mon, 4 Jun 2012 17:59:07 +0000 (18:59 +0100)]
Fix potential NameError in multiprocessing.Condition.wait()
Richard Oudkerk [Mon, 4 Jun 2012 17:58:59 +0000 (18:58 +0100)]
Make Finalize reserve a reference to os.getpid in case called at shutdown
Richard Oudkerk [Mon, 4 Jun 2012 17:24:44 +0000 (18:24 +0100)]
Add namespaceobject.h and namespaceobject.c to pythoncore.vcxproj
Hynek Schlawack [Mon, 4 Jun 2012 16:14:02 +0000 (18:14 +0200)]
#14814: Remove dead code from ipaddress
_BaseNetwork contained (faulty) methods for creating string representations.
I've fixed them and put them to use by eliminating identical overrides.
Barry Warsaw [Mon, 4 Jun 2012 16:02:42 +0000 (12:02 -0400)]
Whitespace normalization
Barry Warsaw [Mon, 4 Jun 2012 16:01:56 +0000 (12:01 -0400)]
PEP 421 requires that .name be lower case.
Barry Warsaw [Mon, 4 Jun 2012 15:06:45 +0000 (11:06 -0400)]
A few documentation improvements, spurred on by Brett's review.
Barry Warsaw [Mon, 4 Jun 2012 13:51:53 +0000 (09:51 -0400)]
Add NEWS entry.
Barry Warsaw [Mon, 4 Jun 2012 13:41:48 +0000 (09:41 -0400)]
Trunk merge.
Hynek Schlawack [Mon, 4 Jun 2012 12:19:39 +0000 (14:19 +0200)]
#14814: Use correct comparison for IP addresses
ipaddress._BaseV4.is_unspecified() compared IP addresses using "in" which
fails.
Raymond Hettinger [Mon, 4 Jun 2012 07:32:15 +0000 (00:32 -0700)]
Add usage note.
Raymond Hettinger [Mon, 4 Jun 2012 07:21:14 +0000 (00:21 -0700)]
Separate key creation logic from the sequence class that memoizes its hash value.
Benjamin Peterson [Mon, 4 Jun 2012 01:15:15 +0000 (18:15 -0700)]
__GNUC__ does not imply gcc version is present, so just check for version (closes #14994)
Gregory P. Smith [Sun, 3 Jun 2012 21:40:32 +0000 (14:40 -0700)]
null merge (not removing the new feature in 3.3)
Gregory P. Smith [Sun, 3 Jun 2012 21:39:26 +0000 (14:39 -0700)]
Revert the modification of e.strerror in 3.2 as that kind of change could
break someone's over specified test that depends on the exact error message.
Gregory P. Smith [Sun, 3 Jun 2012 21:36:38 +0000 (14:36 -0700)]
null merge from 3.2
Gregory P. Smith [Sun, 3 Jun 2012 21:36:01 +0000 (14:36 -0700)]
Move the 14992 note to the correct section.
Gregory P. Smith [Sun, 3 Jun 2012 21:35:09 +0000 (14:35 -0700)]
Fixes Issue #14992: os.makedirs(path, exist_ok=True) would raise an OSError
when the path existed and had the S_ISGID mode bit set when it was
not explicitly asked for. This is no longer an exception as mkdir
cannot control if the OS sets that bit for it or not.
Gregory P. Smith [Sun, 3 Jun 2012 21:30:44 +0000 (14:30 -0700)]
Fixes Issue #14992: os.makedirs(path, exist_ok=True) would raise an OSError
when the path existed and had the S_ISGID mode bit set when it was not
explicitly asked for. This is no longer an exception as mkdir cannot control
if the OS sets that bit for it or not.
Barry Warsaw [Sun, 3 Jun 2012 20:18:47 +0000 (16:18 -0400)]
Eric Snow's implementation of PEP 421.
Issue 14673: Add sys.implementation
R David Murray [Sun, 3 Jun 2012 16:27:07 +0000 (12:27 -0400)]
#2658: Add test for issue fixed by fix for #1079.
Martin v. Löwis [Sun, 3 Jun 2012 10:33:23 +0000 (12:33 +0200)]
merge 3.2
Martin v. Löwis [Sun, 3 Jun 2012 10:32:42 +0000 (12:32 +0200)]
PEP 3131: support non-ASCII characters in auto-completion of identifiers.
Martin v. Löwis [Sun, 3 Jun 2012 10:26:09 +0000 (12:26 +0200)]
Do not try to insert control characters.
Martin v. Löwis [Sun, 3 Jun 2012 10:03:29 +0000 (12:03 +0200)]
Drop unused constant.
Martin v. Löwis [Sun, 3 Jun 2012 10:00:48 +0000 (12:00 +0200)]
Merge 3.2: issue #14937.
Martin v. Löwis [Sun, 3 Jun 2012 09:55:32 +0000 (11:55 +0200)]
Issue #14937: Perform auto-completion of filenames in strings even for non-ASCII filenames.
Senthil Kumaran [Sun, 3 Jun 2012 08:16:39 +0000 (16:16 +0800)]
merge heads
Senthil Kumaran [Sun, 3 Jun 2012 08:15:54 +0000 (16:15 +0800)]
Issue 14989: http.server --cgi option can enable the CGI http server.
Eli Bendersky [Sun, 3 Jun 2012 05:09:33 +0000 (08:09 +0300)]
merge
Eli Bendersky [Sun, 3 Jun 2012 05:07:47 +0000 (08:07 +0300)]
Issue #14090: fix some minor C API problems in default branch (3.3)
Terry Jan Reedy [Sun, 3 Jun 2012 05:06:38 +0000 (01:06 -0400)]
Merge with 3.2 #12510
Terry Jan Reedy [Sun, 3 Jun 2012 04:27:54 +0000 (00:27 -0400)]
Issue 12510: Expand 2 bare excepts. Improve comments. Change deceptive name
'name' to 'expression' as the latter is what the string actually represents.
The bug in this issue was only catching NameError and AttributeError when
evaluating an expression that was not necessarily a name.
Eli Bendersky [Sun, 3 Jun 2012 03:47:53 +0000 (06:47 +0300)]
Issue #14424: Document PyType_GenericAlloc, and fix the documentation of PyType_GenericNew
Eli Bendersky [Sun, 3 Jun 2012 03:09:42 +0000 (06:09 +0300)]
Fix unterminated keyword array passed to PyArg_ParseTupleAndKeywords
Brett Cannon [Sun, 3 Jun 2012 02:28:42 +0000 (22:28 -0400)]
Issue #14987: Add a missing import statement
Terry Jan Reedy [Sun, 3 Jun 2012 00:24:21 +0000 (20:24 -0400)]
Merge with 3.2 #10365
Terry Jan Reedy [Sun, 3 Jun 2012 00:22:58 +0000 (20:22 -0400)]
Issue 10365: Add and replace comments; condense defaulted attribute access.
Code patch by Roger Serwy.
R David Murray [Sat, 2 Jun 2012 21:56:49 +0000 (17:56 -0400)]
#1079: Fix parsing of encoded words.
This is a behavior change: before this leading and trailing spaces were
stripped from ASCII parts, now they are preserved. Without this fix we didn't
parse the examples in the RFC correctly, so I think breaking backward
compatibility here is justified.
Patch by Ralf Schlatterbeck.
Sandro Tosi [Sat, 2 Jun 2012 21:42:08 +0000 (23:42 +0200)]
null merge
Sandro Tosi [Sat, 2 Jun 2012 21:41:19 +0000 (23:41 +0200)]
backport
c4bd68be5fc6 to 3.2
Sandro Tosi [Sat, 2 Jun 2012 17:40:20 +0000 (19:40 +0200)]
Issue #14926: merge with 3.2
Sandro Tosi [Sat, 2 Jun 2012 17:40:02 +0000 (19:40 +0200)]
Issue #14926: fix docstring highlight
Sandro Tosi [Sat, 2 Jun 2012 16:22:31 +0000 (18:22 +0200)]
merge with 3.2
Sandro Tosi [Sat, 2 Jun 2012 16:22:02 +0000 (18:22 +0200)]
refer to time.strftime
R David Murray [Sat, 2 Jun 2012 15:20:53 +0000 (11:20 -0400)]
#14957: fix doc typo.
R David Murray [Sat, 2 Jun 2012 15:20:29 +0000 (11:20 -0400)]
#14957: fix doc typo.
Sandro Tosi [Sat, 2 Jun 2012 15:16:33 +0000 (17:16 +0200)]
Issue #14814: use print() function
Sandro Tosi [Sat, 2 Jun 2012 15:14:22 +0000 (17:14 +0200)]
Issue #14814: minor spelling fixes
Benjamin Peterson [Sat, 2 Jun 2012 06:57:50 +0000 (23:57 -0700)]
merge 3.2
Benjamin Peterson [Sat, 2 Jun 2012 06:57:36 +0000 (23:57 -0700)]
don't leak if the __class__ closure is set
Victor Stinner [Fri, 1 Jun 2012 20:45:23 +0000 (22:45 +0200)]
Fix sporadic failure of test_time.test_process_time() on Windows
Use a threshold of 20 ms instead of 10 ms.
R David Murray [Fri, 1 Jun 2012 20:20:26 +0000 (16:20 -0400)]
#14957: clarify splitlines docs.
Initial patch by Michael Driscoll, I added the example.
R David Murray [Fri, 1 Jun 2012 20:19:36 +0000 (16:19 -0400)]
#14957: clarify splitlines docs.
Initial patch by Michael Driscoll, I added the example.
Sandro Tosi [Fri, 1 Jun 2012 18:25:36 +0000 (20:25 +0200)]
merge heads
Sandro Tosi [Fri, 1 Jun 2012 18:23:46 +0000 (20:23 +0200)]
Issue #14968: merge with 3.2
Sandro Tosi [Fri, 1 Jun 2012 18:23:20 +0000 (20:23 +0200)]
Issue #14968: set 'Inplace Operators' as subsection; patch by Lars Buitinck
Benjamin Peterson [Fri, 1 Jun 2012 18:18:22 +0000 (11:18 -0700)]
check return for error
Hynek Schlawack [Fri, 1 Jun 2012 18:12:17 +0000 (20:12 +0200)]
#14814: Fix errror message creation in ipaddress.collapse_addresses
Nick Coghlan [Fri, 1 Jun 2012 12:48:32 +0000 (22:48 +1000)]
Close #14969: Improve the handling of exception chaining in contextlib.ExitStack
Hynek Schlawack [Fri, 1 Jun 2012 09:48:32 +0000 (11:48 +0200)]
#14814: Remove 2.x's new-style classes syntax from ipaddress
Stefan Krah [Fri, 1 Jun 2012 08:58:16 +0000 (10:58 +0200)]
word.digits are always initialized before use in the Taylor series loop,
but this is more readable.
Eli Bendersky [Fri, 1 Jun 2012 08:32:34 +0000 (11:32 +0300)]
Issue #14007: implement doctype() method calling in XMLParser of _elementtree.
Includes exposing a doctype handler from expat through pyexpat.
Eli Bendersky [Fri, 1 Jun 2012 06:48:37 +0000 (09:48 +0300)]
We're always building _elementtree with USE_PYEXPAT_CAPI, so the #ifdefs in
the code are unnecessary.
Brian Curtin [Fri, 1 Jun 2012 05:07:28 +0000 (00:07 -0500)]
Reformat two issue numbers
Eli Bendersky [Fri, 1 Jun 2012 04:15:00 +0000 (07:15 +0300)]
fix trailing whitespace
Eli Bendersky [Fri, 1 Jun 2012 04:13:08 +0000 (07:13 +0300)]
Issue #14007: make XMLParser a real subclassable type exported from _elementtree. +cleanups
Hynek Schlawack [Thu, 31 May 2012 22:20:13 +0000 (00:20 +0200)]
#14814: Remove stale __hex__ method from ipaddress
Obsolete 2.x method.
R David Murray [Thu, 31 May 2012 22:00:45 +0000 (18:00 -0400)]
Don't use metaclasses when class decorators can do the job.
Thanks to Nick Coghlan for pointing out that I'd forgotten about class
decorators.
Georg Brandl [Thu, 31 May 2012 20:41:51 +0000 (22:41 +0200)]
Post-release update.
Martin v. Löwis [Thu, 31 May 2012 19:58:21 +0000 (21:58 +0200)]
VS 2010 has the AMD64 redist files in VC\redist\x64.
Martin v. Löwis [Thu, 31 May 2012 19:53:36 +0000 (21:53 +0200)]
Update to Tcl/Tk 8.5.11.
Stefan Krah [Thu, 31 May 2012 18:49:24 +0000 (20:49 +0200)]
Use workctx instead of ctx for cosmetic reasons. Also zero-pad the result
in the simple path (not correctly rounded but faster).
Stefan Krah [Thu, 31 May 2012 18:01:05 +0000 (20:01 +0200)]
Improve Underflow handling in the correct-rounding loop. The case for
Underflow to zero hasn't changed: _mpd_qexp() internally uses MIN_EMIN,
so the result would also underflow to zero for all emin > MIN_EMIN.
In case digits are left, the informal argument is as follows: Underflow can
occur only once in the last multiplication of the power stage (in the Horner
stage Underflow provably cannot occur, and if Underflow occurred twice in
the power stage, the result would underflow to zero on the second occasion).
Since there is no double rounding during Underflow, the effective work
precision is now 1 <= result->digits < prec. It can be shown by a somewhat
tedious argument that abs(result - e**x) < ulp(result, result->digits).
Therefore the correct rounding loop now uses ulp(result, result->digits)
to generate the bounds for e**x in case of Underflow.
Ned Deily [Thu, 31 May 2012 16:58:08 +0000 (09:58 -0700)]
Issue #14962: merge
Ned Deily [Thu, 31 May 2012 16:17:29 +0000 (09:17 -0700)]
Issue #14962: Update text coloring in IDLE shell window after changing
options. Patch by Roger Serwy.
Kristjan Valur Jonsson [Thu, 31 May 2012 15:09:21 +0000 (15:09 +0000)]
Issue #14952: Fix incorrect output dll names for win64/debug builds, causing
the dll importer on windows to fail.
Stefan Krah [Thu, 31 May 2012 14:21:34 +0000 (16:21 +0200)]
Improve comments.
Stefan Krah [Thu, 31 May 2012 14:03:49 +0000 (16:03 +0200)]
Merge.
Nick Coghlan [Thu, 31 May 2012 14:00:38 +0000 (00:00 +1000)]
Close #14963: Use an iterative algorithm in contextlib.ExitStack.__exit__ (Patch by Alon Horev)
Stefan Krah [Thu, 31 May 2012 14:00:21 +0000 (16:00 +0200)]
Pad the result with zeros just before the final rounding.
Nick Coghlan [Thu, 31 May 2012 13:49:26 +0000 (23:49 +1000)]
Issue #14963: Added test cases for contextlib.ExitStack exception handling behaviour (Initial patch by Alon Horev)
Stefan Krah [Thu, 31 May 2012 13:09:27 +0000 (15:09 +0200)]
Do not clobber existing flags.
Nick Coghlan [Thu, 31 May 2012 12:34:59 +0000 (22:34 +1000)]
Typo fix
Nick Coghlan [Thu, 31 May 2012 12:17:08 +0000 (22:17 +1000)]
Additional ExitStack examples, and a few other cleanups for the ExitStack docs
Vinay Sajip [Thu, 31 May 2012 11:38:55 +0000 (12:38 +0100)]
Null merge from 3.2.
Vinay Sajip [Thu, 31 May 2012 11:37:04 +0000 (12:37 +0100)]
Added test skip under Windows, as not applicable there.
Kristjan Valur Jonsson [Thu, 31 May 2012 09:37:31 +0000 (09:37 +0000)]
Issue #14909: A number of places were using PyMem_Realloc() apis and
PyObject_GC_Resize() with incorrect error handling. In case of errors,
the original object would be leaked. This checkin fixes those cases.
R David Murray [Thu, 31 May 2012 01:53:40 +0000 (21:53 -0400)]
Make parameterized tests in email less hackish.
Or perhaps more hackish, depending on your perspective. But at least this
way it is now possible to run the individual tests using the unittest CLI.
Georg Brandl [Wed, 30 May 2012 20:04:57 +0000 (22:04 +0200)]
Merge heads.
Georg Brandl [Wed, 30 May 2012 20:04:40 +0000 (22:04 +0200)]
Added tag v3.3.0a4 for changeset
7c51388a3aa7
Georg Brandl [Wed, 30 May 2012 20:04:31 +0000 (22:04 +0200)]
Bump version to 3.3.0a4.
Georg Brandl [Wed, 30 May 2012 20:03:20 +0000 (22:03 +0200)]
Update pydoc topics and fix new suspicious markup.
Eli Bendersky [Wed, 30 May 2012 14:57:50 +0000 (17:57 +0300)]
Issue #14007: implemented the 'element_factory' feature of TreeBuilder in
_elementtree, with a test.
Nick Coghlan [Wed, 30 May 2012 12:17:30 +0000 (22:17 +1000)]
Close #14947: add missing cross-reference to Language Definition from the new dynamic type creation functions. Also cleaned up the general wording of the docs
R David Murray [Wed, 30 May 2012 12:10:54 +0000 (08:10 -0400)]
#14796: fix failure of new calendar test on windows.
Victor Stinner [Wed, 30 May 2012 11:30:32 +0000 (13:30 +0200)]
Close #14690: Use monotonic clock instead of system clock in the sched,
subprocess and trace modules.
Ned Deily [Wed, 30 May 2012 05:55:43 +0000 (22:55 -0700)]
Issue #14958: Change IDLE systax highlighting to recognize all string and
byte literals supported in Python 3.3.