Issue #20246: Fix test failures on FreeBSD. Patch by Ryan Smith-Roberts.
Created release branch for 3.4.
Issue #20505: Use even shorter sleep in test_timeout_rounding() to make the
test more reliable (= fail more often on Windows with HPET enabled).
merge with 3.3
Issue #20505: BaseEventLoop uses again the resolution of the clock to decide if
scheduled tasks should be executed or not.
Issue #20505: Fix TestLoop, set the clock resolution
Issue #20505: Improve debug info in asyncio event loop
Issue #20505: Oops, only print debug info if selector.select(timeout) took less
than timeout
Issue #20505: use also the monotonic time to decide if asyncio debug traces
should be printed
asyncio, Tulip issue 126: call_soon(), call_soon_threadsafe(), call_later(),
call_at() and run_in_executor() now raise a TypeError if the callback is a
coroutine function.
asyncio, Tulip issue 130: Add more checks on subprocess_exec/subprocess_shell
parameters
asyncio, Tulip issue 131: as_completed() and wait() now raises a TypeError if
the list of futures is not a list but a Future, Task or coroutine object
merge 3.3 (#20594)
Issue #20505: Remove debug code
Issue #20495: Skip test_read_pty_output() of test_asyncio on FreeBSD older than
FreeBSD 8
asyncio.events: Use __slots__ in Handle and TimerHandle
asyncio: Change as_completed() to use a Queue, to avoid O(N**2) behavior. Fixes issue #20566.
ayncio, Tulip issue 129: BaseEventLoop.sock_connect() now raises an error if
the address is not resolved (hostname instead of an IP address) for AF_INET and
AF_INET6 address families.
Fix test_asyncio/test_events.py: skip IPv6 if IPv6 is disabled on the host
Issue #20526, #19466: Revert changes of issue #19466 which introduces a
regression: don't clear anymore the state of Python threads early during the
Python shutdown.