]> granicus.if.org Git - python/log
python
10 years agoIssue #21163, asyncio: Ignore "destroy pending task" warnings for private tasks
Victor Stinner [Wed, 16 Jul 2014 16:36:24 +0000 (18:36 +0200)]
Issue #21163, asyncio: Ignore "destroy pending task" warnings for private tasks
in gather().

10 years agoasyncio: test_selector_events: remove duplicate call to _on_handshake() method
Victor Stinner [Wed, 16 Jul 2014 16:02:10 +0000 (18:02 +0200)]
asyncio: test_selector_events: remove duplicate call to _on_handshake() method

The _SelectorSslTransport constructor already calls it.

10 years agoIssue #21765: Add support for non-ascii identifiers to HyperParser
Tal Einat [Wed, 16 Jul 2014 13:33:36 +0000 (16:33 +0300)]
Issue #21765: Add support for non-ascii identifiers to HyperParser

10 years agoIssue #21982: Add minimal unittest for configDialog with 46% coverage.
Terry Jan Reedy [Tue, 15 Jul 2014 03:07:32 +0000 (23:07 -0400)]
Issue #21982: Add minimal unittest for configDialog with 46% coverage.
Fix regression that this test would have caught.

10 years agoasyncio tests: make quiet the logs of SSL handshake failures when running tests
Victor Stinner [Mon, 14 Jul 2014 20:26:34 +0000 (22:26 +0200)]
asyncio tests: make quiet the logs of SSL handshake failures when running tests
in debug mode

10 years agoasyncio: sync with Tulip
Victor Stinner [Mon, 14 Jul 2014 16:33:40 +0000 (18:33 +0200)]
asyncio: sync with Tulip

* Tulip issue #184: Log subprocess events in debug mode

  - Log stdin, stdout and stderr transports and protocols
  - Log process identifier (pid)
  - Log connection of pipes
  - Log process exit
  - Log Process.communicate() tasks: feed stdin, read stdout and stderr
  - Add __repr__() method to many classes related to subprocesses

* Add BaseSubprocessTransport._pid attribute. Store the pid so it is still
  accessible after the process exited. It's more convinient for debug.

* create_connection(): add the socket in the "connected to" debug log

* Clean up some docstrings and comments. Remove unused unimplemented
  _read_from_self().

10 years agoCall PyErr_NoMemory() when PyMem_Malloc() fails.
Serhiy Storchaka [Mon, 14 Jul 2014 09:20:15 +0000 (12:20 +0300)]
Call PyErr_NoMemory() when PyMem_Malloc() fails.

10 years agoIssue 21977: Minor improvements to the regexes in the tokenizer example.
Raymond Hettinger [Mon, 14 Jul 2014 08:52:00 +0000 (01:52 -0700)]
Issue 21977:  Minor improvements to the regexes in the tokenizer example.

10 years agoIssue #18592: Method return signature changes made to SearchDialogBase for
Terry Jan Reedy [Sun, 13 Jul 2014 21:27:26 +0000 (17:27 -0400)]
Issue #18592: Method return signature changes made to SearchDialogBase for
test purposes are now reflected in GrepDialog and ReplaceDialog.  Docstrings
are improved. Initial patch by Saimadhav Heblikar

10 years agoIssue #21323: Fix http.server to again handle scripts in CGI subdirectories,
Ned Deily [Sun, 13 Jul 2014 05:16:56 +0000 (22:16 -0700)]
Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,
broken by the fix for security issue #19435.  Patch by Zach Byrne.

10 years agoIssue #21323: Fix http.server to again handle scripts in CGI subdirectories,
Ned Deily [Sun, 13 Jul 2014 05:12:39 +0000 (22:12 -0700)]
Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,
broken by the fix for security issue #19435.  Patch by Zach Byrne.

10 years agoIssue #21323: Fix http.server to again handle scripts in CGI subdirectories,
Ned Deily [Sun, 13 Jul 2014 05:06:26 +0000 (22:06 -0700)]
Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,
broken by the fix for security issue #19435.  Patch by Zach Byrne.

10 years agoIssue #19076: Don't pass the redundant 'file' argument to self.error().
Berker Peksag [Sat, 12 Jul 2014 15:24:32 +0000 (18:24 +0300)]
Issue #19076: Don't pass the redundant 'file' argument to self.error().

10 years agoasyncio: Server.close() leaves client sockets open
Victor Stinner [Sat, 12 Jul 2014 01:20:24 +0000 (03:20 +0200)]
asyncio: Server.close() leaves client sockets open

