]> granicus.if.org Git - python/log
python
12 years agoIssue #6083: Fix multiple segmentation faults occured when PyArg_ParseTuple
Serhiy Storchaka [Mon, 4 Feb 2013 10:57:16 +0000 (12:57 +0200)]
Issue #6083: Fix multiple segmentation faults occured when PyArg_ParseTuple
parses nested mutating sequence.

12 years agoIssue #6083: Fix multiple segmentation faults occured when PyArg_ParseTuple
Serhiy Storchaka [Mon, 4 Feb 2013 10:54:04 +0000 (12:54 +0200)]
Issue #6083: Fix multiple segmentation faults occured when PyArg_ParseTuple
parses nested mutating sequence.

12 years agoIssue #6083: Fix multiple segmentation faults occured when PyArg_ParseTuple
Serhiy Storchaka [Mon, 4 Feb 2013 10:47:24 +0000 (12:47 +0200)]
Issue #6083: Fix multiple segmentation faults occured when PyArg_ParseTuple
parses nested mutating sequence.

12 years agoMinor edits: Tighten-up the halflen logic and touch-up the assertions and comments.
Raymond Hettinger [Mon, 4 Feb 2013 05:08:12 +0000 (00:08 -0500)]
Minor edits:  Tighten-up the halflen logic and touch-up the assertions and comments.

