]> granicus.if.org Git - python/log
python
11 years agoIssue #10310: Use "unsigned int field:1" instead of "signed int field:1" in a
Victor Stinner [Tue, 17 Jun 2014 21:31:25 +0000 (23:31 +0200)]
Issue #10310: Use "unsigned int field:1" instead of "signed int field:1" in a
private structure of the _io module to fix a compiler warning (overflow when
assigning the value 1). Fix also a cast in
incrementalnewlinedecoder_setstate().  Patch written by Hallvard B Furuseth.

11 years agoMerge with 3.4
Terry Jan Reedy [Tue, 17 Jun 2014 20:35:33 +0000 (16:35 -0400)]
Merge with 3.4

11 years agoIssue #21694: Add unittest for ParenMatch. Patch by Saimadhav Heblikar.
Terry Jan Reedy [Tue, 17 Jun 2014 20:35:20 +0000 (16:35 -0400)]
Issue #21694: Add unittest for ParenMatch. Patch by Saimadhav Heblikar.

11 years agomerge 3.4
Benjamin Peterson [Tue, 17 Jun 2014 16:45:20 +0000 (09:45 -0700)]
merge 3.4

11 years agoadd Ammar Brohi for running ssllab's test on python.org and reporting a problem
Benjamin Peterson [Tue, 17 Jun 2014 16:44:55 +0000 (09:44 -0700)]
add Ammar Brohi for running ssllab's test on python.org and reporting a problem

11 years agomerge 3.4
Benjamin Peterson [Tue, 17 Jun 2014 07:34:56 +0000 (00:34 -0700)]
merge 3.4

11 years agorevert tstate_delete_common, since it's pretty much wrong
Benjamin Peterson [Tue, 17 Jun 2014 07:34:46 +0000 (00:34 -0700)]
revert tstate_delete_common, since it's pretty much wrong

11 years agomerge 3.4
Benjamin Peterson [Tue, 17 Jun 2014 06:49:09 +0000 (23:49 -0700)]
merge 3.4

11 years agoremove extra call to tstate_delete_common (merge artifact)
Benjamin Peterson [Tue, 17 Jun 2014 06:49:02 +0000 (23:49 -0700)]
remove extra call to tstate_delete_common (merge artifact)

11 years agomerge 3.4
Benjamin Peterson [Tue, 17 Jun 2014 06:16:37 +0000 (23:16 -0700)]
merge 3.4

11 years agomerge 3.3
Benjamin Peterson [Tue, 17 Jun 2014 06:16:31 +0000 (23:16 -0700)]
merge 3.3

11 years agomerge 3.2
Benjamin Peterson [Tue, 17 Jun 2014 06:16:06 +0000 (23:16 -0700)]
merge 3.2

11 years agoexpect the correct platform-dependent linesep
Benjamin Peterson [Tue, 17 Jun 2014 06:15:50 +0000 (23:15 -0700)]
expect the correct platform-dependent linesep

11 years agomerge 3.4
Benjamin Peterson [Tue, 17 Jun 2014 06:08:29 +0000 (23:08 -0700)]
merge 3.4

11 years agoavoid a deadlock with the interpreter head lock and the GIL during finalization
Benjamin Peterson [Tue, 17 Jun 2014 06:07:49 +0000 (23:07 -0700)]
avoid a deadlock with the interpreter head lock and the GIL during finalization

11 years agomerge 3.4
Benjamin Peterson [Tue, 17 Jun 2014 06:07:15 +0000 (23:07 -0700)]
merge 3.4

11 years agocheck if the thread is finalizing after retaking the GIL
Benjamin Peterson [Tue, 17 Jun 2014 05:59:07 +0000 (22:59 -0700)]
check if the thread is finalizing after retaking the GIL

11 years agoAdd Idle news entries.
Terry Jan Reedy [Mon, 16 Jun 2014 23:26:56 +0000 (19:26 -0400)]
Add Idle news entries.

11 years agoAdd Idle news entries.
Terry Jan Reedy [Mon, 16 Jun 2014 23:24:29 +0000 (19:24 -0400)]
Add Idle news entries.

11 years agoMerge with 3.4
Terry Jan Reedy [Mon, 16 Jun 2014 23:01:14 +0000 (19:01 -0400)]
Merge with 3.4

