]> granicus.if.org Git - python/log
python
12 years agoFix potential NameError in multiprocessing.Condition.wait()
Richard Oudkerk [Mon, 4 Jun 2012 17:59:07 +0000 (18:59 +0100)]
Fix potential NameError in multiprocessing.Condition.wait()

12 years agoMake Finalize reserve a reference to os.getpid in case called at shutdown
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

12 years agoAdd namespaceobject.h and namespaceobject.c to pythoncore.vcxproj
Richard Oudkerk [Mon, 4 Jun 2012 17:24:44 +0000 (18:24 +0100)]
Add namespaceobject.h and namespaceobject.c to pythoncore.vcxproj

12 years ago#14814: Remove dead code from ipaddress
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.

12 years agoWhitespace normalization
Barry Warsaw [Mon, 4 Jun 2012 16:02:42 +0000 (12:02 -0400)]
Whitespace normalization

12 years agoPEP 421 requires that .name be lower case.
Barry Warsaw [Mon, 4 Jun 2012 16:01:56 +0000 (12:01 -0400)]
PEP 421 requires that .name be lower case.

12 years agoA few documentation improvements, spurred on by Brett's review.
Barry Warsaw [Mon, 4 Jun 2012 15:06:45 +0000 (11:06 -0400)]
A few documentation improvements, spurred on by Brett's review.

12 years agoAdd NEWS entry.
Barry Warsaw [Mon, 4 Jun 2012 13:51:53 +0000 (09:51 -0400)]
Add NEWS entry.

12 years agoTrunk merge.
Barry Warsaw [Mon, 4 Jun 2012 13:41:48 +0000 (09:41 -0400)]
Trunk merge.

12 years ago#14814: Use correct comparison for IP addresses
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.

12 years agoAdd usage note.
Raymond Hettinger [Mon, 4 Jun 2012 07:32:15 +0000 (00:32 -0700)]
Add usage note.

12 years agoSeparate key creation logic from the sequence class that memoizes its hash value.
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.

12 years ago__GNUC__ does not imply gcc version is present, so just check for version (closes...
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)

12 years agonull merge (not removing the new feature in 3.3)
Gregory P. Smith [Sun, 3 Jun 2012 21:40:32 +0000 (14:40 -0700)]
null merge (not removing the new feature in 3.3)

12 years agoRevert the modification of e.strerror in 3.2 as that kind of change could
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.

12 years agonull merge from 3.2
Gregory P. Smith [Sun, 3 Jun 2012 21:36:38 +0000 (14:36 -0700)]
null merge from 3.2

12 years agoMove the 14992 note to the correct section.
Gregory P. Smith [Sun, 3 Jun 2012 21:36:01 +0000 (14:36 -0700)]
Move the 14992 note to the correct section.

12 years agoFixes Issue #14992: os.makedirs(path, exist_ok=True) would raise an OSError
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.

12 years agoFixes Issue #14992: os.makedirs(path, exist_ok=True) would raise an OSError
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.

12 years agoEric Snow's implementation of PEP 421.
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

12 years ago#2658: Add test for issue fixed by fix for #1079.
R David Murray [Sun, 3 Jun 2012 16:27:07 +0000 (12:27 -0400)]
#2658: Add test for issue fixed by fix for #1079.

12 years agomerge 3.2
Martin v. Löwis [Sun, 3 Jun 2012 10:33:23 +0000 (12:33 +0200)]
merge 3.2

12 years agoPEP 3131: support non-ASCII characters in auto-completion of identifiers.
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.

12 years agoDo not try to insert control characters.
Martin v. Löwis [Sun, 3 Jun 2012 10:26:09 +0000 (12:26 +0200)]
Do not try to insert control characters.

12 years agoDrop unused constant.
Martin v. Löwis [Sun, 3 Jun 2012 10:03:29 +0000 (12:03 +0200)]
Drop unused constant.

12 years agoMerge 3.2: issue #14937.
Martin v. Löwis [Sun, 3 Jun 2012 10:00:48 +0000 (12:00 +0200)]
Merge 3.2: issue #14937.

12 years agoIssue #14937: Perform auto-completion of filenames in strings even for non-ASCII...
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.

12 years agomerge heads
Senthil Kumaran [Sun, 3 Jun 2012 08:16:39 +0000 (16:16 +0800)]
merge heads

12 years agoIssue 14989: http.server --cgi option can enable the CGI http server.
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.

12 years agomerge
Eli Bendersky [Sun, 3 Jun 2012 05:09:33 +0000 (08:09 +0300)]
merge

12 years agoIssue #14090: fix some minor C API problems in default branch (3.3)
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)

12 years agoMerge with 3.2 #12510
Terry Jan Reedy [Sun, 3 Jun 2012 05:06:38 +0000 (01:06 -0400)]
Merge with 3.2 #12510

12 years agoIssue 12510: Expand 2 bare excepts. Improve comments. Change deceptive name
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.

12 years agoIssue #14424: Document PyType_GenericAlloc, and fix the documentation of PyType_Gener...
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

