[issue32458] test_asyncio: test_start_tls_server_1() fails randomly

2018-05-27 Thread Yury Selivanov
Yury Selivanov added the comment: Christian, I believe https://github.com/python/cpython/pull/7130/commits/bd17a5593f03e3f2d39a64f5afd3ffb77c97e914 fixes the issue with OpenSSL 1.1.1 (socket.shutdown was missing and asyncio's protocol didn't receive EOF, instead the connection was

[issue32458] test_asyncio: test_start_tls_server_1() fails randomly

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: > It's a race condition which doesn't depend on the OS, but on the system load. Yeah, I agree. The current timeout for the test is 5 seconds and it tries to transfer 2mb of data, which isn't that much actually. I'll bump the timeout a

[issue33623] Fix possible SIGSGV when asyncio.Future is created in __del__

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: There's nothing specific here to uvloop except the fact that it was compiled with Cython, so module finalization/GC pattern is slightly different to that of vanilla asyncio. Serhiy, I'm merging this PR since I'd like to avoid having seg

[issue33623] Fix possible SIGSGV when asyncio.Future is created in __del__

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 35230d08e09de4e2e52658d5cb09e5b0ca965418 by Yury Selivanov in branch 'master': bpo-33623: Fix possible SIGSGV when asyncio.Future is created in __del__ (#7080) https://github.com/python/cpython/commit/35230d08e09de4e2e52658d5cb09e5

[issue31647] asyncio: StreamWriter write_eof() after close raises mysterious AttributeError

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 23f587e395e41bd5e116312b036183f42bc4159b by Yury Selivanov (twisteroid ambassador) in branch 'master': bpo-31647: Fix write_eof() after close() for SelectorSocketTransport (GH-7149) https://github.com/python/cpyt

[issue32458] test_asyncio: test_start_tls_server_1() fails randomly

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: > If the purpose is to detect when the test hangs: use a timeout of 5 minutes, > or at least 1 minute (60 seconds). OK, sounds good, will do that. -- ___ Python tracker <https://bugs.python.org/i

[issue31647] asyncio: StreamWriter write_eof() after close raises mysterious AttributeError

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 1f21ae710d83a37c872355612b58958cef4d5f95 by Yury Selivanov (Miss Islington (bot)) in branch '3.7': bpo-31647: Fix write_eof() after close() for SelectorSocketTransport (GH-7149) (GH-7153) https://github.com/python/cpyt

[issue31647] asyncio: StreamWriter write_eof() after close raises mysterious AttributeError

2018-05-28 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue31647] asyncio: StreamWriter write_eof() after close raises mysterious AttributeError

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: Merged, thanks for looking into this! BTW, if you have any other bugfixes in mind, today is pretty much last chance to get them into 3.7.0 -- ___ Python tracker <https://bugs.python.org/issue31

[issue33672] Fix Task.__repr__ crash when trying to format Cython's bogus coroutines

2018-05-28 Thread Yury Selivanov
Change by Yury Selivanov : -- components: asyncio nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Fix Task.__repr__ crash when trying to format Cython's bogus coroutines type: behavior versions: Python 3.6, Python 3.7, Pytho

[issue33672] Fix Task.__repr__ crash when trying to format Cython's bogus coroutines

2018-05-28 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +6796 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33672> ___ ___ Py

[issue31096] asyncio.stream.FlowControlMixin._drain_helper may lead to a blocking behavior

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: Documenting this would be a great first step. -- ___ Python tracker <https://bugs.python.org/issue31096> ___ ___ Python-bug

[issue23749] asyncio missing wrap_socket (starttls)

2018-05-28 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue33505] Optimize asyncio.ensure_future by reordering if conditions

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset e549c4be5fb010f5faf12236af8faa720a1429be by Yury Selivanov (jimmylai) in branch 'master': bpo-33505: Optimize asyncio.ensure_future by reordering if conditions (GH-6836) https://github.com/python/cpyt

[issue33469] RuntimeError after closing loop that used run_in_executor

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: Hopefully asyncio.run() in Python 3.7 will handle this case correctly. -- ___ Python tracker <https://bugs.python.org/issue33