11 years agoIssue #21686: add unittest for idlelib.HyperParser. Original patch by Saimadhav
Terry Jan Reedy [Mon, 16 Jun 2014 23:01:01 +0000 (19:01 -0400)]
Issue #21686: add unittest for idlelib.HyperParser.  Original patch by Saimadhav
Heblikar. Correct a minor 3.x bug in HyperParser discovered by testing.

11 years ago(Merge 3.4) asyncio: Task.__repr__() now also handles CoroWrapper
Victor Stinner [Mon, 16 Jun 2014 22:27:02 +0000 (00:27 +0200)]
(Merge 3.4) asyncio: Task.__repr__() now also handles CoroWrapper

11 years agoasyncio: Task.__repr__() now also handles CoroWrapper
Victor Stinner [Mon, 16 Jun 2014 22:26:36 +0000 (00:26 +0200)]
asyncio: Task.__repr__() now also handles CoroWrapper

11 years ago(Merge 3.4) Issue #21773: Fix TestStdLib.test_pydoc() of test_enum. Patch
Victor Stinner [Mon, 16 Jun 2014 20:51:36 +0000 (22:51 +0200)]
(Merge 3.4) Issue #21773: Fix TestStdLib.test_pydoc() of test_enum. Patch
written by Claudiu Popa.

The print_diffs() function was not defined, using the assertEqual() is more
reliable.

11 years agoIssue #21773: Fix TestStdLib.test_pydoc() of test_enum. Patch written by
Victor Stinner [Mon, 16 Jun 2014 20:48:43 +0000 (22:48 +0200)]
Issue #21773: Fix TestStdLib.test_pydoc() of test_enum. Patch written by
Claudiu Popa.

The print_diffs() function was not defined, using the assertEqual() is more
reliable.

11 years agoMerge typo fix from 3.4
Zachary Ware [Mon, 16 Jun 2014 16:14:47 +0000 (11:14 -0500)]
Merge typo fix from 3.4

11 years agoFix typo reported by Jesse W on docs@
Zachary Ware [Mon, 16 Jun 2014 16:13:01 +0000 (11:13 -0500)]
Fix typo reported by Jesse W on docs@

11 years ago(Merge 3.4) Sync asyncio with Tulip: Fix test_tasks for Python 3.5
Victor Stinner [Mon, 16 Jun 2014 15:12:39 +0000 (17:12 +0200)]
(Merge 3.4) Sync asyncio with Tulip: Fix test_tasks for Python 3.5

On Python 3.5, generator now gets their name from the function, no more from
the code. So we get the expected "notmuch" name instead of the generic "coro"
name.

11 years agoSync asyncio with Tulip: Fix test_tasks for Python 3.5
Victor Stinner [Mon, 16 Jun 2014 15:11:05 +0000 (17:11 +0200)]
Sync asyncio with Tulip: Fix test_tasks for Python 3.5

On Python 3.5, generator now gets their name from the function, no more from
the code. So we get the expected "notmuch" name instead of the generic "coro"
name.

11 years agoIssue #21205: Complete the "versionchanged" note in inspect documentation
Victor Stinner [Mon, 16 Jun 2014 14:25:22 +0000 (16:25 +0200)]
Issue #21205: Complete the "versionchanged" note in inspect documentation

11 years agoIssue #21205: Fix unit tests
Victor Stinner [Mon, 16 Jun 2014 14:21:57 +0000 (16:21 +0200)]
Issue #21205: Fix unit tests

11 years agoIssue #21205: Add a new ``__qualname__`` attribute to generator, the qualified
Victor Stinner [Mon, 16 Jun 2014 13:59:28 +0000 (15:59 +0200)]
Issue #21205: Add a new ``__qualname__`` attribute to generator, the qualified
name, and use it in the representation of a generator (``repr(gen)``). The
default name of the generator (``__name__`` attribute) is now get from the
function instead of the code. Use ``gen.gi_code.co_name`` to get the name of
the code.

11 years agoMerge issue #21669 from 3.4
Nick Coghlan [Mon, 16 Jun 2014 09:49:12 +0000 (19:49 +1000)]
Merge issue #21669 from 3.4

