[issue29600] Returning an exception object from a coroutine triggers implicit exception chaining?!?

2017-03-12 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker <http://bugs.python

[issue29742] asyncio get_extra_info() throws exception

2017-03-12 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue29742> ___ ___

[issue29517] "Can't pickle local object" when uses functools.partial with method and args...

2017-03-13 Thread Yury Selivanov
Yury Selivanov added the comment: > AttributeError: Can't pickle local object 'WeakSet.__init__.._remove' Well, I don't think we can do something about it. Just re-pack your arguments from WeakSet to a regular set. -- __

[issue29600] Returning an exception object from a coroutine triggers implicit exception chaining?!?

2017-03-14 Thread Yury Selivanov
Yury Selivanov added the comment: > I am wondering how much of other uses of PyErr_SetObject() are affected by > similar bugs? Only when we use an exception to carry a return value. AFAIK StopIteration is the only such case. -- ___ Python t

[issue29828] Allow registering after-fork initializers in multiprocessing

2017-03-16 Thread Yury Selivanov
Yury Selivanov added the comment: Maybe a better way would be to proceed with http://bugs.python.org/issue16500? -- nosy: +yselivanov ___ Python tracker <http://bugs.python.org/issue29

[issue29828] Allow registering after-fork initializers in multiprocessing

2017-03-16 Thread Yury Selivanov
Yury Selivanov added the comment: BTW, why can't you use `pthread_atfork` in numpy? -- ___ Python tracker <http://bugs.python.org/issue29828> ___ ___ Pytho

[issue29742] asyncio get_extra_info() throws exception