[issue32591] Deprecate sys.set_coroutine_wrapper and replace it with more focused API(s)

2018-05-28 Thread Yury Selivanov
Change by Yury Selivanov : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue32591> ___ ___ Pyth

[issue33469] RuntimeError after closing loop that used run_in_executor

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: Ah, I see, the callback that tracks the state of the wrapped concurrent.Future doesn't check that the loop is closed and its future has been cancelled. I think this is a bug. -- ___ Python tracker &

[issue33654] asyncio: transports don't support switching between Protocol and BufferedProtocol

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset dbf102271fcc316f353c7e0a283811b661d128f2 by Yury Selivanov in branch 'master': bpo-33654: Support BufferedProtocol in set_protocol() and start_tls() (GH-7130) https://github.com/python/cpython/commit/dbf102271fcc316f353c7e0a283811

[issue32458] test_asyncio: test_start_tls_server_1() fails randomly

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: https://github.com/python/cpython/pull/7130 is in. It includes many tests for TLS tests as well as bugfixes to asyncio code. Hopefully this all will make tests more stable. -- ___ Python tracker <ht

[issue33505] Optimize asyncio.ensure_future by reordering if conditions

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset f8fdb368e3d8d048bffc248fbe1023651c276671 by Yury Selivanov (Miss Islington (bot)) in branch '3.7': bpo-33505: Optimize asyncio.ensure_future by reordering if conditions (GH-6836) (#7162) https://github.com/python/cpyt

[issue32762] Choose protocol implementation on transport.set_protocol()

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: Closing in favour of https://bugs.python.org/issue33654 -- resolution: -> duplicate stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker <https://bugs.python

[issue30945] loop.create_server does not detect if the interface is IPv6 enabled

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: Does anybody wants to make a PR to fix this? -- ___ Python tracker <https://bugs.python.org/issue30945> ___ ___ Python-bug

[issue33654] asyncio: transports don't support switching between Protocol and BufferedProtocol

2018-05-28 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior ___ Python tracker <https://bugs.python

[issue33505] Optimize asyncio.ensure_future by reordering if conditions

2018-05-28 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32458] test_asyncio: test_start_tls_server_1() fails randomly

2018-05-28 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +6801 ___ Python tracker <https://bugs.python.org/issue32458> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32410] Implement loop.sock_sendfile method

2018-05-28 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +6807 ___ Python tracker <https://bugs.python.org/issue32410> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33672] Fix Task.__repr__ crash when trying to format Cython's bogus coroutines

2018-05-28 Thread Yury Selivanov
New submission from Yury Selivanov : New changeset 989b9e0e6d7dd2fa911f9bfd4744e7f3a82d6006 by Yury Selivanov in branch 'master': bpo-33672: Fix Task.__repr__ crash with Cython's bogus coroutines (GH-7161) https://github.com/python/cpython/commit/989b9e0e6d7dd2fa911f9bfd4

