]> granicus.if.org Git - python/log
python
11 years ago(Merge 3.4) Closes #21921: Fix ResourceWarning in the asyncio examples: close
Victor Stinner [Sat, 5 Jul 2014 13:41:18 +0000 (15:41 +0200)]
(Merge 3.4) Closes #21921: Fix ResourceWarning in the asyncio examples: close
the event loop at exit. Patch written by Vajrasky Kok (I modified also the
"hello world" example using a coroutine).

11 years agoCloses #21921: Fix ResourceWarning in the asyncio examples: close the event
Victor Stinner [Sat, 5 Jul 2014 13:38:59 +0000 (15:38 +0200)]
Closes #21921: Fix ResourceWarning in the asyncio examples: close the event
loop at exit. Patch written by Vajrasky Kok (I modified also the "hello world"
example using a coroutine).

11 years ago(Merge 3.4) Closes #21886, #21447: Fix a race condition in asyncio when setting
Victor Stinner [Sat, 5 Jul 2014 13:30:42 +0000 (15:30 +0200)]
(Merge 3.4) Closes #21886, #21447: Fix a race condition in asyncio when setting
the result of a Future with call_soon(). Add an helper, a private method, to
set the result only if the future was not cancelled.

11 years agoCloses #21886, #21447: Fix a race condition in asyncio when setting the result
Victor Stinner [Sat, 5 Jul 2014 13:29:41 +0000 (15:29 +0200)]
Closes #21886, #21447: Fix a race condition in asyncio when setting the result
of a Future with call_soon(). Add an helper, a private method, to set the
result only if the future was not cancelled.

11 years agoIssue #21920: Merge from 3.4.
Berker Peksag [Sat, 5 Jul 2014 08:11:09 +0000 (11:11 +0300)]
Issue #21920: Merge from 3.4.

11 years agoIssue #21920: Add a missing colon to the __main__ doc.
Berker Peksag [Sat, 5 Jul 2014 08:10:16 +0000 (11:10 +0300)]
Issue #21920: Add a missing colon to the __main__ doc.

Patch by Stefan Tatschner.

11 years agoIssue #21897: Fix a crash with the f_locals attribute with closure variables when...
Antoine Pitrou [Sat, 5 Jul 2014 00:26:22 +0000 (20:26 -0400)]
Issue #21897: Fix a crash with the f_locals attribute with closure variables when frame.clear() has been called.

11 years agoIssue #21897: Fix a crash with the f_locals attribute with closure variables when...
Antoine Pitrou [Sat, 5 Jul 2014 00:24:13 +0000 (20:24 -0400)]
Issue #21897: Fix a crash with the f_locals attribute with closure variables when frame.clear() has been called.

11 years agomerge 3.4
Benjamin Peterson [Sat, 5 Jul 2014 00:17:57 +0000 (17:17 -0700)]
merge 3.4

11 years agoproperly decref the return value of close()
Benjamin Peterson [Sat, 5 Jul 2014 00:00:25 +0000 (17:00 -0700)]
properly decref the return value of close()

11 years agoproperly decref the return value of close()
Benjamin Peterson [Sat, 5 Jul 2014 00:00:25 +0000 (17:00 -0700)]
properly decref the return value of close()

11 years ago(Merge 3.4) Issue #21892, #21893: Partial revert of changeset 4f55e802baf0,
Victor Stinner [Fri, 4 Jul 2014 20:50:13 +0000 (22:50 +0200)]
(Merge 3.4) Issue #21892, #21893: Partial revert of changeset 4f55e802baf0,
PyErr_Format() uses "%zd" for Py_ssize_t, not PY_FORMAT_SIZE_T

11 years agoIssue #21892, #21893: Partial revert of changeset 4f55e802baf0, PyErr_Format()
Victor Stinner [Fri, 4 Jul 2014 20:47:46 +0000 (22:47 +0200)]
Issue #21892, #21893: Partial revert of changeset 4f55e802baf0, PyErr_Format()
uses "%zd" for Py_ssize_t, not PY_FORMAT_SIZE_T

11 years agoMerge from 3.4.
Berker Peksag [Fri, 4 Jul 2014 12:07:31 +0000 (15:07 +0300)]
Merge from 3.4.