12 years agoFix unterminated keyword array passed to PyArg_ParseTupleAndKeywords
Eli Bendersky [Sun, 3 Jun 2012 03:09:42 +0000 (06:09 +0300)]
Fix unterminated keyword array passed to PyArg_ParseTupleAndKeywords

12 years agoIssue #14987: Add a missing import statement
Brett Cannon [Sun, 3 Jun 2012 02:28:42 +0000 (22:28 -0400)]
Issue #14987: Add a missing import statement

12 years agoMerge with 3.2 #10365
Terry Jan Reedy [Sun, 3 Jun 2012 00:24:21 +0000 (20:24 -0400)]
Merge with 3.2 #10365

12 years agoIssue 10365: Add and replace comments; condense defaulted attribute access.
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.

12 years ago#1079: Fix parsing of encoded words.
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.

12 years agonull merge
Sandro Tosi [Sat, 2 Jun 2012 21:42:08 +0000 (23:42 +0200)]
null merge

12 years agobackport c4bd68be5fc6 to 3.2
Sandro Tosi [Sat, 2 Jun 2012 21:41:19 +0000 (23:41 +0200)]
backport c4bd68be5fc6 to 3.2

12 years agoIssue #14926: merge with 3.2
Sandro Tosi [Sat, 2 Jun 2012 17:40:20 +0000 (19:40 +0200)]
Issue #14926: merge with 3.2

12 years agoIssue #14926: fix docstring highlight
Sandro Tosi [Sat, 2 Jun 2012 17:40:02 +0000 (19:40 +0200)]
Issue #14926: fix docstring highlight

12 years agomerge with 3.2
Sandro Tosi [Sat, 2 Jun 2012 16:22:31 +0000 (18:22 +0200)]
merge with 3.2

12 years agorefer to time.strftime
Sandro Tosi [Sat, 2 Jun 2012 16:22:02 +0000 (18:22 +0200)]
refer to time.strftime

12 years ago#14957: fix doc typo.
R David Murray [Sat, 2 Jun 2012 15:20:53 +0000 (11:20 -0400)]
#14957: fix doc typo.

12 years ago#14957: fix doc typo.
R David Murray [Sat, 2 Jun 2012 15:20:29 +0000 (11:20 -0400)]
#14957: fix doc typo.

12 years agoIssue #14814: use print() function
Sandro Tosi [Sat, 2 Jun 2012 15:16:33 +0000 (17:16 +0200)]
Issue #14814: use print() function

12 years agoIssue #14814: minor spelling fixes
Sandro Tosi [Sat, 2 Jun 2012 15:14:22 +0000 (17:14 +0200)]
Issue #14814: minor spelling fixes

12 years agomerge 3.2
Benjamin Peterson [Sat, 2 Jun 2012 06:57:50 +0000 (23:57 -0700)]
merge 3.2

12 years agodon't leak if the __class__ closure is set
Benjamin Peterson [Sat, 2 Jun 2012 06:57:36 +0000 (23:57 -0700)]
don't leak if the __class__ closure is set

12 years agoFix sporadic failure of test_time.test_process_time() on Windows
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.

12 years ago#14957: clarify splitlines docs.
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.

12 years ago#14957: clarify splitlines docs.
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.

12 years agomerge heads
Sandro Tosi [Fri, 1 Jun 2012 18:25:36 +0000 (20:25 +0200)]
merge heads

12 years agoIssue #14968: merge with 3.2
Sandro Tosi [Fri, 1 Jun 2012 18:23:46 +0000 (20:23 +0200)]
Issue #14968: merge with 3.2

12 years agoIssue #14968: set 'Inplace Operators' as subsection; patch by Lars Buitinck
Sandro Tosi [Fri, 1 Jun 2012 18:23:20 +0000 (20:23 +0200)]
Issue #14968: set 'Inplace Operators' as subsection; patch by Lars Buitinck

12 years agocheck return for error
Benjamin Peterson [Fri, 1 Jun 2012 18:18:22 +0000 (11:18 -0700)]
check return for error

12 years ago#14814: Fix errror message creation in ipaddress.collapse_addresses
Hynek Schlawack [Fri, 1 Jun 2012 18:12:17 +0000 (20:12 +0200)]
#14814: Fix errror message creation in ipaddress.collapse_addresses

12 years agoClose #14969: Improve the handling of exception chaining in contextlib.ExitStack
Nick Coghlan [Fri, 1 Jun 2012 12:48:32 +0000 (22:48 +1000)]
Close #14969: Improve the handling of exception chaining in contextlib.ExitStack

12 years ago#14814: Remove 2.x's new-style classes syntax from ipaddress
Hynek Schlawack [Fri, 1 Jun 2012 09:48:32 +0000 (11:48 +0200)]
#14814: Remove 2.x's new-style classes syntax from ipaddress

12 years agoword.digits are always initialized before use in the Taylor series loop,
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.

12 years agoIssue #14007: implement doctype() method calling in XMLParser of _elementtree.
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.

12 years agoWe're always building _elementtree with USE_PYEXPAT_CAPI, so the #ifdefs in
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.