[issue31647] asyncio: StreamWriter write_eof() after close raises mysterious AttributeError

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 7e8819a589c7630db9d440826143ad0a1daf948e by Yury Selivanov (Miss Islington (bot)) in branch '3.6': bpo-31647: Fix write_eof() after close() for SelectorSocketTransport (GH-7149) (#7154) https://github.com/python/cpyt

[issue32458] test_asyncio: test_start_tls_server_1() fails randomly

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 8267ea2e84d355f00654dec3ad782fc7b1f680f1 by Yury Selivanov in branch 'master': bpo-32458: Further tune start_tls tests (#7166) https://github.com/python/cpython/commit/8267ea2e84d355f00654dec3ad782f

[issue32610] asyncio.all_tasks() should return only non-finished tasks.

2018-05-28 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +6809 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32610> ___ ___ Py

[issue32610] asyncio.all_tasks() should return only non-finished tasks.

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: After an off-list discussion I think I was able to convince Andrew to change the behaviour of the newly added asyncio.all_tasks() to return only pending tasks. The logic behind this is that: 1. there's no good known use case for returning a list of al

[issue32038] Add API to intercept socket.close()

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: Closing this one. Using private socket.socket APIs works fine for uvloop/asyncio. -- resolution: -> rejected stage: -> resolved status: open -> closed type: -> enhancement ___ Python tra

[issue32672] .then execution of actions following a future's completion

2018-05-28 Thread Yury Selivanov
Change by Yury Selivanov : -- status: open -> closed ___ Python tracker <https://bugs.python.org/issue32672> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue33674] asyncio: race condition in SSLProtocol

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: The fix is correct and the bug is now obvious: data_received() occur pretty much any time after connection_made() call; if call_soon() is used in connection_made(), data_received() may find the protocol in an incorrect state. Kudos Victor for debugging this

[issue33674] asyncio: race condition in SSLProtocol

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: And I agree, this should make it to 3.7.0 -- ___ Python tracker <https://bugs.python.org/issue33674> ___ ___ Python-bugs-list m

[issue33469] RuntimeError after closing loop that used run_in_executor

2018-05-28 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +6806 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33469> ___ ___ Py

[issue32410] Implement loop.sock_sendfile method

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 7165754b6b5f3b7c07050d921fa1c58bba5f0ff1 by Yury Selivanov in branch 'master': bpo-32410: Avoid blocking on file IO in sendfile fallback code (GH-7172) https://github.com/python/cpython/commit/7165754b6b5f3b7c07050d921fa1c5

[issue33672] Fix Task.__repr__ crash when trying to format Cython's bogus coroutines

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 075c662086859f864aa1179f57367aa470ee6335 by Yury Selivanov (Miss Islington (bot)) in branch '3.7': bpo-33672: Fix Task.__repr__ crash with Cython's bogus coroutines (GH-7161) (GH-7173) https://github.com/python

[issue32610] asyncio.all_tasks() should return only non-finished tasks.

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: Ned, this one would also be nice to have in 3.7.0. The patch alters the behaviour of new 3.7 api. -- priority: normal -> release blocker ___ Python tracker <https://bugs.python.org/issu

[issue31647] asyncio: StreamWriter write_eof() after close raises mysterious AttributeError

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: Would be great to have this change in 3.7.0 (it's safe to merge it IMO) -- nosy: +larry, ned.deily priority: normal -> release blocker ___ Python tracker <https://bugs.python.org

[issue33672] Fix Task.__repr__ crash when trying to format Cython's bogus coroutines

2018-05-28 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +6815 ___ Python tracker <https://bugs.python.org/issue33672> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33623] Fix possible SIGSGV when asyncio.Future is created in __del__

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: Would be great to merge this in 3.7.0. The change is super safe to merge. -- nosy: +ned.deily priority: normal -> release blocker ___ Python tracker <https://bugs.python.org/issu

[issue32610] asyncio.all_tasks() should return only non-finished tasks.

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 416c1ebd9896b394790dcb4f9f035b1a44ebe9ff by Yury Selivanov in branch 'master': bpo-32610: Fix asyncio.all_tasks() to return only pending tasks. (GH-7174) https://github.com/python/cpython/commit/416c1ebd9896b394790dcb4f9f035b

[issue33353] test_asyncio: test_sock_sendfile_mix_with_regular_send() hangs on FreeBSD

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: Andrew, I'm out of capacity here, could you please take a look when you have time? -- ___ Python tracker <https://bugs.python.org/is

[issue33672] Fix Task.__repr__ crash when trying to format Cython's bogus coroutines

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: Ned, this one would be nice to have in 3.7.0. -- nosy: +ned.deily priority: normal -> release blocker ___ Python tracker <https://bugs.python.org/issu

[issue33469] RuntimeError after closing loop that used run_in_executor

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset fdccfe09f0b10776645fdb04a0783d6864c32b21 by Yury Selivanov in branch 'master': bpo-33469: RuntimeError after closing loop that used run_in_executor (GH-7171) https://github.com/python/cpython/commit/fdccfe09f0b10776645fdb04a0783d

[issue33674] asyncio: race condition in SSLProtocol

2018-05-28 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +6826 ___ Python tracker <https://bugs.python.org/issue33674> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33674] asyncio: race condition in SSLProtocol

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 7593b8a5075ff45d71be9f62980be6a9c005afa9 by Yury Selivanov (Victor Stinner) in branch '3.6': bpo-33674: asyncio: Fix SSLProtocol race (GH-7175) (GH-7188) https://github.com/python/cpython/commit/7593b8a5075ff45d71be9f62980be6

[issue33672] Fix Task.__repr__ crash when trying to format Cython's bogus coroutines

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset e151f83deab9819fb8d9dfc59f9baa4a7273226c by Yury Selivanov in branch '3.6': bpo-33672: Fix Task.__repr__ crash with Cython's bogus coroutines (GH-7180) https://github.com/python/cpython/commit/e151f83deab9819fb8d9dfc59

[issue33674] asyncio: race condition in SSLProtocol

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset f295587c45f96b62d24f9a12cef6931b0805f596 by Yury Selivanov in branch 'master': bpo-33674: Pause the transport as early as possible (#7192) https://github.com/python/cpython/commit/f295587c45f96b62d24f9a12cef693

[issue33654] asyncio: transports don't support switching between Protocol and BufferedProtocol

2018-05-28 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +6828 ___ Python tracker <https://bugs.python.org/issue33654> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33674] asyncio: race condition in SSLProtocol

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: yes, the method is idempotent. -- ___ Python tracker <https://bugs.python.org/issue33674> ___ ___ Python-bugs-list mailin

[issue21327] socket.type value changes after using settimeout()

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: This issue is resolved in 3.7: https://bugs.python.org/issue32331 -- nosy: +yselivanov resolution: -> out of date stage: -> resolved status: open -> closed superseder: -> Fix socket.type on OSes with SOCK_NONBLOCK type:

[issue33197] Confusing error message when constructing invalid inspect.Parameters

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset a9cab433bbf02f3a1de59d14dc8f583181ffe2d5 by Yury Selivanov (Dong-hee Na) in branch 'master': bpo-33197: Update a error message of invalid inspect.Parameters. (GH-6636) https://github.com/python/cpyt

[issue33353] test_asyncio: test_sock_sendfile_mix_with_regular_send() hangs on FreeBSD

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: > It seems like Yury's commit 7165754b6b5f3b7c07050d921fa1c58bba5f0ff1 made > sendfile tests of test_asyncio 6x slower on FreeBSD :-( Well, yeah, I kind of expected to see a performance regression here. Before, we were reading from a file dire

[issue32622] Implement loop.sendfile

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: Closing this issue. Open new ones to track regressions/bugs. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32610] asyncio.all_tasks() should return only non-finished tasks.

2018-05-29 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue33623] Fix possible SIGSGV when asyncio.Future is created in __del__

2018-05-29 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue33674] asyncio: race condition in SSLProtocol

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: Closing this one. Please open new issues to track regressions. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue33469] RuntimeError after closing loop that used run_in_executor