11 years agoAdd an index entry for exec() builtin.
Berker Peksag [Fri, 4 Jul 2014 12:06:45 +0000 (15:06 +0300)]
Add an index entry for exec() builtin.

Reported by Draic Kin on docs@.

11 years ago#15014: Add 'auth' command to implement auth mechanisms and use it in login.
R David Murray [Thu, 3 Jul 2014 18:47:46 +0000 (14:47 -0400)]
#15014: Add 'auth' command to implement auth mechanisms and use it in login.

Patch by Milan Oberkirch.

11 years agoCloses #21151: Merge with 3.4
Zachary Ware [Thu, 3 Jul 2014 16:03:46 +0000 (11:03 -0500)]
Closes #21151: Merge with 3.4

11 years agoIssue #21151: Fixed a segfault in the winreg module.
Zachary Ware [Thu, 3 Jul 2014 15:58:06 +0000 (10:58 -0500)]
Issue #21151: Fixed a segfault in the winreg module.

When ``None`` was passed as a ``REG_BINARY`` value to SetValueEx,
PyMem_DEL was called on an uninitialized buffer.  Patch by John Ehresman.

(Also an incidental typo fix in a comment in test_winreg)

11 years agoMerge 3.4
Andrew Svetlov [Thu, 3 Jul 2014 13:07:57 +0000 (16:07 +0300)]
Merge 3.4

11 years agoUpdate docs about tp_richcompare
Andrew Svetlov [Thu, 3 Jul 2014 13:07:17 +0000 (16:07 +0300)]
Update docs about tp_richcompare

11 years agoIssue #21755: Skip {Frozen,Source}_DeadlockAvoidanceTests tests when
Berker Peksag [Thu, 3 Jul 2014 03:25:10 +0000 (06:25 +0300)]
Issue #21755: Skip {Frozen,Source}_DeadlockAvoidanceTests tests when
Python is built without threads.

11 years agomerge
Raymond Hettinger [Wed, 2 Jul 2014 23:31:54 +0000 (00:31 +0100)]
merge

11 years agoFix guidance for subclassing collections.Set()
Raymond Hettinger [Wed, 2 Jul 2014 23:31:30 +0000 (00:31 +0100)]
Fix guidance for subclassing collections.Set()

11 years ago(Merge 3.4) asyncio: sync with Tulip
Victor Stinner [Wed, 2 Jul 2014 22:59:28 +0000 (00:59 +0200)]
(Merge 3.4) asyncio: sync with Tulip

* _UnixSubprocessTransport: fix file mode of stdin. Open stdin in write mode,
  not in read mode
* Examples: close the event loop at exit
* More reliable CoroWrapper.__del__. If the constructor is interrupted by
  KeyboardInterrupt or the coroutine objet is destroyed lately, some the
  _source_traceback attribute doesn't exist anymore.
* repr(Task): include also the future the task is waiting for

11 years agoasyncio: sync with Tulip
Victor Stinner [Wed, 2 Jul 2014 22:59:00 +0000 (00:59 +0200)]
asyncio: sync with Tulip

* _UnixSubprocessTransport: fix file mode of stdin. Open stdin in write mode,
  not in read mode
* Examples: close the event loop at exit
* More reliable CoroWrapper.__del__. If the constructor is interrupted by
  KeyboardInterrupt or the coroutine objet is destroyed lately, some the
  _source_traceback attribute doesn't exist anymore.
* repr(Task): include also the future the task is waiting for

11 years ago(Merge 3.4) Issue #21090: io.FileIO.readall() does not ignore I/O errors
Victor Stinner [Wed, 2 Jul 2014 21:00:38 +0000 (23:00 +0200)]
(Merge 3.4) Issue #21090: io.FileIO.readall() does not ignore I/O errors
anymore. Before, it ignored I/O errors if at least the first C call read()
succeed.

11 years agoIssue #21090: io.FileIO.readall() does not ignore I/O errors anymore. Before,
Victor Stinner [Wed, 2 Jul 2014 20:59:31 +0000 (22:59 +0200)]
Issue #21090: io.FileIO.readall() does not ignore I/O errors anymore. Before,
it ignored I/O errors if at least the first C call read() succeed.

11 years agoNormalize style per PEP-8
Jason R. Coombs [Wed, 2 Jul 2014 12:36:19 +0000 (08:36 -0400)]
Normalize style per PEP-8