10 years agoasyncio: sync with Tulip
Victor Stinner [Sat, 12 Jul 2014 01:11:53 +0000 (03:11 +0200)]
asyncio: sync with Tulip

* Tulip issue #183: log socket events in debug mode

  - Log most important socket events: socket connected, new client, connection
    reset or closed by peer (EOF), etc.
  - Log time elapsed in DNS resolution (getaddrinfo)
  - Log pause/resume reading
  - Log time of SSL handshake
  - Log SSL handshake errors
  - Add a __repr__() method to many classes

* Fix ProactorEventLoop() in debug mode. ProactorEventLoop._make_self_pipe()
  doesn't call call_soon() directly because it checks for the current loop
  which fails, because the method is called to build the event loop.

* Cleanup _ProactorReadPipeTransport constructor. Not need to set again
  _read_fut attribute to None, it is already done in the base class.

10 years agoasyncio: improve the documentation of servers
Victor Stinner [Fri, 11 Jul 2014 21:47:40 +0000 (23:47 +0200)]
asyncio: improve the documentation of servers

- Fix the documentation of Server.close(): it closes sockets
- Replace AbstractServer with Server
- Document Server.sockets attribute

10 years agoasyncio, Tulip issue 180: Make Server attributes and methods private
Victor Stinner [Fri, 11 Jul 2014 20:52:21 +0000 (22:52 +0200)]
asyncio, Tulip issue 180: Make Server attributes and methods private

- loop, waiters and active_count attributes are now private
- attach(), detach() and wakeup() methods are now private

The sockets attribute remains public.

10 years agoIssue #21906: Make Tools/scripts/md5sum.py work in Python 3.
Berker Peksag [Fri, 11 Jul 2014 17:42:18 +0000 (20:42 +0300)]
Issue #21906: Make Tools/scripts/md5sum.py work in Python 3.

Patch by Zachary Ware.

10 years agoasyncio: enhance documentation of platform support
Victor Stinner [Fri, 11 Jul 2014 10:13:39 +0000 (12:13 +0200)]
asyncio: enhance documentation of platform support

10 years agoasyncio: sync with Tulip
Victor Stinner [Fri, 11 Jul 2014 09:58:33 +0000 (11:58 +0200)]
asyncio: sync with Tulip

* Tulip issue #182: Improve logs of BaseEventLoop._run_once()

  - Don't log non-blocking poll
  - Only log polling with a timeout if it gets events or if it timed out after
    more than 1 second.

* Fix some pyflakes warnings: remove unused imports

10 years agoIssue #18592: Make unittest for SearchDialogBase work on all tk versions.
Terry Jan Reedy [Fri, 11 Jul 2014 04:37:14 +0000 (00:37 -0400)]
Issue #18592: Make unittest for SearchDialogBase work on all tk versions.

10 years agoIdle News entries.
Terry Jan Reedy [Fri, 11 Jul 2014 04:24:27 +0000 (00:24 -0400)]
Idle News entries.

10 years ago#21940: Add unittest for WidgetRedirector. Initial patch by Saimadhav Heblikar.
Terry Jan Reedy [Fri, 11 Jul 2014 04:16:00 +0000 (00:16 -0400)]
#21940: Add unittest for WidgetRedirector. Initial patch by Saimadhav Heblikar.

10 years agoasyncio: sync with Tulip
Victor Stinner [Thu, 10 Jul 2014 23:04:16 +0000 (01:04 +0200)]
asyncio: sync with Tulip

- CoroWrapper.__del__() now reuses repr(CoroWrapper) to log the "... was never
  yielded from" warning
- Improve CoroWrapper: copy also the qualified name on Python 3.4, not only on
  Python 3.5+

10 years agoasyncio: sync with Tulip
Victor Stinner [Thu, 10 Jul 2014 22:21:27 +0000 (00:21 +0200)]
asyncio: sync with Tulip