2018-05-29 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue30945] loop.create_server does not detect if the interface is IPv6 enabled

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: > asyncio is picking ipv6 because of this code: > https://github.com/python/cpython/blob/a445feb72902e4a3c5ae712f0c289309e1580d52/Lib/asyncio/base_events.py#L1334-L1340 > despite my host not actually having an ipv6 network hooked up. Which shoul

[issue30945] loop.create_server does not detect if the interface is IPv6 enabled

2018-05-29 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +6842 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue30945> ___ ___ Python-bugs-list mai

[issue33197] Confusing error message when constructing invalid inspect.Parameters

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset cb055bcc2bbfa5dcc6b0332305918a2118d9ebbc by Yury Selivanov (Miss Islington (bot)) in branch '3.7': bpo-33197: Update a error message of invalid inspect.Parameters. (GH-6636) (GH-7204) https://github.com/python/cpyt

[issue33678] selector_events.BaseSelectorEventLoop.sock_connect should preserve socket type

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: Can you write a unittest that exposes the bug? -- ___ Python tracker <https://bugs.python.org/issue33678> ___ ___ Python-bug

[issue33197] Confusing error message when constructing invalid inspect.Parameters

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 5e9e9db9d9b648d2326e2853dc07377e12498e3f by Yury Selivanov (Miss Islington (bot)) in branch '3.6': bpo-33197: Update a error message of invalid inspect.Parameters. (GH-6636) (#7205) https://github.com/python/cpyt

[issue22087] asyncio: support multiprocessing (support fork)

2018-05-29 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +6843 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue22087> ___ ___ Python-

[issue32458] test_asyncio: test_start_tls_server_1() fails randomly

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: Should we close this issue now? -- ___ Python tracker <https://bugs.python.org/issue32458> ___ ___ Python-bugs-list mailin

[issue32684] asyncio.gather(..., return_exceptions=True) swallows cancellation

2018-05-29 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +6844 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32684> ___ ___ Py

[issue32684] asyncio.gather(..., return_exceptions=True) swallows cancellation

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks for reporting this. Agree, this is a bug and makes it hard (if not impossible) to use gather. I've created a PR to address the issue. -- ___ Python tracker <https://bugs.python.org/is

[issue32684] asyncio.gather(..., return_exceptions=True) swallows cancellation

2018-05-29 Thread Yury Selivanov
Change by Yury Selivanov : -- versions: -Python 3.5 ___ Python tracker <https://bugs.python.org/issue32684> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32653] AttributeError: 'Task' object has no attribute '_callbacks'

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: Closing this one as I believe it's fixed in all versions. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.pyth

[issue32662] Implement Server.serve_forever and corresponding APIs

2018-05-29 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed status: open -> closed ___ Python tracker <https://bugs.python.org/issue32662> ___ ___ Python-bugs-list

[issue32751] wait_for(future, ...) should wait for the future (even if a timeout occurs)

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: +1 one to fix this in 3.7, Elvis is working on the patch. I don't think we should backport to 3.6 though as it's a behaviour change that people might not expect to get from a bug-fix release. -- versions: -Python 3.5,

[issue32751] wait_for(future, ...) should wait for the future (even if a timeout occurs)

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: https://bugs.python.org/issue33638 is an example of a very tricky bug caused by wait_for. -- ___ Python tracker <https://bugs.python.org/issue32

[issue33638] condition lock not re-acquired

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: This is caused by wait_for not waiting for the cancelled task. https://bugs.python.org/issue32751 tracks that bug. -- superseder: -> wait_for(future, ...) should wait for the future (even if a timeout occ

[issue32751] wait_for(future, ...) should wait for the future (even if a timeout occurs)

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: Well, we'll have another beta (beta 5) and then a release candidate. I think it's enough. I don't feel comfortable with asyncio living with this bug till 3.8. -- ___ Python tracker <https

[issue31491] Add is_closing() to asyncio.StreamWriter.

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: Done in 32391. -- resolution: -> out of date stage: -> resolved status: open -> closed superseder: -> Add StreamWriter.wait_closed() ___ Python tracker <https://bugs.python

[issue30935] document the new behavior of get_event_loop() in Python 3.6

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset e55de2d77f10d524be0b426e587fbc820f76de71 by Yury Selivanov (Mandeep Singh) in branch 'master': bpo-30935: update get_event_loop docs (GH-2731) https://github.com/python/cpython/commit/e55de2d77f10d524be0b426e587fbc

[issue32464] raise NotImplemented vs return NotImplemented

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: Seems this issue isn't a bug and can be closed. -- nosy: +yselivanov resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.pyth

[issue32104] add method throw() to asyncio.Task

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: I'm just going to close this as "won't fix". -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <ht

[issue31830] asyncio.create_subprocess_exec doesn't capture all stdout output

2018-05-29 Thread Yury Selivanov
Change by Yury Selivanov : -- nosy: +asvetlov versions: +Python 3.7, Python 3.8 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue31830> ___ ___ Pytho

[issue32181] runaway Tasks with Task.cancel() ignored.

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: I think this is caused by https://bugs.python.org/issue30773 (a bug in asynchronous generators) -- ___ Python tracker <https://bugs.python.org/issue32

[issue32751] wait_for(future, ...) should wait for the future (even if a timeout occurs)

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: > Fair enough. And I can't think of any specific way that fixing this is likely > to break anyone, just it's subtle enough that I don't necessarily trust my > intuition :-). In case we find out it doesn't work or causes proble

[issue22087] asyncio: support multiprocessing (support fork)

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 5d97b7bcc19496617bf8c448d2f149cc28c73bc7 by Yury Selivanov in branch 'master': bpo-22087: Fix Policy.get_event_loop() to detect fork (GH-7208) https://github.com/python/cpython/commit/5d97b7bcc19496617bf8c448d2f149

[issue22087] asyncio: support multiprocessing (support fork)

2018-05-29 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +6851 ___ Python tracker <https://bugs.python.org/issue22087> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33672] Fix Task.__repr__ crash when trying to format Cython's bogus coroutines

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: Yes, thanks Ned -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32684] asyncio.gather(..., return_exceptions=True) swallows cancellation

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 863b6749093a86810c4077112a857363410cc221 by Yury Selivanov in branch 'master': bpo-32684: Fix gather to propagate cancel of itself with return_exceptions (GH-7209) https://github.com/python/cpyt