11 years agoIssue #5800: headers parameter of wsgiref.headers.Headers is now optional.
Berker Peksag [Wed, 2 Jul 2014 05:37:22 +0000 (08:37 +0300)]
Issue #5800: headers parameter of wsgiref.headers.Headers is now optional.

Patch by Pablo Torres Navarrete and SilentGhost.

11 years agoMerge 3.4
Andrew Svetlov [Wed, 2 Jul 2014 04:21:31 +0000 (07:21 +0300)]
Merge 3.4

11 years agoUse try-finally idiom in example for locks in multiprocessing
Andrew Svetlov [Wed, 2 Jul 2014 04:21:03 +0000 (07:21 +0300)]
Use try-finally idiom in example for locks in multiprocessing

11 years agoMerge with 3.4
Terry Jan Reedy [Wed, 2 Jul 2014 01:33:46 +0000 (21:33 -0400)]
Merge with 3.4

11 years agoMore idlelib cleanup inspired by pyflakes.
Terry Jan Reedy [Wed, 2 Jul 2014 01:33:31 +0000 (21:33 -0400)]
More idlelib cleanup inspired by pyflakes.

11 years agoIssue #18258: Fix test discovery for test_codecmaps_*.
Zachary Ware [Wed, 2 Jul 2014 01:06:19 +0000 (20:06 -0500)]
Issue #18258: Fix test discovery for test_codecmaps_*.

11 years agoIssue #18258: Fix test discovery for test_codecmaps_*.
Zachary Ware [Wed, 2 Jul 2014 00:55:04 +0000 (19:55 -0500)]
Issue #18258: Fix test discovery for test_codecmaps_*.

11 years agoMerge with 3.4
Terry Jan Reedy [Tue, 1 Jul 2014 22:52:53 +0000 (18:52 -0400)]
Merge with 3.4

11 years agoDelete a few unused names suggested by pyflakes.
Terry Jan Reedy [Tue, 1 Jul 2014 22:52:37 +0000 (18:52 -0400)]
Delete a few unused names suggested by pyflakes.

11 years ago(Merge 3.4) Issue #8677: make the zlib module "ssize_t clean" for parsing
Victor Stinner [Tue, 1 Jul 2014 14:48:42 +0000 (16:48 +0200)]
(Merge 3.4) Issue #8677: make the zlib module "ssize_t clean" for parsing
parameters

11 years agoIssue #8677: make the zlib module "ssize_t clean" for parsing parameters
Victor Stinner [Tue, 1 Jul 2014 14:48:12 +0000 (16:48 +0200)]
Issue #8677: make the zlib module "ssize_t clean" for parsing parameters

11 years ago(Merge 3.4) Closes #21780: make the unicodedata module "ssize_t clean" for
Victor Stinner [Tue, 1 Jul 2014 14:46:12 +0000 (16:46 +0200)]
(Merge 3.4) Closes #21780: make the unicodedata module "ssize_t clean" for
parsing parameters

11 years agoCloses #21780: make the unicodedata module "ssize_t clean" for parsing parameters
Victor Stinner [Tue, 1 Jul 2014 14:45:52 +0000 (16:45 +0200)]
Closes #21780: make the unicodedata module "ssize_t clean" for parsing parameters

11 years ago(Merge 3.4) Issue #21781: Make the ssl module "ssize_t clean" for parsing
Victor Stinner [Tue, 1 Jul 2014 14:39:23 +0000 (16:39 +0200)]
(Merge 3.4) Issue #21781: Make the ssl module "ssize_t clean" for parsing
parameters.  ssl.RAND_add() now supports strings longer than 2 GB.

11 years agoIssue #21781: Make the ssl module "ssize_t clean" for parsing parameters.
Victor Stinner [Tue, 1 Jul 2014 14:37:17 +0000 (16:37 +0200)]
Issue #21781: Make the ssl module "ssize_t clean" for parsing parameters.
ssl.RAND_add() now supports strings longer than 2 GB.

11 years ago(Merge 3.4) asyncio: Fix test_sleep_cancel(): call_later() mock has no self parameter
Victor Stinner [Tue, 1 Jul 2014 10:39:26 +0000 (12:39 +0200)]
(Merge 3.4) asyncio: Fix test_sleep_cancel(): call_later() mock has no self parameter