2017-03-24 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset db522dc86294a99f46a63cd5b54c7c4ab8017c96 by Yury Selivanov in branch '3.5': bpo-29742: asyncio get_extra_info() throws exception (#525) (#646) https://github.com/python/cpython/commit/db522dc86294a99f46a63cd5b54c7c

[issue29742] asyncio get_extra_info() throws exception

2017-03-24 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 2b27e2e6a35c3d3e369612b984017fe0d1bfcf0c by Yury Selivanov (Nikolay Kim) in branch 'master': bpo-29742: asyncio get_extra_info() throws exception (#525) https://github.com/python/cpython/commit/2b27e2e6a35c3d3e369612b984017f

[issue29742] asyncio get_extra_info() throws exception

2017-03-24 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 99f8d33a94c8951fd6b2d5f079d20be698150993 by Yury Selivanov in branch '3.6': bpo-29742: asyncio get_extra_info() throws exception (#525) (#645) https://github.com/python/cpython/commit/99f8d33a94c8951fd6b2d5f079d20b

[issue29704] Can't read data from Transport after asyncio.SubprocessStreamProtocol closes

2017-03-24 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset f7f024a721d53978d03129e8eb5111d4f74534a9 by Yury Selivanov (Seth M. Larson) in branch '3.5': bpo-29704: Fix asyncio.SubprocessStreamProtocol closing (#405) https://github.com/python/cpython/commit/f7f024a721d53978d03129e8eb5111

[issue29704] Can't read data from Transport after asyncio.SubprocessStreamProtocol closes

2017-03-24 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 604faba1db724951ee440337099d111e3ecade49 by Yury Selivanov (Seth M. Larson) in branch '3.6': bpo-29704: Fix asyncio.SubprocessStreamProtocol closing (#405) https://github.com/python/cpython/commit/604faba1db724951ee440337099d11

[issue28963] Use-after-free in _asyncio_Future_remove_done_callback() of _asynciomodule.c

2017-03-24 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 84af903f3bc6780cb4e73ff05ad2e242d3966417 by Yury Selivanov in branch 'master': bpo-28963: Fix out of bound iteration in asyncio.Future.remove_done_callback/C (#408) https://github.com/python/cpyt

[issue29704] Can't read data from Transport after asyncio.SubprocessStreamProtocol closes

2017-03-24 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 481cb70a724687d12553d38a749c16034af68a1e by Yury Selivanov (Seth M. Larson) in branch 'master': bpo-29704: Fix asyncio.SubprocessStreamProtocol closing (#405) https://github.com/python/cpython/commit/481cb70a724687d12553d38a749c16

[issue29703] Fix asyncio to support instantiation of new event loops in subprocesses

2017-03-24 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 8b73b6198bc0753c5ce6e8f91eb7bddc2bd42a73 by Yury Selivanov in branch '3.5': bpo-29703: asyncio: Fix creating new event loops in child processes. (#411) https://github.com/python/cpython/commit/8b73b6198bc0753c5ce6e8f91eb7bd

[issue29703] Fix asyncio to support instantiation of new event loops in subprocesses

2017-03-24 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 01e5230ef0b28658cf7311be199363eda98808bd by Yury Selivanov in branch '3.6': bpo-29703: asyncio: Fix creating new event loops in child processes. (#404) (#410) https://github.com/python/cpython/commit/01e5230ef0b28658cf7311be199363

[issue29271] Task.current_task(None) returns unexpected result

2017-03-24 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 8d26aa930c0123933a1ceb12fceba4f5aef4e95e by Yury Selivanov in branch 'master': bpo-29271: Fix Task.current_task and Task.all_tasks to accept None. (#406) https://github.com/python/cpython/commit/8d26aa930c0123933a1ceb12fceba4

[issue28893] Make sure exceptions raised in __aiter__ are properly chained in ceval

2017-03-24 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 398ff91ac0b8f4d930cd5d9e3e6a4bf247f810ef by Yury Selivanov in branch 'master': bpo-28893: Set __cause__ for errors in async iteration protocol (#407) https://github.com/python/cpython/commit/398ff91ac0b8f4d930cd5d9e3e6a4b

[issue29703] Fix asyncio to support instantiation of new event loops in subprocesses

2017-03-24 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset ba7e1f9a4e06c0b4ad594fd64edcaf7292515820 by Yury Selivanov in branch 'master': bpo-29703: asyncio: Fix creating new event loops in child processes. (#404) https://github.com/python/cpython/commit/ba7e1f9a4e06c0b4ad594fd64edcaf

[issue29909] types.coroutine monkey patches original function

2017-03-26 Thread Yury Selivanov
Yury Selivanov added the comment: Yeah, we can fix this. However, I don't want to push the fix to 3.6, too much code uses this function now. So it's going to be 3.7 only. -- assignee: -> yselivanov versions: +Python 3.7 -Python 3.6 _

[issue29922] error message when __aexit__ is not async

2017-03-27 Thread Yury Selivanov
Yury Selivanov added the comment: > This is a specific example of the general problem reported in issue 25538. It's a bit different code path/problem. But I agree, we should work on making both `with` and `async with` a bit more usable. > Would it be possible to change this so i

[issue29922] error message when __aexit__ is not async

2017-03-27 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: duplicate -> stage: resolved -> needs patch status: closed -> open ___ Python tracker <http://bugs.python.or

[issue29922] error message when __aexit__ is not async

2017-03-27 Thread Yury Selivanov
Yury Selivanov added the comment: > Would it maybe make sense to implement this as adding an argument to > GET_AWAITABLE to indicate whether it was called from await, __anext__, > __aenter__ or __aexit__? Yes, but it will make it a tad slower (which will also affect await performanc

[issue29970] Severe open file leakage running asyncio SSL server

2017-04-04 Thread Yury Selivanov
Yury Selivanov added the comment: I'm assigning this to myself to make sure I don't forget about this. If someone wants to tackle this please feel free to reassign. -- assignee: -> yselivanov versions: +Python 3.7 ___ Python t

[issue30048] If a task is canceled at the right moment, the cancellation is ignored

2017-04-11 Thread Yury Selivanov
Yury Selivanov added the comment: Interesting. It doesn't work for both C and Python versions of the Task. I'll take a look in detail when I return from vacation. -- assignee: -> yselivanov nosy: +inada.naoki ___ Python t

[issue30048] If a task is canceled at the right moment, the cancellation is ignored

2017-04-12 Thread Yury Selivanov
Yury Selivanov added the comment: In Evgeny's example the 'task' is 'coro1' (not 'coro2'). It has plenty of yield points after being cancelled. -- ___ Python tracker

[issue30098] Verbose TypeError for asyncio.ensure_future

2017-04-18 Thread Yury Selivanov
Yury Selivanov added the comment: `asyncio.run_coroutine_threadsafe` was't designed to be compatible with `asyncio.ensure_future`. It should be used to run a coroutine in an event loop from another thread. You shouldn't need to await on the future

[issue30098] Verbose TypeError for asyncio.ensure_future

2017-04-18 Thread Yury Selivanov
Yury Selivanov added the comment: > A verbose error like this one would have made this behavior more clear to me. Well, it already raises a TypeError with a clear message -- this is how we tell the user that the argument type is not supported in Python. I don't think we need to sp

[issue30098] Verbose TypeError for asyncio.ensure_future

2017-04-18 Thread Yury Selivanov
Yury Selivanov added the comment: > This is more to my point: I found the TypeError message not clear at all. > From my prospective, I was using a future object returned from an asyncio > function to call another asyncio function, yet that function was telling me > it could only

[issue30098] Verbose TypeError for asyncio.ensure_future

2017-04-18 Thread Yury Selivanov
Yury Selivanov added the comment: > - I wonder how much self-reporting will be done here. Yeah, I don't think we see enough reporting on bugs.python.org. I hope people will become more vocal :) I try to monitor what people say about asyncio on SO, Twitter and /r/python to get

[issue30145] Create a How to or Tutorial documentation for asyncio

2017-04-28 Thread Yury Selivanov
Yury Selivanov added the comment: Yes, this is a very longstanding open issue. I've already discussed this with Guido many times, and even found someone to help us. Will try to kickstart the project this weekend. -- ___ Python tracker

[issue30145] Create a How to or Tutorial documentation for asyncio

2017-04-30 Thread Yury Selivanov
Yury Selivanov added the comment: > The problem is that Python stdlib is quite limited: no HTTP, no SQL client, etc. An external tutorial can use 3rd party modules like aiohttp. Even without aiohttp we can show how to use asyncio correctly. I agree with Mariatta that we should have a tutor

[issue29679] Add @contextlib.asynccontextmanager

2017-04-30 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 2e624690bd74071358566300b7ef0bc45f444a30 by Yury Selivanov (Jelle Zijlstra) in branch 'master': bpo-29679: Implement @contextlib.asynccontextmanager (#360) https://github.com/python/cpython/commit/2e624690bd74071358566300b7ef0b

[issue20401] inspect.signature removes initial starred method params (bug)

2017-05-01 Thread Yury Selivanov
Yury Selivanov added the comment: > Is there any reason that the second case Terry provide still will failed with > ValueError? > class C: >def meth2(**kwds): pass > ip.signature(C().meth2) Yes, the reason is that `C().meth2` is an invalid method that can't be cal

[issue19903] Idle: Use inspect.signature for calltips

2017-05-04 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: -yselivanov ___ Python tracker <http://bugs.python.org/issue19903> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29302] add contextlib.AsyncExitStack

2017-05-05 Thread Yury Selivanov
Yury Selivanov added the comment: Overall, the approach looks fine. Alexander, do you want to make a PR to start working on adding this to 3.7? -- versions: -Python 3.6 ___ Python tracker <http://bugs.python.org/issue29

[issue30149] inspect.signature() doesn't support partialmethod without explicit self parameter

2017-05-17 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 378d70642aa1c8de2a53ecb811927faf0388db2d by Yury Selivanov (Dong-hee Na) in branch 'master': bpo-30149: Fix partialmethod without explicit self parameter (#1308) https://github.com/python/cpython/commit/378d70642aa1c8de2a53ecb811927f

[issue30039] Resuming a 'yield from' stack is broken if a signal arrives in the middle

2017-05-17 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset ab4413a7e9bda95b6fcd517073e2a51dafaa1624 by Yury Selivanov (Nathaniel J. Smith) in branch 'master': bpo-30039: Don't run signal handlers while resuming a yield from stack (#1081) https://github.com/python

[issue30039] Resuming a 'yield from' stack is broken if a signal arrives in the middle

2017-05-17 Thread Yury Selivanov
Yury Selivanov added the comment: Yes, I'll do the backport. -- ___ Python tracker <http://bugs.python.org/issue30039> ___ ___ Python-bugs-list mailing list

[issue30039] Resuming a 'yield from' stack is broken if a signal arrives in the middle

2017-05-17 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +1735 ___ Python tracker <http://bugs.python.org/issue30039> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25532] infinite loop when running inspect.unwrap over unittest.mock.call

2017-05-22 Thread Yury Selivanov
Yury Selivanov added the comment: > Since the limit is arbitrary anyway, sys.getrecursionlimit() seems like a > reasonable choice. The recursion limit can be changed for whatever purposes and I'm not sure that it's a good idea that it will affect unwrap behaviour in such cas

[issue25532] infinite loop when running inspect.unwrap over unittest.mock.call

2017-05-23 Thread Yury Selivanov
Yury Selivanov added the comment: > I'd be fine with replacing the sys.getrecursionlimit() call with a module > level constant like "_UNWRAP_LIMIT = 500". TBH I'm OK either way. `sys.getrecursionlimit()` is 1000 (at least on my machine), which might be a bit too

[issue12857] Expose called function on frame object

2017-05-24 Thread Yury Selivanov
Yury Selivanov added the comment: > I don't see a better way to handle my (admittedly a bit weird) control-C case > within the interpreter I'm not sure I understand how `f_func` would help to better handle Control-C in Trio. Nathaniel, could you please e

[issue12857] Expose called function on frame object

2017-05-24 Thread Yury Selivanov
Yury Selivanov added the comment: > Sure. The issue is that I need to mark certain frames as "protected" from > KeyboardInterrupt, in a way that my signal handler can see when walking the > frame stack, so it can decide whether to raise a KeyboardInterrupt > immediat

[issue30145] Create a How to or Tutorial documentation for asyncio

2017-05-26 Thread Yury Selivanov
Yury Selivanov added the comment: A while ago, Eric Appelt stepped forward to help with the asyncio documentation. Here's my response to his email in which we discuss the direction for the new docs. On May 24, 2017 at 1:04:56 PM, Eric Appelt (eric.app...@gmail.com) wrote: > Hi Yury

[issue30300] asyncio.Controller

2017-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: I'm not sure we want this to be in asyncio: it's a very high-level object somewhere in between the low-level and the application level. Some things off the top of my head that users will want from this API: - detailed logging or hooks to implement

[issue30508] "Task exception was never retrieved" reported for a canceled task

2017-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: Yes, this is a known problem to me, thank you for creating the issue. Will work on a fix soon. -- ___ Python tracker <http://bugs.python.org/issue30

[issue30300] asyncio.Controller

2017-05-30 Thread Yury Selivanov
Yury Selivanov added the comment: > STINNER Victor added the comment: > > Barry: would you be ok to start by adding Controller to asyncio.test_utils, > and wait later to expose it in the public API? Sorry, but we are going to deprecate and remove test_utils soon. It's a bunch

[issue30300] asyncio.Controller

2017-05-30 Thread Yury Selivanov
Yury Selivanov added the comment: > There's also value in doing one simple thing that adds convenience for users. > I don't personally have any interest in building something as elaborate as the > above, but I've used the simple idea here several times in different proje

[issue30300] asyncio.Controller

2017-05-30 Thread Yury Selivanov
Yury Selivanov added the comment: > I appreciate that you want to be careful not to saddle asyncio with too much > baggage, or that you don't feel Controller is significant enough to generalize > and put in the package. Perhaps a middle ground would be to label parts of >

[issue30145] Create a How to or Tutorial documentation for asyncio

2017-05-31 Thread Yury Selivanov
Yury Selivanov added the comment: I've created a repo for discussing and making next version of asyncio docs: https://github.com/asyncio-docs/cpython-aiodocs. Feel free to join! -- ___ Python tracker <http://bugs.python.org/is

[issue30145] Create a How to or Tutorial documentation for asyncio

2017-05-31 Thread Yury Selivanov
Yury Selivanov added the comment: I propose to start using the issues [1] as there are so many topics we'll have to discuss. Feel free to create new issue for whatever idea you have! [1] https://github.com/asyncio-docs/cpython-aiodocs/i

[issue30145] Create a How to or Tutorial documentation for asyncio

2017-05-31 Thread Yury Selivanov
Yury Selivanov added the comment: > I can experiment with memcached as well but I think this proposal is a good > idea and would work well with Redis. I like it! Let's use Redis as an example. Please open an issue at asyncio-docs to discuss

[issue27585] asyncio.Lock deadlock after cancellation

2017-06-09 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +2101 ___ Python tracker <http://bugs.python.org/issue27585> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27585] asyncio.Lock deadlock after cancellation

2017-06-09 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 7be651c7aad8e4d46012205811b58ef127b08e0e by Yury Selivanov in branch 'master': bpo-27585: Add a NEWS entry for #1031 (#2036) https://github.com/python/cpython/commit/7be651c7aad8e4d46012205811b58e

[issue27585] asyncio.Lock deadlock after cancellation

2017-06-09 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +2102 ___ Python tracker <http://bugs.python.org/issue27585> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27585] asyncio.Lock deadlock after cancellation

2017-06-09 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +2103 ___ Python tracker <http://bugs.python.org/issue27585> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30039] Resuming a 'yield from' stack is broken if a signal arrives in the middle

2017-06-09 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset e89f95bfd0881a9b80c3b1430d154a77bdf5a824 by Yury Selivanov in branch '3.6': [3.6] bpo-30039: Don't run signal handlers while resuming a yield from stack (GH-1081) (#1640) https://github.com/python

[issue30039] Resuming a 'yield from' stack is broken if a signal arrives in the middle

2017-06-09 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker <http://bugs.python

[issue27585] asyncio.Lock deadlock after cancellation

2017-06-09 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.5, Python 3.7 ___ Python tracker <http://bugs.python.or

[issue30039] Resuming a 'yield from' stack is broken if a signal arrives in the middle

2017-06-09 Thread Yury Selivanov
Yury Selivanov added the comment: I don't think we need to. Isn't 3.5 is in security/important bug fix mode? I don't view this change as an important one (it's just a nice thing to have). -- ___ Python tracker <http://bug

[issue29743] Closing transport during handshake process leaks open socket

2017-06-09 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +2106 ___ Python tracker <http://bugs.python.org/issue29743> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29743] Closing transport during handshake process leaks open socket

2017-06-09 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +2107 ___ Python tracker <http://bugs.python.org/issue29743> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-09 Thread Yury Selivanov
Yury Selivanov added the comment: > There are two PRs for this issue. Is one depending on the other? No, they all address slightly different bugs. All need to be merged though. > PR 409 has merge conflict that needs to be resolved. Yes, it seems that it's based on 3.6 branch.

[issue29870] ssl socket leak

2017-06-09 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +2109 ___ Python tracker <http://bugs.python.org/issue29870> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30038] Race condition in how trip_signal writes to wakeup fd

2017-06-09 Thread Yury Selivanov
Yury Selivanov added the comment: > It sounds like a bug to me, and thus suitable to backport, but it certainly > would be worth getting other opinions since this is a tricky and critical > area. I think it's safe to mer

[issue29743] Closing transport during handshake process leaks open socket

2017-06-09 Thread Yury Selivanov
Yury Selivanov added the comment: Merged. Thank you Nikolay! -- nosy: +yselivanov resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue29870] ssl socket leak

2017-06-09 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +2110 ___ Python tracker <http://bugs.python.org/issue29870> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29870] ssl socket leak

2017-06-09 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +2111 ___ Python tracker <http://bugs.python.org/issue29870> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30508] "Task exception was never retrieved" reported for a canceled task

2017-06-09 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +2112 ___ Python tracker <http://bugs.python.org/issue30508> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29905] TypeErrors not formatting values correctly

2017-06-09 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +2121 ___ Python tracker <http://bugs.python.org/issue29905> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29905] TypeErrors not formatting values correctly

2017-06-09 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +2122 ___ Python tracker <http://bugs.python.org/issue29905> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-09 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset a608d2d5a7f1aabe9bcbfc220135c5e126189390 by Yury Selivanov (Nikolay Kim) in branch 'master': bpo-29406: asyncio SSL contexts leak sockets after calling close with certain servers (#409) https://github.com/python/cpyt

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-09 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +2124 ___ Python tracker <http://bugs.python.org/issue29406> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-09 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +2125 ___ Python tracker <http://bugs.python.org/issue29406> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-10 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 6e14fd2a14cef6ea0709ad234ab41198c2195591 by Yury Selivanov in branch '3.6': [3.6] bpo-29406: asyncio SSL contexts leak sockets after calling close with certain servers (GH-409) (#2062) https://github.com/python/cpyt

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-10 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 1395c58ef7b98f087d1d5d50962fe7a8c032f34d by Yury Selivanov in branch '3.5': [3.5] bpo-29406: asyncio SSL contexts leak sockets after calling close with certain servers (GH-409) (#2063) https://github.com/python/cpyt

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-10 Thread Yury Selivanov
Yury Selivanov added the comment: Nikolay, can you please take a look? -- ___ Python tracker <http://bugs.python.org/issue29406> ___ ___ Python-bugs-list mailin

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-11 Thread Yury Selivanov
Yury Selivanov added the comment: > yes, i am on it Nick, have you been able to find what the problem is? If not, we'll need to pull this change out of 3.6.2. -- ___ Python tracker <http://bugs.python.org

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-11 Thread Yury Selivanov
Yury Selivanov added the comment: > > yes, i am on it > Nick, have you been able to find what the problem is? If not, we'll need to > pull this change out of 3.6.2. It's interesting to see how `_process_write_backlog` gets called after `_finalize`. One option wo

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-11 Thread Yury Selivanov
Yury Selivanov added the comment: > It's interesting to see how `_process_write_backlog` gets called after > `_finalize`. One option would be to simply guard `transport.write` with `if > transport is not None`, but I'm afraid that we'll only mask the bug then. OTO

[issue30508] "Task exception was never retrieved" reported for a canceled task

2017-06-11 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +2162 ___ Python tracker <http://bugs.python.org/issue30508> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30508] "Task exception was never retrieved" reported for a canceled task

2017-06-11 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +2163 ___ Python tracker <http://bugs.python.org/issue30508> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30508] "Task exception was never retrieved" reported for a canceled task

2017-06-11 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 7ce1c6fb579a01bb184224a10019039fde9c8eaf by Yury Selivanov in branch 'master': bpo-30508: Don't log exceptions if Task/Future "cancel()" method called (#2050) https://github.com/python/cpython/commit/7ce1c6fb579a01b

[issue30508] "Task exception was never retrieved" reported for a canceled task

2017-06-11 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 176f2ebdad93f20876c08efabd364a0e6c86de14 by Yury Selivanov in branch '3.6': bpo-30508: Don't log exceptions if Task/Future "cancel()" method was called. (#2109) https://github.com/python/cpython/commit/176f2ebdad93f20

[issue30508] "Task exception was never retrieved" reported for a canceled task

2017-06-11 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset d24c8287e226ac9983caf6bb826a7b53142ee31f by Yury Selivanov in branch '3.5': bpo-30508: Don't log exceptions if Task/Future "cancel()" method was called. (#2110) https://github.com/python/cpython/commit/d24c8287e226ac9

[issue30508] "Task exception was never retrieved" reported for a canceled task

2017-06-11 Thread Yury Selivanov
Yury Selivanov added the comment: Fixed. Ned, this will be included in 3.6.2, right? -- nosy: +ned.deily resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.7 ___ Python tracker <http://bugs.python.or

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-11 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +2164 ___ Python tracker <http://bugs.python.org/issue29406> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-11 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +2165 ___ Python tracker <http://bugs.python.org/issue29406> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-11 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +2166 ___ Python tracker <http://bugs.python.org/issue29406> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-11 Thread Yury Selivanov
Yury Selivanov added the comment: Alright, let's play it safe. I'm going to be reverting the change from all branches. Nick, if you are able to figure this out please create a new PR. -- ___ Python tracker <http://bugs.python.o

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-11 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 09663de203396b28483a570bb268c130b59639cf by Yury Selivanov in branch 'master': Revert "bpo-29406: asyncio SSL contexts leak sockets after calling close with certain servers (#409)" (#2111) https://github.com/p

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-11 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 4e9dfe214dff000c5b5ad0d8bd8a393feed1d3cf by Yury Selivanov in branch '3.5': Revert "[3.5] bpo-29406: asyncio SSL contexts leak sockets after calling close with certain servers (GH-409) (#2063)" (#2113) https://github.com/p

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-11 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 83d30bd667924549bacf1428ac3e475cdf9792ae by Yury Selivanov in branch '3.6': Revert "[3.6] bpo-29406: asyncio SSL contexts leak sockets after calling close with certain servers (GH-409) (#2062)" (#2112) https://github.com/p

[issue29679] Add @contextlib.asynccontextmanager

2017-06-12 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed stage: -> resolved status: open -> closed type: -> enhancement ___ Python tracker <http://bugs.python

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-12 Thread Yury Selivanov
Yury Selivanov added the comment: See also issue 29970. -- ___ Python tracker <http://bugs.python.org/issue29406> ___ ___ Python-bugs-list mailing list Unsub

[issue35975] Put back the ability to parse files where async/await aren't keywords

2019-02-27 Thread Yury Selivanov
Yury Selivanov added the comment: Well, it's not just rolling back async/await from being keywords. Since 3.7 it's possible to create async generator expressions in non-async functions. This wasn't possible to do with old hacks on the lexer. So if you want to revert the

[issue35975] Put back the ability to parse files where async/await aren't keywords

2019-02-27 Thread Yury Selivanov
Yury Selivanov added the comment: Actually, I think we could revert to old lexer hacks in 3.8 if we modify them to treat 'async for' tocken sequence as one meta-tocken. -- ___ Python tracker <https://bugs.python.o

[issue35975] Put back the ability to parse files where async/await aren't keywords

2019-02-27 Thread Yury Selivanov
Yury Selivanov added the comment: > But why would we? I already have a working solution. I've heard some complaints that it's hard to migrate to Python 3.7 because async and await are keywords (although I think by now all popular libraries have migrated already), so in

[issue35975] Put back the ability to parse files where async/await aren't keywords

2019-02-27 Thread Yury Selivanov
Yury Selivanov added the comment: > And the same tokenizer trick that detects 'async def' could detect 'async > for' easily. Exactly. I just never thought that we could support async generator expressions with the kind of hacks in tokenizer we had in 3.5-3.6.

[issue33346] Syntax error with async generator inside dictionary comprehension

2019-03-06 Thread Yury Selivanov
Yury Selivanov added the comment: Yes, I have exactly the same thoughts as Nathaniel about this. The bug should be fixed, and the algorithm should be as follows (quoting Nathaniel): > So, I would expect the rule to be, precisely: if an async list/dict/set > comprehension occurs

<    1   2   3   4   5   6   7   8   9   10   >