- repr(Task) and repr(CoroWrapper) now also includes where these objects were
  created. If the coroutine is not a generator (don't use "yield from"), use
  the location of the function, not the location of the coro() wrapper.
- Fix create_task(): truncate the traceback to hide the call to create_task().

10 years agoasyncio: sync with Tulip
Victor Stinner [Thu, 10 Jul 2014 20:32:58 +0000 (22:32 +0200)]
asyncio: sync with Tulip

- Issues #21936, #21163: Fix sporadic failures of
  test_future_exception_never_retrieved()
- Handle.cancel() now clears references to callback and args
- In debug mode, repr(Handle) now contains the location where the Handle was
  created.

10 years agoIssue #21942: Fixed source file viewing in pydoc's server mode on Windows.
Zachary Ware [Thu, 10 Jul 2014 16:18:00 +0000 (11:18 -0500)]
Issue #21942: Fixed source file viewing in pydoc's server mode on Windows.

10 years agoIssue #21940: add docstrings to idlelib.WidgetRedirector.
Terry Jan Reedy [Thu, 10 Jul 2014 05:16:49 +0000 (01:16 -0400)]
Issue #21940: add docstrings to idlelib.WidgetRedirector.

10 years agoIssues #21948 and #16040: Fix typos.
Berker Peksag [Wed, 9 Jul 2014 17:15:28 +0000 (20:15 +0300)]
Issues #21948 and #16040: Fix typos.

10 years agoasyncion, Tulip issue 181: BaseEventLoop.create_datagram_endpoint() now waits
Victor Stinner [Tue, 8 Jul 2014 21:57:31 +0000 (23:57 +0200)]
asyncion, Tulip issue 181: BaseEventLoop.create_datagram_endpoint() now waits
until protocol.connection_made() has been called. Document also why transport
constructors use a waiter.

10 years agoIssue #21680: Document asyncio event loops
Victor Stinner [Tue, 8 Jul 2014 21:42:38 +0000 (23:42 +0200)]
Issue #21680: Document asyncio event loops

10 years agoUpdate asyncio documentation
Victor Stinner [Tue, 8 Jul 2014 10:39:10 +0000 (12:39 +0200)]
Update asyncio documentation

- Document the new create_task() method
- "Hide" the Task class: point to the create_task() method for interoperability
- Rewrite the documentation of the Task class
- Document the "Pending task destroyed"
- Update output in debug mode of examples in the dev section
- Replace Task() with create_task() in examples

10 years agoasyncio: sync with Tulip
Victor Stinner [Tue, 8 Jul 2014 09:29:25 +0000 (11:29 +0200)]
asyncio: sync with Tulip

- Tulip issue 185: Add a create_task() method to event loops. The create_task()
  method can be overriden in custom event loop to implement their own task
  class. For example, greenio and Pulsar projects use their own task class. The
  create_task() method is now preferred over creating directly task using the
  Task class.
- tests: fix a warning
- fix typo in the name of a test function
- Update AbstractEventLoop: add new event loop methods; update also the unit test

10 years agoIssue #11259: asynchat.async_chat().set_terminator() now raises a ValueError if
Victor Stinner [Mon, 7 Jul 2014 22:26:36 +0000 (00:26 +0200)]
Issue #11259: asynchat.async_chat().set_terminator() now raises a ValueError if
the number of received bytes is negative.

10 years agoasynchat: PEP8-ify the code
Victor Stinner [Mon, 7 Jul 2014 22:16:54 +0000 (00:16 +0200)]
asynchat: PEP8-ify the code

10 years agoIssue #12523: asynchat.async_chat.push() now raises a TypeError if it doesn't
Victor Stinner [Mon, 7 Jul 2014 22:00:30 +0000 (00:00 +0200)]
Issue #12523: asynchat.async_chat.push() now raises a TypeError if it doesn't
get a bytes string

10 years agoIssue #21925: PyImport_Cleanup(): Remove unused parameter in
Victor Stinner [Mon, 7 Jul 2014 21:06:15 +0000 (23:06 +0200)]
Issue #21925: PyImport_Cleanup(): Remove unused parameter in
PySys_FormatStderr() call

10 years agoIssue #21781, _ssl: Fix asn1obj2py() on Windows 64-bit, "s#" format requires
Victor Stinner [Mon, 7 Jul 2014 19:52:29 +0000 (21:52 +0200)]
Issue #21781, _ssl: Fix asn1obj2py() on Windows 64-bit, "s#" format requires
size to be a Py_ssize_t, not an int. _ssl.c is now "Py_ssize_t clean".

10 years agoIssue #17846: Clarify note about Solution Folders.
Zachary Ware [Mon, 7 Jul 2014 19:33:24 +0000 (14:33 -0500)]
Issue #17846: Clarify note about Solution Folders.

Initial patch by Kathleen Weaver.

10 years agoFix MSVC edition mismatch.
Zachary Ware [Mon, 7 Jul 2014 19:31:34 +0000 (14:31 -0500)]
Fix MSVC edition mismatch.

10 years agoIssue #21707: Fix tests on Windows.
Berker Peksag [Mon, 7 Jul 2014 18:29:50 +0000 (21:29 +0300)]
Issue #21707: Fix tests on Windows.

10 years agoasyncio: sync with Tulip
Victor Stinner [Mon, 7 Jul 2014 16:08:22 +0000 (18:08 +0200)]
asyncio: sync with Tulip

Backout the "Tulip issue 181: Faster create_connection()" changeset, it was a
mistake.

10 years agoasyncio: sync with Tulip
Victor Stinner [Mon, 7 Jul 2014 15:26:54 +0000 (17:26 +0200)]
asyncio: sync with Tulip

- Tulip issue #181: Faster create_connection(). Call directly
  waiter.set_result() in the constructor of _ProactorBasePipeTransport and
  _SelectorSocketTransport, instead of using of delaying the call with
  call_soon().
- Cleanup iscoroutine()

10 years agoMerge heads
Serhiy Storchaka [Mon, 7 Jul 2014 12:18:22 +0000 (15:18 +0300)]
Merge heads

10 years agoIssue #21707: Add missing kwonlyargcount argument to ModuleFinder.replace_paths_in_c...
Berker Peksag [Mon, 7 Jul 2014 11:58:12 +0000 (14:58 +0300)]
Issue #21707: Add missing kwonlyargcount argument to  ModuleFinder.replace_paths_in_code().

10 years agoIssue #21881: Just omit tests for platform-specific NaN representation in test_tcl.
Serhiy Storchaka [Mon, 7 Jul 2014 11:57:08 +0000 (14:57 +0300)]
Issue #21881: Just omit tests for platform-specific NaN representation in test_tcl.

10 years agoIssue #19593: Use specific asserts in importlib tests.
Serhiy Storchaka [Mon, 7 Jul 2014 11:08:19 +0000 (14:08 +0300)]
Issue #19593: Use specific asserts in importlib tests.

10 years agoMerge heads
Serhiy Storchaka [Mon, 7 Jul 2014 10:46:09 +0000 (13:46 +0300)]
Merge heads

10 years agoIssue #21881: Be more tolerant in test_tcl to not parsable by float() NaN
Serhiy Storchaka [Mon, 7 Jul 2014 10:44:33 +0000 (13:44 +0300)]
Issue #21881: Be more tolerant in test_tcl to not parsable by float() NaN
representations (on mips and m68k platforms).

10 years agoIssue #20639: calling Path.with_suffix('') allows removing the suffix again.
Antoine Pitrou [Mon, 7 Jul 2014 01:37:15 +0000 (21:37 -0400)]
Issue #20639: calling Path.with_suffix('') allows removing the suffix again.
Patch by July Tikhonov.

10 years agoIssue #21714: Disallow the construction of invalid paths using Path.with_name()....
Antoine Pitrou [Mon, 7 Jul 2014 01:31:12 +0000 (21:31 -0400)]
Issue #21714: Disallow the construction of invalid paths using Path.with_name().  Original patch by Antony Lee.

10 years agoIssue #21923: Prevent AttributeError in distutils.sysconfig.customize_compiler
Ned Deily [Sun, 6 Jul 2014 23:14:33 +0000 (16:14 -0700)]
Issue #21923: Prevent AttributeError in distutils.sysconfig.customize_compiler
due to possible uninitialized _config_vars.  Original patch by Alex Gaynor.

10 years ago#20135: move FAQ about mutable default arguments to the programming FAQs page.
Ezio Melotti [Sun, 6 Jul 2014 17:53:27 +0000 (20:53 +0300)]
#20135: move FAQ about mutable default arguments to the programming FAQs page.

10 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).

10 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.

10 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.

10 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.

10 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()

10 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

10 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@.

10 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)

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

10 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()

10 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

10 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.

10 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

10 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.

10 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_*.

10 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.

10 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

10 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

10 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.

10 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

10 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.

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

10 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.

10 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.

10 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.

10 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.

10 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().

10 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()

10 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@.

10 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.

10 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.

10 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().

10 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.

10 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

10 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)

10 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

10 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

10 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.

10 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.

10 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.

10 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.

10 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

10 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

10 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.

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

10 years agoIssue #21858: Better handling of Python exceptions in the sqlite3 module.
Victor Stinner [Thu, 26 Jun 2014 21:32:00 +0000 (23:32 +0200)]
Issue #21858: Better handling of Python exceptions in the sqlite3 module.

10 years agoIssue #21829: Fix running test_ctypes on Windows with -O or -OO
Zachary Ware [Thu, 26 Jun 2014 20:20:44 +0000 (15:20 -0500)]
Issue #21829: Fix running test_ctypes on Windows with -O or -OO