11 years agoasyncio: Fix test_sleep_cancel(): call_later() mock has no self parameter
Victor Stinner [Tue, 1 Jul 2014 10:38:51 +0000 (12:38 +0200)]
asyncio: Fix test_sleep_cancel(): call_later() mock has no self parameter

11 years ago(Merge 3.4) Closes #21892, #21893: Use PY_FORMAT_SIZE_T instead of %zi or %zu
Victor Stinner [Tue, 1 Jul 2014 06:57:54 +0000 (08:57 +0200)]
(Merge 3.4) Closes #21892, #21893: Use PY_FORMAT_SIZE_T instead of %zi or %zu
to format C size_t, because %zi/%u is not supported on all platforms.

11 years agoCloses #21892, #21893: Use PY_FORMAT_SIZE_T instead of %zi or %zu to format C
Victor Stinner [Tue, 1 Jul 2014 06:57:10 +0000 (08:57 +0200)]
Closes #21892, #21893: Use PY_FORMAT_SIZE_T instead of %zi or %zu to format C
size_t, because %zi/%u is not supported on all platforms.

11 years agoIssue #21891: remove extraneous semicolon.
Ned Deily [Tue, 1 Jul 2014 06:31:33 +0000 (23:31 -0700)]
Issue #21891: remove extraneous semicolon.

11 years agoIssue #21891: remove extraneous semicolon.
Ned Deily [Tue, 1 Jul 2014 06:31:14 +0000 (23:31 -0700)]
Issue #21891: remove extraneous semicolon.

11 years agoMerge with 3.4
Terry Jan Reedy [Tue, 1 Jul 2014 03:52:32 +0000 (23:52 -0400)]
Merge with 3.4

11 years agoIssue #18592: Refactor 2 SearchDialogBase.create_(option/other)_buttons methods
Terry Jan Reedy [Tue, 1 Jul 2014 03:52:20 +0000 (23:52 -0400)]
Issue #18592: Refactor 2 SearchDialogBase.create_(option/other)_buttons methods
to remove duplication and return info for tests.  Rewrite corresponding tests.
Test_create_option_buttons was not testing anything because of buggy
comparisons.  Use Python subscripting to get widget options.

11 years agoIssue #13689: Merge from 3.4.
Berker Peksag [Tue, 1 Jul 2014 03:03:24 +0000 (06:03 +0300)]
Issue #13689: Merge from 3.4.

11 years agoIssue #13689: Remove a dead link from howto/urllib.
Berker Peksag [Tue, 1 Jul 2014 03:02:42 +0000 (06:02 +0300)]
Issue #13689: Remove a dead link from howto/urllib.

11 years agoMerge with 3.4
Terry Jan Reedy [Tue, 1 Jul 2014 00:00:16 +0000 (20:00 -0400)]
Merge with 3.4

11 years agoIssue #18592: Add unittests for SearchDialogBase. Patch by Phil Webster.
Terry Jan Reedy [Tue, 1 Jul 2014 00:00:03 +0000 (20:00 -0400)]
Issue #18592: Add unittests for SearchDialogBase. Patch by Phil Webster.

11 years agoMerge with 3.4
Terry Jan Reedy [Mon, 30 Jun 2014 20:09:44 +0000 (16:09 -0400)]
Merge with 3.4

11 years agoIssue #21882: In turtle demos, remove module scope gui and sys calls by
Terry Jan Reedy [Mon, 30 Jun 2014 20:09:24 +0000 (16:09 -0400)]
Issue #21882: In turtle demos, remove module scope gui and sys calls by
either deleting or moving to the module's main function.

11 years ago(Merge 3.4) Issue #21163: BaseEventLoop.run_until_complete() and
Victor Stinner [Mon, 30 Jun 2014 12:51:24 +0000 (14:51 +0200)]
(Merge 3.4) Issue #21163: BaseEventLoop.run_until_complete() and
test_utils.run_briefly() don't log the "destroy pending task" message anymore.
The log is redundant for run_until_complete() and useless in run_briefly().

11 years agoIssue #21163: BaseEventLoop.run_until_complete() and test_utils.run_briefly()
Victor Stinner [Mon, 30 Jun 2014 12:51:04 +0000 (14:51 +0200)]
Issue #21163: BaseEventLoop.run_until_complete() and test_utils.run_briefly()
don't log the "destroy pending task" message anymore. The log is redundant for
run_until_complete() and useless in run_briefly().