11 years agoIssue #21669: Special case print & exec syntax errors
Nick Coghlan [Mon, 16 Jun 2014 09:48:02 +0000 (19:48 +1000)]
Issue #21669: Special case print & exec syntax errors

11 years agoMerge with 3.4
Terry Jan Reedy [Mon, 16 Jun 2014 07:31:33 +0000 (03:31 -0400)]
Merge with 3.4

11 years agoIssue #21559: Add alternative (historical) reason for OverflowError.
Terry Jan Reedy [Mon, 16 Jun 2014 07:31:00 +0000 (03:31 -0400)]
Issue #21559: Add alternative (historical) reason for OverflowError.

11 years agoMerge with 3.4
Terry Jan Reedy [Mon, 16 Jun 2014 07:05:53 +0000 (03:05 -0400)]
Merge with 3.4

11 years agoIssue #19362: Tweek len() doc and docstring to expand the indicated range of
Terry Jan Reedy [Mon, 16 Jun 2014 07:05:37 +0000 (03:05 -0400)]
Issue #19362: Tweek len() doc and docstring to expand the indicated range of
arguments. Original patch by Gareth Rees.

11 years agoMerge with 3.4
Terry Jan Reedy [Mon, 16 Jun 2014 06:40:39 +0000 (02:40 -0400)]
Merge with 3.4

11 years agowhitespace
Terry Jan Reedy [Mon, 16 Jun 2014 06:40:24 +0000 (02:40 -0400)]
whitespace

11 years agoMerge with 3.4
Terry Jan Reedy [Mon, 16 Jun 2014 06:33:56 +0000 (02:33 -0400)]
Merge with 3.4

11 years agoIssue #21686: idlelib/HyperParser.py - Update docstrings and comments and
Terry Jan Reedy [Mon, 16 Jun 2014 06:33:35 +0000 (02:33 -0400)]
Issue #21686: idlelib/HyperParser.py - Update docstrings and comments and
replace \ line contiuation. Tested against nearly done test_hyperparser.py.