[issue33638] condition lock not re-acquired

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset e2b340ab4196e1beb902327f503574b5d7369185 by Yury Selivanov (Elvis Pranskevichus) in branch 'master': bpo-32751: Wait for task cancellation in asyncio.wait_for() (GH-7216) https://github.com/python/cpyt

[issue32751] wait_for(future, ...) should wait for the future (even if a timeout occurs)

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset e2b340ab4196e1beb902327f503574b5d7369185 by Yury Selivanov (Elvis Pranskevichus) in branch 'master': bpo-32751: Wait for task cancellation in asyncio.wait_for() (GH-7216) https://github.com/python/cpyt

[issue32684] asyncio.gather(..., return_exceptions=True) swallows cancellation

2018-05-29 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +6856 ___ Python tracker <https://bugs.python.org/issue32684> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32684] asyncio.gather(..., return_exceptions=True) swallows cancellation

2018-05-29 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +6857 ___ Python tracker <https://bugs.python.org/issue32684> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22087] asyncio: support multiprocessing (support fork)

2018-05-29 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +6858 ___ Python tracker <https://bugs.python.org/issue22087> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23859] asyncio: document behaviour of wait() cancellation

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset f9aeca2085464838f04bf13f816a1f861d43541f by Yury Selivanov (Elvis Pranskevichus) in branch 'master': bpo-23859: Document that asyncio.wait() does not cancel its futures (#7217) https://github.com/python/cpyt

[issue32676] test_asyncio emits many warnings when run in debug mode

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: I'll look into this. -- ___ Python tracker <https://bugs.python.org/issue32676> ___ ___ Python-bugs-list mailing list

[issue32684] asyncio.gather(..., return_exceptions=True) swallows cancellation

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 036434273e6f6905403432c973d98ade1ae58197 by Yury Selivanov (Miss Islington (bot)) in branch '3.7': bpo-32684: Fix gather to propagate cancel of itself with return_exceptions (GH-7209) (#7222) https://github.com/python/cpyt

[issue33688] asyncio child watchers aren't fork friendly

2018-05-29 Thread Yury Selivanov
New submission from Yury Selivanov : _UnixDefaultEventLoopPolicy doesn't detect fork and tries to re-use the inherited child watcher. [1] is my idea how to fix this. Andrew, AFAIK subprocesses was something that you worked on at some point. Do you have time to look into this? Need test

[issue22087] asyncio: support multiprocessing (support fork)

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: another related issue: https://bugs.python.org/issue33688 -- ___ Python tracker <https://bugs.python.org/issue22087> ___ ___

[issue30935] document the new behavior of get_event_loop() in Python 3.6

2018-05-29 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32684] asyncio.gather(..., return_exceptions=True) swallows cancellation

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 3b263e65a80cfcb1fc751834372533773ec024a4 by Yury Selivanov in branch '3.6': bpo-32684: Fix gather to propagate cancel of itself with return_exceptions (GH-7224) https://github.com/python/cpython/commit/3b263e65a80cfcb1fc751834372533

[issue32684] asyncio.gather(..., return_exceptions=True) swallows cancellation

2018-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 6f75bae74866b6acf638e3aa610d830d55b7e314 by Yury Selivanov in branch 'master': bpo-32684: Fix nits in tests (GH-7225) https://github.com/python/cpython/commit/6f75bae74866b6acf638e3aa610d83

<    7   8   9   10   11   12   13   14   15   16   >