11 years agoasyncio: sync with Tulip
Victor Stinner [Mon, 30 Jun 2014 12:39:47 +0000 (14:39 +0200)]
asyncio: sync with Tulip

- Sort imports
- Simplify/optimize iscoroutine(). Inline inspect.isgenerator(obj): replace it
  with isinstance(obj, types.GeneratorType)
- CoroWrapper: check at runtime if Python has the yield-from bug #21209.  If
  Python has the bug, check if CoroWrapper.send() was called by yield-from to
  decide if parameters must be unpacked or not.
- Fix "Task was destroyed but it is pending!" warning in
  test_task_source_traceback()

11 years agoasyncio: sync with Tulip
Victor Stinner [Mon, 30 Jun 2014 12:39:11 +0000 (14:39 +0200)]
asyncio: sync with Tulip

- Sort imports
- Simplify/optimize iscoroutine(). Inline inspect.isgenerator(obj): replace it
  with isinstance(obj, types.GeneratorType)
- CoroWrapper: check at runtime if Python has the yield-from bug #21209.  If
  Python has the bug, check if CoroWrapper.send() was called by yield-from to
  decide if parameters must be unpacked or not.
- Fix "Task was destroyed but it is pending!" warning in
  test_task_source_traceback()

11 years agoIssue #21645: asyncio: add a watchdog in test_read_all_from_pipe_reader() for
Victor Stinner [Mon, 30 Jun 2014 10:32:59 +0000 (12:32 +0200)]
Issue #21645: asyncio: add a watchdog in test_read_all_from_pipe_reader() for
debug

11 years agoFix typo in socket.getaddrinfo() docstring.
Berker Peksag [Mon, 30 Jun 2014 08:30:00 +0000 (11:30 +0300)]
Fix typo in socket.getaddrinfo() docstring.

Reported by Krishna Kumar Thakur on docs@.

11 years agoFix typo in socket.getaddrinfo() docstring.
Berker Peksag [Mon, 30 Jun 2014 08:28:40 +0000 (11:28 +0300)]
Fix typo in socket.getaddrinfo() docstring.

Reported by Krishna Kumar Thakur on docs@.

11 years agoIssue #21811: Add Misc/NEWS entry.
Ned Deily [Mon, 30 Jun 2014 06:54:38 +0000 (23:54 -0700)]
Issue #21811: Add Misc/NEWS entry.

11 years agoIssue #21811: Add Misc/NEWS entry.
Ned Deily [Mon, 30 Jun 2014 06:51:55 +0000 (23:51 -0700)]
Issue #21811: Add Misc/NEWS entry.

11 years agoIssue #14235: Merge from 3.4.
Berker Peksag [Mon, 30 Jun 2014 01:05:54 +0000 (04:05 +0300)]
Issue #14235: Merge from 3.4.

11 years agoIssue #14235: Use importlib.reload() in test_cmd.test_coverage.
Berker Peksag [Mon, 30 Jun 2014 01:04:52 +0000 (04:04 +0300)]
Issue #14235: Use importlib.reload() in test_cmd.test_coverage.

11 years agoIssue #21679: Prevent extraneous fstat() calls during open(). Patch by Bohuslav...
Antoine Pitrou [Mon, 30 Jun 2014 00:07:28 +0000 (20:07 -0400)]
Issue #21679: Prevent extraneous fstat() calls during open().  Patch by Bohuslav Kabrda.

11 years agoMerge 3.4.
Stefan Krah [Sun, 29 Jun 2014 22:16:09 +0000 (00:16 +0200)]
Merge 3.4.

11 years agoIssue #21778: Clarify use of flags if PyBuffer_FillInfo() is used inside a
Stefan Krah [Sun, 29 Jun 2014 22:15:45 +0000 (00:15 +0200)]
Issue #21778:  Clarify use of flags if PyBuffer_FillInfo() is used inside a
getbufferproc().

11 years agoFixes #10541: regrtest -T is broken
Alexander Belopolsky [Sun, 29 Jun 2014 21:44:05 +0000 (17:44 -0400)]
Fixes #10541: regrtest -T is broken

 * makes test_trace tests restore the tracefunc after they run
 * write_results() in trace module will not terminate if lnotab
   cannot be found.