11 years agomerge 3.4 (#13779)
Benjamin Peterson [Mon, 16 Jun 2014 03:52:02 +0000 (20:52 -0700)]
merge 3.4 (#13779)

11 years agoclarify when the list of subdirectories is read (closes #13779)
Benjamin Peterson [Mon, 16 Jun 2014 03:51:12 +0000 (20:51 -0700)]
clarify when the list of subdirectories is read (closes #13779)

11 years agofix a BytesWarning in my previous commit.
Gregory P. Smith [Mon, 16 Jun 2014 03:17:23 +0000 (20:17 -0700)]
fix a BytesWarning in my previous commit.

11 years agofix a BytesWarning in my previous commit.
Gregory P. Smith [Mon, 16 Jun 2014 03:16:01 +0000 (20:16 -0700)]
fix a BytesWarning in my previous commit.

11 years agoimprove note
Benjamin Peterson [Mon, 16 Jun 2014 01:30:27 +0000 (18:30 -0700)]
improve note

11 years agoIsolate the subprocess test_close_fds_when_max_fd_is_lowered test so
Gregory P. Smith [Mon, 16 Jun 2014 00:52:26 +0000 (17:52 -0700)]
Isolate the subprocess test_close_fds_when_max_fd_is_lowered test so
that the rlimit calls happens in a child process rather than the
TestCase process to attempt to fix the gentoo buildbot's "Too many
open files" error.

11 years agoIsolate the subprocess test_close_fds_when_max_fd_is_lowered test so
Gregory P. Smith [Mon, 16 Jun 2014 00:51:04 +0000 (17:51 -0700)]
Isolate the subprocess test_close_fds_when_max_fd_is_lowered test so
that the rlimit calls happens in a child process rather than the
TestCase process to attempt to fix the gentoo buildbot's "Too many
open files" error.

11 years agomerge
Raymond Hettinger [Sun, 15 Jun 2014 21:50:39 +0000 (14:50 -0700)]
merge

11 years agoIssue #21774: Fix incorrect variable in xml.dom.minidom
Raymond Hettinger [Sun, 15 Jun 2014 21:48:19 +0000 (14:48 -0700)]
Issue #21774: Fix incorrect variable in xml.dom.minidom

11 years agoUpdate comment to reflect using the default parameter with min() and max().
Raymond Hettinger [Sun, 15 Jun 2014 21:40:18 +0000 (14:40 -0700)]
Update comment to reflect using the default parameter with min() and max().

11 years agoIssue 19898: Add test for dequereviter_new.
Raymond Hettinger [Sun, 15 Jun 2014 03:41:22 +0000 (20:41 -0700)]
Issue 19898:  Add test for dequereviter_new.
(Patch contributed by Claudiu Popa.)

11 years agomerge 3.4 (#21764)
Benjamin Peterson [Sun, 15 Jun 2014 01:52:14 +0000 (18:52 -0700)]
merge 3.4 (#21764)

11 years agodocument IOBase.__del__'s behavior (closes #21764)
Benjamin Peterson [Sun, 15 Jun 2014 01:51:34 +0000 (18:51 -0700)]
document IOBase.__del__'s behavior (closes #21764)

Patch from Nikolaus Rath.

11 years agomerge 3.4 (#21766)
Benjamin Peterson [Sun, 15 Jun 2014 01:41:31 +0000 (18:41 -0700)]
merge 3.4 (#21766)

11 years agomerge 3.3 (#21766)
Benjamin Peterson [Sun, 15 Jun 2014 01:41:13 +0000 (18:41 -0700)]
merge 3.3 (#21766)

11 years agomerge 3.2 (#21766)
Benjamin Peterson [Sun, 15 Jun 2014 01:40:10 +0000 (18:40 -0700)]
merge 3.2 (#21766)

11 years agourl unquote the path before checking if it refers to a CGI script (closes #21766)
Benjamin Peterson [Sun, 15 Jun 2014 01:36:29 +0000 (18:36 -0700)]
url unquote the path before checking if it refers to a CGI script (closes #21766)

11 years agoFactor common code into internal functions.
Raymond Hettinger [Sat, 14 Jun 2014 23:43:35 +0000 (16:43 -0700)]
Factor common code into internal functions.
Clean-up names of static functions.
Use Py_RETURN_NONE macro.
Expose private functions needed to support merge().
Move C imports to the bottom of the Python file.

11 years agofix issue #6916: undocument deprecated asynchat.fifo class.q
Giampaolo Rodola' [Sat, 14 Jun 2014 15:03:42 +0000 (17:03 +0200)]
fix issue #6916: undocument deprecated asynchat.fifo class.q

11 years agoCloses #21742: Merged fix from 3.4.
Vinay Sajip [Sat, 14 Jun 2014 09:23:20 +0000 (10:23 +0100)]
Closes #21742: Merged fix from 3.4.

11 years agoIssue #21742: Set stream to None after closing.
Vinay Sajip [Sat, 14 Jun 2014 09:22:05 +0000 (10:22 +0100)]
Issue #21742: Set stream to None after closing.

11 years agoCloses #21752: Merged update from 3.4.
Vinay Sajip [Sat, 14 Jun 2014 08:27:10 +0000 (09:27 +0100)]
Closes #21752: Merged update from 3.4.

11 years agoIssue #21752: Documented change to behaviour of logging.getLevelName().
Vinay Sajip [Sat, 14 Jun 2014 08:26:26 +0000 (09:26 +0100)]
Issue #21752: Documented change to behaviour of logging.getLevelName().

11 years agoFix typo
Raymond Hettinger [Sat, 14 Jun 2014 07:03:28 +0000 (00:03 -0700)]
Fix typo

11 years agoMerge with 3.4
Terry Jan Reedy [Fri, 13 Jun 2014 19:21:01 +0000 (15:21 -0400)]
Merge with 3.4

11 years agoIssue #21730: Add no-thread skip in test_socket. Patch by Berker Peksag.
Terry Jan Reedy [Fri, 13 Jun 2014 19:20:45 +0000 (15:20 -0400)]
Issue #21730: Add no-thread skip in test_socket. Patch by Berker Peksag.

11 years agoMerge with 3.4
Terry Jan Reedy [Fri, 13 Jun 2014 18:58:09 +0000 (14:58 -0400)]
Merge with 3.4

11 years agoIssue #21726: Remove unnecessary and contextually wrong line.
Terry Jan Reedy [Fri, 13 Jun 2014 18:57:51 +0000 (14:57 -0400)]
Issue #21726: Remove unnecessary and contextually wrong line.

11 years agoIssue #19493: Merge with 3.4
Zachary Ware [Fri, 13 Jun 2014 18:48:03 +0000 (13:48 -0500)]
Issue #19493: Merge with 3.4

11 years agoIssue #19493: Refactor ctypes test package.
Zachary Ware [Fri, 13 Jun 2014 18:44:39 +0000 (13:44 -0500)]
Issue #19493: Refactor ctypes test package.

Skipped tests are now marked as skipped, formerly commented-out or
renamed-so-it-doesn't-look-like-a-test tests are uncommented, properly named,
and unconditionally skipped, some tests that simply didn't run before
are now able to run, and a few are split into multiple methods instead of
skipping via 'return' in the middle of a method.  Also, a couple of unused
files are removed completely.

11 years agoMerge with 3.4
Terry Jan Reedy [Fri, 13 Jun 2014 18:23:57 +0000 (14:23 -0400)]
Merge with 3.4

11 years agoIssue #20043: Add direct test for _thread.
Terry Jan Reedy [Fri, 13 Jun 2014 18:23:43 +0000 (14:23 -0400)]
Issue #20043: Add direct test for _thread.

11 years agoMerge with 3.4
Zachary Ware [Fri, 13 Jun 2014 14:43:32 +0000 (09:43 -0500)]
Merge with 3.4

11 years agoPer Martin [1], PGO is no longer used for official releases.
Zachary Ware [Fri, 13 Jun 2014 14:43:15 +0000 (09:43 -0500)]
Per Martin [1], PGO is no longer used for official releases.

[1] https://mail.python.org/pipermail/python-dev/2014-June/135018.html

11 years agoIssue #21745: Merge with 3.4
Zachary Ware [Fri, 13 Jun 2014 14:39:24 +0000 (09:39 -0500)]
Issue #21745: Merge with 3.4

11 years agoIssue #21745: Mention VS2010 SP1 as a solution for LNK1123 errors
Zachary Ware [Fri, 13 Jun 2014 14:38:50 +0000 (09:38 -0500)]
Issue #21745: Mention VS2010 SP1 as a solution for LNK1123 errors

11 years agoMerge 3.4 (null merge)
Victor Stinner [Fri, 13 Jun 2014 12:58:55 +0000 (14:58 +0200)]
Merge 3.4 (null merge)

11 years agoIssue #16136: VMSError is done, bye bye VMS
Victor Stinner [Fri, 13 Jun 2014 12:58:48 +0000 (14:58 +0200)]
Issue #16136: VMSError is done, bye bye VMS

11 years agoIssue #16136: VMSError is done, bye bye VMS
Victor Stinner [Fri, 13 Jun 2014 12:55:47 +0000 (14:55 +0200)]
Issue #16136: VMSError is done, bye bye VMS

11 years agoIssue #21711: support for "site-python" directories has now been removed from the...
Antoine Pitrou [Thu, 12 Jun 2014 23:41:30 +0000 (19:41 -0400)]
Issue #21711: support for "site-python" directories has now been removed from the site module (it was deprecated in 3.4).

11 years agoIssue #21709: Merged update from 3.4.
Vinay Sajip [Thu, 12 Jun 2014 22:38:16 +0000 (23:38 +0100)]
Issue #21709: Merged update from 3.4.

11 years agoIssue #21709: Improved implementation to cover the frozen module case.
Vinay Sajip [Thu, 12 Jun 2014 22:36:33 +0000 (23:36 +0100)]
Issue #21709: Improved implementation to cover the frozen module case.

11 years ago(Merge 3.4) asyncio: Tulip issue 173: Enhance repr(Handle) and repr(Task)
Victor Stinner [Thu, 12 Jun 2014 16:39:42 +0000 (18:39 +0200)]
(Merge 3.4) asyncio: Tulip issue 173: Enhance repr(Handle) and repr(Task)

repr(Handle) is shorter for function: "foo" instead of "<function foo at
0x...>". It now also includes the source of the callback, filename and line
number where it was defined, if available.

repr(Task) now also includes the current position in the code, filename and
line number, if available. If the coroutine (generator) is done, the line
number is omitted and "done" is added.

11 years agoasyncio: Tulip issue 173: Enhance repr(Handle) and repr(Task)
Victor Stinner [Thu, 12 Jun 2014 16:39:26 +0000 (18:39 +0200)]
asyncio: Tulip issue 173: Enhance repr(Handle) and repr(Task)

repr(Handle) is shorter for function: "foo" instead of "<function foo at
0x...>". It now also includes the source of the callback, filename and line
number where it was defined, if available.

repr(Task) now also includes the current position in the code, filename and
line number, if available. If the coroutine (generator) is done, the line
number is omitted and "done" is added.

11 years agoMerge with 3.4
Terry Jan Reedy [Thu, 12 Jun 2014 05:03:35 +0000 (01:03 -0400)]
Merge with 3.4

11 years agoIssue #12387: Add missing upper(lower)case versions of default Windows key
Terry Jan Reedy [Thu, 12 Jun 2014 05:03:08 +0000 (01:03 -0400)]
Issue #12387: Add missing upper(lower)case versions of default Windows key
bindings for Idle so Caps Lock does not disable them. Patch by Roger Serwy.

11 years agoSuppress a couple more DeprecationWarnings in the test suite.
R David Murray [Wed, 11 Jun 2014 21:09:43 +0000 (17:09 -0400)]
Suppress a couple more DeprecationWarnings in the test suite.

11 years agoCloses #21713: Merge with 3.4
Zachary Ware [Wed, 11 Jun 2014 20:28:31 +0000 (15:28 -0500)]
Closes #21713: Merge with 3.4

11 years agoIssue #21713: Fix typo in a comment. Found by Joseph Shen.
Zachary Ware [Wed, 11 Jun 2014 20:27:04 +0000 (15:27 -0500)]
Issue #21713: Fix typo in a comment.  Found by Joseph Shen.

11 years agoEliminate DeprecationWarning in test_concurrent_futures.
R David Murray [Wed, 11 Jun 2014 20:25:05 +0000 (16:25 -0400)]
Eliminate DeprecationWarning in test_concurrent_futures.

11 years ago#14758: Fix the fix (fix getaddrinfo in mock_socket)
R David Murray [Wed, 11 Jun 2014 20:10:10 +0000 (16:10 -0400)]
#14758: Fix the fix (fix getaddrinfo in mock_socket)

I forgot to run all the affected tests when I fixed smtpd.

11 years agoFix doc build warning
Zachary Ware [Wed, 11 Jun 2014 20:02:25 +0000 (15:02 -0500)]
Fix doc build warning

11 years ago#14758: Need to specify the desired socket type in the getaddrinfo call.
R David Murray [Wed, 11 Jun 2014 19:17:50 +0000 (15:17 -0400)]
#14758: Need to specify the desired socket type in the getaddrinfo call.

This worked by accident on Linux because the SOCK_STREAM was returned
first, but on the FreeBSD the SOCK_DGRAM is first in the list.

11 years ago#19840: Add copy_function to shutil.move.
R David Murray [Wed, 11 Jun 2014 18:40:13 +0000 (14:40 -0400)]
#19840: Add copy_function to shutil.move.

Patch by Claudiu Popa.

11 years ago#14758: add IPv6 support to smtpd.
R David Murray [Wed, 11 Jun 2014 17:48:58 +0000 (13:48 -0400)]
#14758: add IPv6 support to smtpd.

Patch by Milan Oberkirch.

11 years ago#19662: Eliminate warnings in other test modules that use smtpd.
R David Murray [Wed, 11 Jun 2014 16:27:40 +0000 (12:27 -0400)]
#19662: Eliminate warnings in other test modules that use smtpd.

Eventually these will want to convert to decode_data=False, I think.

11 years ago#19662: add decode_data to smtpd so you can get at DATA in bytes form.
R David Murray [Wed, 11 Jun 2014 15:18:08 +0000 (11:18 -0400)]
#19662: add decode_data to smtpd so you can get at DATA in bytes form.

Otherwise smtpd is restricted to 7bit clean data, since even if the
incoming data is actually utf-8, it will often break things to decode
it before parsing the message.

Patch by Maciej Szulik, with some adjustments (mostly the warning
support).

11 years agomerge from 3.4
Senthil Kumaran [Wed, 11 Jun 2014 13:19:47 +0000 (06:19 -0700)]
merge from 3.4