12 years agoReformat two issue numbers
Brian Curtin [Fri, 1 Jun 2012 05:07:28 +0000 (00:07 -0500)]
Reformat two issue numbers

12 years agofix trailing whitespace
Eli Bendersky [Fri, 1 Jun 2012 04:15:00 +0000 (07:15 +0300)]
fix trailing whitespace

12 years agoIssue #14007: make XMLParser a real subclassable type exported from _elementtree...
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

12 years ago#14814: Remove stale __hex__ method from ipaddress
Hynek Schlawack [Thu, 31 May 2012 22:20:13 +0000 (00:20 +0200)]
#14814: Remove stale __hex__ method from ipaddress

Obsolete 2.x method.

12 years agoDon't use metaclasses when class decorators can do the job.
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.

12 years agoPost-release update.
Georg Brandl [Thu, 31 May 2012 20:41:51 +0000 (22:41 +0200)]
Post-release update.

12 years agoVS 2010 has the AMD64 redist files in VC\redist\x64.
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.

12 years agoUpdate to Tcl/Tk 8.5.11.
Martin v. Löwis [Thu, 31 May 2012 19:53:36 +0000 (21:53 +0200)]
Update to Tcl/Tk 8.5.11.

12 years agoUse workctx instead of ctx for cosmetic reasons. Also zero-pad the result
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).

12 years agoImprove Underflow handling in the correct-rounding loop. The case for
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.

12 years agoIssue #14962: merge
Ned Deily [Thu, 31 May 2012 16:58:08 +0000 (09:58 -0700)]
Issue #14962: merge

12 years agoIssue #14962: Update text coloring in IDLE shell window after changing
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.

12 years agoIssue #14952: Fix incorrect output dll names for win64/debug builds, causing
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.

12 years agoImprove comments.
Stefan Krah [Thu, 31 May 2012 14:21:34 +0000 (16:21 +0200)]
Improve comments.

12 years agoMerge.
Stefan Krah [Thu, 31 May 2012 14:03:49 +0000 (16:03 +0200)]
Merge.

12 years agoClose #14963: Use an iterative algorithm in contextlib.ExitStack.__exit__ (Patch...
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)

12 years agoPad the result with zeros just before the final rounding.
Stefan Krah [Thu, 31 May 2012 14:00:21 +0000 (16:00 +0200)]
Pad the result with zeros just before the final rounding.

12 years agoIssue #14963: Added test cases for contextlib.ExitStack exception handling behaviour...
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)

12 years agoDo not clobber existing flags.
Stefan Krah [Thu, 31 May 2012 13:09:27 +0000 (15:09 +0200)]
Do not clobber existing flags.

12 years agoTypo fix
Nick Coghlan [Thu, 31 May 2012 12:34:59 +0000 (22:34 +1000)]
Typo fix

12 years agoAdditional ExitStack examples, and a few other cleanups for the ExitStack docs
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

12 years agoNull merge from 3.2.
Vinay Sajip [Thu, 31 May 2012 11:38:55 +0000 (12:38 +0100)]
Null merge from 3.2.

12 years agoAdded test skip under Windows, as not applicable there.
Vinay Sajip [Thu, 31 May 2012 11:37:04 +0000 (12:37 +0100)]
Added test skip under Windows, as not applicable there.

12 years agoIssue #14909: A number of places were using PyMem_Realloc() apis and
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.

12 years agoMake parameterized tests in email less hackish.
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.

12 years agoMerge heads.
Georg Brandl [Wed, 30 May 2012 20:04:57 +0000 (22:04 +0200)]
Merge heads.

12 years agoAdded tag v3.3.0a4 for changeset 7c51388a3aa7
Georg Brandl [Wed, 30 May 2012 20:04:40 +0000 (22:04 +0200)]
Added tag v3.3.0a4 for changeset 7c51388a3aa7

12 years agoBump version to 3.3.0a4. v3.3.0a4
Georg Brandl [Wed, 30 May 2012 20:04:31 +0000 (22:04 +0200)]
Bump version to 3.3.0a4.

12 years agoUpdate pydoc topics and fix new suspicious markup.
Georg Brandl [Wed, 30 May 2012 20:03:20 +0000 (22:03 +0200)]
Update pydoc topics and fix new suspicious markup.

12 years agoIssue #14007: implemented the 'element_factory' feature of TreeBuilder in
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.

12 years agoClose #14947: add missing cross-reference to Language Definition from the new dynamic...
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

12 years ago#14796: fix failure of new calendar test on windows.
R David Murray [Wed, 30 May 2012 12:10:54 +0000 (08:10 -0400)]
#14796: fix failure of new calendar test on windows.

12 years agoClose #14690: Use monotonic clock instead of system clock in the sched,
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.

12 years agoIssue #14958: Change IDLE systax highlighting to recognize all string and
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.

12 years agoMerge 3.2 news item
Brian Curtin [Tue, 29 May 2012 23:44:17 +0000 (18:44 -0500)]
Merge 3.2 news item

12 years agoAdd news item for #14943
Brian Curtin [Tue, 29 May 2012 23:41:30 +0000 (18:41 -0500)]
Add news item for #14943