11 years agoIssue #20753: Merge with 3.4.
Berker Peksag [Sun, 29 Jun 2014 12:56:21 +0000 (15:56 +0300)]
Issue #20753: Merge with 3.4.

11 years agoIssue #20753: Skip PasswordProtectedSiteTestCase when Python is built without threads.
Berker Peksag [Sun, 29 Jun 2014 12:54:56 +0000 (15:54 +0300)]
Issue #20753: Skip PasswordProtectedSiteTestCase when Python is built without threads.

11 years ago(Merge 3.4) asyncio: sync with Tulip, add a new asyncio.coroutines module
Victor Stinner [Sat, 28 Jun 2014 22:47:28 +0000 (00:47 +0200)]
(Merge 3.4) asyncio: sync with Tulip, add a new asyncio.coroutines module

11 years agoasyncio: sync with Tulip, add a new asyncio.coroutines module
Victor Stinner [Sat, 28 Jun 2014 22:46:45 +0000 (00:46 +0200)]
asyncio: sync with Tulip, add a new asyncio.coroutines module

11 years agoMERGE: Closes #11279: test_posix and lack of "id -G" support - less noise required...
Jesus Cea [Sat, 28 Jun 2014 16:39:51 +0000 (18:39 +0200)]
MERGE: Closes #11279: test_posix and lack of "id -G" support - less noise required? (Solaris)

11 years agoCloses #11279: test_posix and lack of "id -G" support - less noise required? (Solaris)
Jesus Cea [Sat, 28 Jun 2014 16:39:35 +0000 (18:39 +0200)]
Closes #11279: test_posix and lack of "id -G" support - less noise required? (Solaris)

11 years agoIssue #21863: cProfile now displays the module name of C extension functions, in...
Antoine Pitrou [Sat, 28 Jun 2014 03:49:29 +0000 (23:49 -0400)]
Issue #21863: cProfile now displays the module name of C extension functions, in addition to their own name.

11 years ago(Merge 3.4) asyncio: Fix two "Coroutine xxx was never yielded from" messages in
Victor Stinner [Fri, 27 Jun 2014 23:19:28 +0000 (01:19 +0200)]
(Merge 3.4) asyncio: Fix two "Coroutine xxx was never yielded from" messages in
tests

11 years agoasyncio: Fix two "Coroutine xxx was never yielded from" messages in tests
Victor Stinner [Fri, 27 Jun 2014 23:19:11 +0000 (01:19 +0200)]
asyncio: Fix two "Coroutine xxx was never yielded from" messages in tests

11 years ago(Merge 3.4) asyncio: Fix unit tests on Windows, escape filenames in regex
Victor Stinner [Fri, 27 Jun 2014 22:14:28 +0000 (00:14 +0200)]
(Merge 3.4) asyncio: Fix unit tests on Windows, escape filenames in regex

11 years agoasyncio: Fix unit tests on Windows, escape filenames in regex
Victor Stinner [Fri, 27 Jun 2014 22:12:02 +0000 (00:12 +0200)]
asyncio: Fix unit tests on Windows, escape filenames in regex

11 years ago(Merge 3.4) Issue #11453: asyncore: emit a ResourceWarning when an unclosed
Victor Stinner [Fri, 27 Jun 2014 21:57:19 +0000 (23:57 +0200)]
(Merge 3.4) Issue #11453: asyncore: emit a ResourceWarning when an unclosed
file_wrapper object is destroyed. The destructor now closes the file if needed.
The close() method can now be called twice: the second call does nothing.

11 years agoIssue #11453: asyncore: emit a ResourceWarning when an unclosed file_wrapper
Victor Stinner [Fri, 27 Jun 2014 21:52:03 +0000 (23:52 +0200)]
Issue #11453: asyncore: emit a ResourceWarning when an unclosed file_wrapper
object is destroyed. The destructor now closes the file if needed. The close()
method can now be called twice: the second call does nothing.

11 years ago(Merge 3.4) Closes #21582: Cleanup test_asyncore. Patch written by diana.
Victor Stinner [Fri, 27 Jun 2014 20:47:41 +0000 (22:47 +0200)]
(Merge 3.4) Closes #21582: Cleanup test_asyncore. Patch written by diana.

- Use support.captured_stderr() where appropriate
- Removes some "from test.support import xxx" import and uses support.xxx
  instead.