12 years agomerge 3.3 (#5289)
Benjamin Peterson [Mon, 4 Feb 2013 00:26:51 +0000 (19:26 -0500)]
merge 3.3 (#5289)

12 years agofix find_library on Solaris (closes #5289)
Benjamin Peterson [Mon, 4 Feb 2013 00:25:11 +0000 (19:25 -0500)]
fix find_library on Solaris (closes #5289)

12 years agomerge w/ 3.3
Brett Cannon [Sun, 3 Feb 2013 21:16:44 +0000 (16:16 -0500)]
merge w/ 3.3

12 years agoWay too many places create modules temporarily that never set
Brett Cannon [Sun, 3 Feb 2013 21:16:07 +0000 (16:16 -0500)]
Way too many places create modules temporarily that never set
__loader__ for this test to succeed without a major changes. It also
doesn't test the original issue of modules imported by Py_Initialize()
having __loader__ set (the rest of the test covers that).

12 years agonull merge
Gregory P. Smith [Sun, 3 Feb 2013 18:58:59 +0000 (10:58 -0800)]
null merge

12 years agonull merge
Gregory P. Smith [Sun, 3 Feb 2013 18:58:40 +0000 (10:58 -0800)]
null merge

12 years agomerge
Brett Cannon [Sun, 3 Feb 2013 16:39:35 +0000 (11:39 -0500)]
merge

12 years agomerge
Brett Cannon [Sun, 3 Feb 2013 16:39:02 +0000 (11:39 -0500)]
merge

12 years agomerge
Brett Cannon [Sun, 3 Feb 2013 16:38:38 +0000 (11:38 -0500)]
merge

12 years agomerge
Brett Cannon [Sun, 3 Feb 2013 16:38:16 +0000 (11:38 -0500)]
merge

12 years agopyexpat/xml.parsers.expat create their errors and model modules from
Brett Cannon [Sun, 3 Feb 2013 16:37:13 +0000 (11:37 -0500)]
pyexpat/xml.parsers.expat create their errors and model modules from
scratch. This means they do not set __loader__ by default. This is
acceptable under importlib/PEP 302 definitions, so relax the test that
was trying to apply this universally.

12 years agoIssue #17106: Fix a segmentation fault in io.TextIOWrapper when an underlying
Serhiy Storchaka [Sun, 3 Feb 2013 15:09:17 +0000 (17:09 +0200)]
Issue #17106: Fix a segmentation fault in io.TextIOWrapper when an underlying
stream or a decoder produces data of an unexpected type (i.e. when
io.TextIOWrapper initialized with text stream or use bytes-to-bytes codec).

12 years agoIssue #17106: Fix a segmentation fault in io.TextIOWrapper when an underlying
Serhiy Storchaka [Sun, 3 Feb 2013 15:07:32 +0000 (17:07 +0200)]
Issue #17106: Fix a segmentation fault in io.TextIOWrapper when an underlying
stream or a decoder produces data of an unexpected type (i.e. when
io.TextIOWrapper initialized with text stream or use bytes-to-bytes codec).

12 years agoIssue #17106: Fix a segmentation fault in io.TextIOWrapper when an underlying
Serhiy Storchaka [Sun, 3 Feb 2013 15:03:31 +0000 (17:03 +0200)]
Issue #17106: Fix a segmentation fault in io.TextIOWrapper when an underlying
stream or a decoder produces data of an unexpected type (i.e. when
io.TextIOWrapper initialized with text stream or use bytes-to-bytes codec).

12 years agomerge with 3.3
Georg Brandl [Sun, 3 Feb 2013 13:00:38 +0000 (14:00 +0100)]
merge with 3.3

12 years ago#17109: fix headings in mock example doc.
Georg Brandl [Sun, 3 Feb 2013 13:00:04 +0000 (14:00 +0100)]
#17109: fix headings in mock example doc.

12 years agomerge with 3.3
Georg Brandl [Sun, 3 Feb 2013 10:48:44 +0000 (11:48 +0100)]
merge with 3.3

12 years agoCloses #17109: fix heading levels in mock doc.
Georg Brandl [Sun, 3 Feb 2013 10:47:49 +0000 (11:47 +0100)]
Closes #17109: fix heading levels in mock doc.

12 years agoRefactor recently added bugfix into more testable code by using a
Gregory P. Smith [Sun, 3 Feb 2013 08:37:36 +0000 (00:37 -0800)]
Refactor recently added bugfix into more testable code by using a
method for windows file name sanitization.  Splits the unittest up
into several based on platform.

12 years agoRefactor recently added bugfix into more testable code by using a
Gregory P. Smith [Sun, 3 Feb 2013 08:36:32 +0000 (00:36 -0800)]
Refactor recently added bugfix into more testable code by using a
method for windows file name sanitization.  Splits the unittest up
into several based on platform.

12 years agoIssue #17015: When it has a spec, a Mock object now inspects its signature when match...
Antoine Pitrou [Sat, 2 Feb 2013 23:23:58 +0000 (00:23 +0100)]
Issue #17015: When it has a spec, a Mock object now inspects its signature when matching calls, so that arguments can be matched positionally or by name.

12 years agoIssue #16698: merge from 3.3
Ned Deily [Sat, 2 Feb 2013 23:13:45 +0000 (15:13 -0800)]
Issue #16698: merge from 3.3

12 years agoIssue #16698: merge from 3.2
Ned Deily [Sat, 2 Feb 2013 23:12:59 +0000 (15:12 -0800)]
Issue #16698: merge from 3.2

12 years agoIssue #16698: Skip posix test_getgroups when built with OS X
Ned Deily [Sat, 2 Feb 2013 23:08:52 +0000 (15:08 -0800)]
Issue #16698: Skip posix test_getgroups when built with OS X
deployment target prior to 10.6.

12 years agoNull merge
Antoine Pitrou [Sat, 2 Feb 2013 22:10:02 +0000 (23:10 +0100)]
Null merge

12 years agoNull merge
Antoine Pitrou [Sat, 2 Feb 2013 22:09:49 +0000 (23:09 +0100)]
Null merge

12 years agoSimplify code in HTTPResponse.read()
Antoine Pitrou [Sat, 2 Feb 2013 22:08:51 +0000 (23:08 +0100)]
Simplify code in HTTPResponse.read()

12 years agoIssue #15633: httplib.HTTPResponse is now mark closed when the server sends less...
Antoine Pitrou [Sat, 2 Feb 2013 22:06:22 +0000 (23:06 +0100)]
Issue #15633: httplib.HTTPResponse is now mark closed when the server sends less than the advertised Content-Length.

12 years agoIssue #15633: httplib.HTTPResponse is now mark closed when the server sends less...
Antoine Pitrou [Sat, 2 Feb 2013 22:04:56 +0000 (23:04 +0100)]
Issue #15633: httplib.HTTPResponse is now mark closed when the server sends less than the advertised Content-Length.

12 years agoIssue #15633: httplib.HTTPResponse is now mark closed when the server sends less...
Antoine Pitrou [Sat, 2 Feb 2013 21:49:34 +0000 (22:49 +0100)]
Issue #15633: httplib.HTTPResponse is now mark closed when the server sends less than the advertised Content-Length.

12 years agoIssue 16398: One more assertion for good measure.
Raymond Hettinger [Sat, 2 Feb 2013 20:26:37 +0000 (12:26 -0800)]
Issue 16398: One more assertion for good measure.

12 years agoBack out fix for issue #13886; it introduced a new bug in interactive readline use.
Nadeem Vawda [Sat, 2 Feb 2013 19:29:39 +0000 (20:29 +0100)]
Back out fix for issue #13886; it introduced a new bug in interactive readline use.

12 years agoBack out fix for issue #13886; it introduced a new bug in interactive readline use.
Nadeem Vawda [Sat, 2 Feb 2013 19:25:19 +0000 (20:25 +0100)]
Back out fix for issue #13886; it introduced a new bug in interactive readline use.

12 years agoIssue 16398: Add assertions to show why memcmp is safe.
Raymond Hettinger [Sat, 2 Feb 2013 19:24:43 +0000 (11:24 -0800)]
Issue 16398:  Add assertions to show why memcmp is safe.

12 years agoBack out fix for issue #13886; it introduced a new bug in interactive readline use.
Nadeem Vawda [Sat, 2 Feb 2013 19:05:11 +0000 (20:05 +0100)]
Back out fix for issue #13886; it introduced a new bug in interactive readline use.

12 years agoIssue 16398: Use memcpy() in deque.rotate().
Raymond Hettinger [Sat, 2 Feb 2013 17:56:08 +0000 (09:56 -0800)]
Issue 16398: Use memcpy() in deque.rotate().

12 years agoFix the test for issue #6972.
Serhiy Storchaka [Sat, 2 Feb 2013 17:52:45 +0000 (19:52 +0200)]
Fix the test for issue #6972.
Remove trailing dots on Windows.

12 years agoFix the test for issue #6972.
Serhiy Storchaka [Sat, 2 Feb 2013 17:51:37 +0000 (19:51 +0200)]
Fix the test for issue #6972.
Remove trailing dots on Windows.

12 years agoFix the test for issue #6972.
Serhiy Storchaka [Sat, 2 Feb 2013 17:50:59 +0000 (19:50 +0200)]
Fix the test for issue #6972.
Remove trailing dots on Windows.

12 years agoIssue #17034: Use Py_CLEAR() in bytesobject.c.
Serhiy Storchaka [Sat, 2 Feb 2013 16:46:19 +0000 (18:46 +0200)]
Issue #17034: Use Py_CLEAR() in bytesobject.c.

12 years agoIssue #17034: Use Py_CLEAR() in bytesobject.c.
Serhiy Storchaka [Sat, 2 Feb 2013 16:45:54 +0000 (18:45 +0200)]
Issue #17034: Use Py_CLEAR() in bytesobject.c.

12 years agoIssue #17034: Use Py_CLEAR() in bytesobject.c.
Serhiy Storchaka [Sat, 2 Feb 2013 16:45:22 +0000 (18:45 +0200)]
Issue #17034: Use Py_CLEAR() in bytesobject.c.

12 years agoFix a Cyrillic "C" inroduced into the docs by patch for issue #6972.
Serhiy Storchaka [Sat, 2 Feb 2013 11:28:42 +0000 (13:28 +0200)]
Fix a Cyrillic "C" inroduced into the docs by patch for issue #6972.

12 years agoFix a Cyrillic "C" inroduced into the docs by patch for issue #6972.
Serhiy Storchaka [Sat, 2 Feb 2013 11:28:05 +0000 (13:28 +0200)]
Fix a Cyrillic "C" inroduced into the docs by patch for issue #6972.

12 years agoFix a Cyrillic "C" inroduced into the docs by patch for issue #6972.
Serhiy Storchaka [Sat, 2 Feb 2013 11:27:30 +0000 (13:27 +0200)]
Fix a Cyrillic "C" inroduced into the docs by patch for issue #6972.

12 years agoFix tests for issue #11159.
Serhiy Storchaka [Sat, 2 Feb 2013 10:17:50 +0000 (12:17 +0200)]
Fix tests for issue #11159.

12 years agoFix tests for issue #11159.
Serhiy Storchaka [Sat, 2 Feb 2013 10:17:30 +0000 (12:17 +0200)]
Fix tests for issue #11159.

12 years agoFix tests for issue #11159.
Serhiy Storchaka [Sat, 2 Feb 2013 10:17:05 +0000 (12:17 +0200)]
Fix tests for issue #11159.

12 years agoNull merge
Serhiy Storchaka [Sat, 2 Feb 2013 08:39:14 +0000 (10:39 +0200)]
Null merge

12 years agoNull merge
Serhiy Storchaka [Sat, 2 Feb 2013 08:38:59 +0000 (10:38 +0200)]
Null merge

12 years agoMerge heads
Serhiy Storchaka [Sat, 2 Feb 2013 08:38:25 +0000 (10:38 +0200)]
Merge heads

12 years agoMerge heads
Serhiy Storchaka [Sat, 2 Feb 2013 08:38:06 +0000 (10:38 +0200)]
Merge heads

12 years agoMerge heads
Serhiy Storchaka [Sat, 2 Feb 2013 08:37:36 +0000 (10:37 +0200)]
Merge heads

12 years agoIssue #11159: Add tests for testing SAX parser support of non-ascii file names.
Serhiy Storchaka [Sat, 2 Feb 2013 08:32:11 +0000 (10:32 +0200)]
Issue #11159: Add tests for testing SAX parser support of non-ascii file names.

12 years agoIssue #11159: Add tests for testing SAX parser support of non-ascii file names.
Serhiy Storchaka [Sat, 2 Feb 2013 08:31:50 +0000 (10:31 +0200)]
Issue #11159: Add tests for testing SAX parser support of non-ascii file names.

12 years agoIssue #11159: Add tests for testing SAX parser support of non-ascii file names.
Serhiy Storchaka [Sat, 2 Feb 2013 08:31:17 +0000 (10:31 +0200)]
Issue #11159: Add tests for testing SAX parser support of non-ascii file names.

12 years agoIssue #15116: merge from 3.3
Ned Deily [Sat, 2 Feb 2013 08:20:50 +0000 (00:20 -0800)]
Issue #15116: merge from 3.3

12 years agoIssue #15116: merge from 3.2
Ned Deily [Sat, 2 Feb 2013 08:19:05 +0000 (00:19 -0800)]
Issue #15116: merge from 3.2

12 years agoIssue #15116: Remove references to appscript as it is no longer being
Ned Deily [Sat, 2 Feb 2013 08:16:14 +0000 (00:16 -0800)]
Issue #15116: Remove references to appscript as it is no longer being
supported.

12 years agoIssue #15587: merge from 3.3
Ned Deily [Sat, 2 Feb 2013 07:17:34 +0000 (23:17 -0800)]
Issue #15587: merge from 3.3

12 years agoIssue #15587: merge from 3.2
Ned Deily [Sat, 2 Feb 2013 07:15:51 +0000 (23:15 -0800)]
Issue #15587: merge from 3.2

12 years agoIssue #15587: Enable Tk high-resolution text rendering on Macs with
Ned Deily [Sat, 2 Feb 2013 07:12:42 +0000 (23:12 -0800)]
Issue #15587: Enable Tk high-resolution text rendering on Macs with
Retina displays.  Applies to Tkinter apps, such as IDLE, on OS X
framework builds linked with Cocoa Tk 8.5+.
Suggested by Kevin Walzer

12 years agoIn the _hashlib module, only initialize the static data for OpenSSL's
Gregory P. Smith [Sat, 2 Feb 2013 01:07:56 +0000 (17:07 -0800)]
In the _hashlib module, only initialize the static data for OpenSSL's
constructors once, to avoid memory leaks when finalizing and re-initializing
the Python interpreter.

12 years agoIn the _hashlib module, only initialize the static data for OpenSSL's
Gregory P. Smith [Sat, 2 Feb 2013 01:07:39 +0000 (17:07 -0800)]
In the _hashlib module, only initialize the static data for OpenSSL's
constructors once, to avoid memory leaks when finalizing and re-initializing
the Python interpreter.

12 years agoIn the _hashlib module, only initialize the static data for OpenSSL's
Gregory P. Smith [Sat, 2 Feb 2013 01:05:29 +0000 (17:05 -0800)]
In the _hashlib module, only initialize the static data for OpenSSL's
constructors once, to avoid memory leaks when finalizing and re-initializing
the Python interpreter.

12 years agonull merge from 3.3
Gregory P. Smith [Sat, 2 Feb 2013 00:15:45 +0000 (16:15 -0800)]
null merge from 3.3

12 years agonull merge from 3.2 (3.3's code already refactored)
Gregory P. Smith [Sat, 2 Feb 2013 00:15:01 +0000 (16:15 -0800)]
null merge from 3.2 (3.3's code already refactored)

12 years agoSilence a -Wformat-extra-argument warning when compiling.
Gregory P. Smith [Sat, 2 Feb 2013 00:14:00 +0000 (16:14 -0800)]
Silence a -Wformat-extra-argument warning when compiling.

12 years agoIssue #16256: merge from 3.3
Ned Deily [Fri, 1 Feb 2013 22:06:24 +0000 (14:06 -0800)]
Issue #16256: merge from 3.3

12 years agoIssue #16256: merge from 3.2
Ned Deily [Fri, 1 Feb 2013 22:05:26 +0000 (14:05 -0800)]
Issue #16256: merge from 3.2

12 years agoIssue #16256: OS X installer now sets correct permissions for doc directory.
Ned Deily [Fri, 1 Feb 2013 21:59:42 +0000 (13:59 -0800)]
Issue #16256: OS X installer now sets correct permissions for doc directory.

12 years agomerge from 3.3
Brett Cannon [Fri, 1 Feb 2013 21:39:50 +0000 (16:39 -0500)]
merge from 3.3

12 years agomerge
Brett Cannon [Fri, 1 Feb 2013 21:37:07 +0000 (16:37 -0500)]
merge

12 years agomerge
Brett Cannon [Fri, 1 Feb 2013 21:36:49 +0000 (16:36 -0500)]
merge

12 years agoMerge w/ 3.3 more fixes thanks to issue #17098
Brett Cannon [Fri, 1 Feb 2013 21:36:29 +0000 (16:36 -0500)]
Merge w/ 3.3 more fixes thanks to issue #17098

12 years agoAdditional fix for issue #12268: The io module file object write methods no
Gregory P. Smith [Fri, 1 Feb 2013 21:10:33 +0000 (13:10 -0800)]
Additional fix for issue #12268: The io module file object write methods no
longer abort early when a write system call is interrupted (EINTR).

12 years agonull merge
Gregory P. Smith [Fri, 1 Feb 2013 21:08:51 +0000 (13:08 -0800)]
null merge

12 years agoAdditional fix for issue #12268: The io module file object write methods no
Gregory P. Smith [Fri, 1 Feb 2013 21:08:23 +0000 (13:08 -0800)]
Additional fix for issue #12268: The io module file object write methods no
longer abort early when a write system call is interrupted (EINTR).

12 years agobetter corrected news entry
Gregory P. Smith [Fri, 1 Feb 2013 21:06:44 +0000 (13:06 -0800)]
better corrected news entry

12 years agoAdditional fix for Issue #12268: The io module file object writelines() methods no...
Gregory P. Smith [Fri, 1 Feb 2013 21:03:39 +0000 (13:03 -0800)]
Additional fix for Issue #12268: The io module file object writelines() methods no longer abort early when one of its write system calls is interrupted (EINTR).

12 years agoIssue #17098: Be more stringent of setting __loader__ on early imported
Brett Cannon [Fri, 1 Feb 2013 20:31:49 +0000 (15:31 -0500)]
Issue #17098: Be more stringent of setting __loader__ on early imported
modules. Also made test more rigorous.

12 years agomerge with 3.3
Brett Cannon [Fri, 1 Feb 2013 19:51:43 +0000 (14:51 -0500)]
merge with 3.3

12 years agoAdd a test for fix of issue #17098
Brett Cannon [Fri, 1 Feb 2013 19:43:59 +0000 (14:43 -0500)]
Add a test for fix of issue #17098

12 years agoFixes Issue #6972: The zipfile module no longer overwrites files outside of
Gregory P. Smith [Fri, 1 Feb 2013 19:35:00 +0000 (11:35 -0800)]
Fixes Issue #6972: The zipfile module no longer overwrites files outside of
its destination path when extracting malicious zip files.

12 years agoFixes Issue #6972: The zipfile module no longer overwrites files outside of
Gregory P. Smith [Fri, 1 Feb 2013 19:31:31 +0000 (11:31 -0800)]
Fixes Issue #6972: The zipfile module no longer overwrites files outside of
its destination path when extracting malicious zip files.

12 years agoFixes Issue #6972: The zipfile module no longer overwrites files outside of
Gregory P. Smith [Fri, 1 Feb 2013 19:22:43 +0000 (11:22 -0800)]
Fixes Issue #6972: The zipfile module no longer overwrites files outside of
its destination path when extracting malicious zip files.

12 years agoIssue #17098: all modules should have __loader__
Brett Cannon [Fri, 1 Feb 2013 19:07:28 +0000 (14:07 -0500)]
Issue #17098: all modules should have __loader__

12 years agoIssue #17098: Make sure every module has __loader__ defined.
Brett Cannon [Fri, 1 Feb 2013 19:04:12 +0000 (14:04 -0500)]
Issue #17098: Make sure every module has __loader__ defined.

Thanks to Thomas Heller for the bug report.

12 years agoIssue #1783: Remove declarations of nonexistent private variables.
Serhiy Storchaka [Fri, 1 Feb 2013 11:15:17 +0000 (13:15 +0200)]
Issue #1783: Remove declarations of nonexistent private variables.

12 years agoIssue #1783: Remove declarations of nonexistent private variables.
Serhiy Storchaka [Fri, 1 Feb 2013 11:14:47 +0000 (13:14 +0200)]
Issue #1783: Remove declarations of nonexistent private variables.

12 years agoIssue #1783: Remove declarations of nonexistent private variables.
Serhiy Storchaka [Fri, 1 Feb 2013 11:14:20 +0000 (13:14 +0200)]
Issue #1783: Remove declarations of nonexistent private variables.

12 years ago#16128: merge with 3.3.
Ezio Melotti [Fri, 1 Feb 2013 03:20:20 +0000 (05:20 +0200)]
#16128: merge with 3.3.

12 years ago#16128: merge with 3.2.
Ezio Melotti [Fri, 1 Feb 2013 03:20:06 +0000 (05:20 +0200)]
#16128: merge with 3.2.

12 years ago#16128: clarify that instances of user-defined classes compare equal with themselves.
Ezio Melotti [Fri, 1 Feb 2013 03:18:44 +0000 (05:18 +0200)]
#16128: clarify that instances of user-defined classes compare equal with themselves.

12 years ago#17040: document that shelve.open() and the Shelf object can be used as context manag...
Ezio Melotti [Fri, 1 Feb 2013 03:01:50 +0000 (05:01 +0200)]
#17040: document that shelve.open() and the Shelf object can be used as context managers.  Initial patch by Berker Peksag.

12 years agoIssue #17041: Fix doctesting when Python is configured with the
Serhiy Storchaka [Thu, 31 Jan 2013 14:11:47 +0000 (16:11 +0200)]
Issue #17041: Fix doctesting when Python is configured with the
--without-doc-strings.