11 years agoCloses #21582: Cleanup test_asyncore. Patch written by diana.
Victor Stinner [Fri, 27 Jun 2014 20:44:40 +0000 (22:44 +0200)]
Closes #21582: Cleanup test_asyncore. Patch written by diana.

- Use support.captured_stderr() where appropriate
- Removes some "from test.support import xxx" import and uses support.xxx
  instead.

11 years agoMerge socket howto fixes from 3.4.
Ezio Melotti [Fri, 27 Jun 2014 13:34:57 +0000 (16:34 +0300)]
Merge socket howto fixes from 3.4.

11 years agoFix indentation and class name in socket howto example.
Ezio Melotti [Fri, 27 Jun 2014 13:34:14 +0000 (16:34 +0300)]
Fix indentation and class name in socket howto example.

11 years ago(Merge 3.4) asyncio, Tulip issue 137: In debug mode, save traceback where
Victor Stinner [Fri, 27 Jun 2014 11:55:28 +0000 (13:55 +0200)]
(Merge 3.4) asyncio, Tulip issue 137: In debug mode, save traceback where
Future, Task and Handle objects are created. Pass the traceback to
call_exception_handler() in the 'source_traceback' key.

The traceback is truncated to hide internal calls in asyncio, show only the
traceback from user code.

Add tests for the new source_traceback, and a test for the 'Future/Task
exception was never retrieved' log.

11 years agoasyncio, Tulip issue 137: In debug mode, save traceback where Future, Task and
Victor Stinner [Fri, 27 Jun 2014 11:52:20 +0000 (13:52 +0200)]
asyncio, Tulip issue 137: In debug mode, save traceback where Future, Task and
Handle objects are created. Pass the traceback to call_exception_handler() in
the 'source_traceback' key.

The traceback is truncated to hide internal calls in asyncio, show only the
traceback from user code.

Add tests for the new source_traceback, and a test for the 'Future/Task
exception was never retrieved' log.

11 years ago(Merge 3.4) asyncio, Tulip issue 137: In debug mode, add the traceback where
Victor Stinner [Fri, 27 Jun 2014 10:29:30 +0000 (12:29 +0200)]
(Merge 3.4) asyncio, Tulip issue 137: In debug mode, add the traceback where
the coroutine object was created to the "coroutine ... was never yield from"
log

11 years agoasyncio, Tulip issue 137: In debug mode, add the traceback where the coroutine
Victor Stinner [Fri, 27 Jun 2014 10:28:41 +0000 (12:28 +0200)]
asyncio, Tulip issue 137: In debug mode, add the traceback where the coroutine
object was created to the "coroutine ... was never yield from" log

11 years ago(Merge 3.4) asyncio: Oops, restore a removed test
Victor Stinner [Fri, 27 Jun 2014 10:24:14 +0000 (12:24 +0200)]
(Merge 3.4) asyncio: Oops, restore a removed test

11 years agoasyncio: Oops, restore a removed test
Victor Stinner [Fri, 27 Jun 2014 10:23:41 +0000 (12:23 +0200)]
asyncio: Oops, restore a removed test

11 years agoIssue #21875: Remove vestigial references to Classic Mac OS in os module docs.
Ned Deily [Fri, 27 Jun 2014 06:42:38 +0000 (23:42 -0700)]
Issue #21875: Remove vestigial references to Classic Mac OS in os module docs.

11 years agoIssue #21875: Remove vestigial references to Classic Mac OS in os module docs.
Ned Deily [Fri, 27 Jun 2014 06:40:06 +0000 (23:40 -0700)]
Issue #21875: Remove vestigial references to Classic Mac OS in os module docs.

11 years agomerge 3.4
Benjamin Peterson [Fri, 27 Jun 2014 06:29:19 +0000 (23:29 -0700)]
merge 3.4

11 years agouse NULL not 0
Benjamin Peterson [Fri, 27 Jun 2014 06:29:13 +0000 (23:29 -0700)]
use NULL not 0

11 years ago(Merge 3.4) Issue #21858: Better handling of Python exceptions in the sqlite3
Victor Stinner [Thu, 26 Jun 2014 21:33:34 +0000 (23:33 +0200)]
(Merge 3.4) Issue #21858: Better handling of Python exceptions in the sqlite3
module.