[issue25501] Use async/await through asyncio docs

2015-10-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: We have dropped 3.3 in aiohttp BTW. Proper handling of resource leaks is too annoying without PEP 442 which don't crash with core dump starting from Python 3.4.1 -- ___ Python tracker <http://bugs.py

[issue25074] Bind logger and waninigs modules for asyncio __del__ methods

2015-11-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Yes, the approach use hackery shadows for binding global variables on shutdown stage. The same I've found in subprocess module: see https://github.com/python/cpython/blob/master/Lib/subprocess.py#L1544 The problem is: I want to inform users about unc

[issue25593] _sock_connect_cb can be called twice resulting in InvalidStateError

2015-11-19 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue25593> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25593] _sock_connect_cb can be called twice resulting in InvalidStateError

2015-11-19 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- versions: +Python 3.6 ___ Python tracker <http://bugs.python.org/issue25593> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25756] asyncio WriteTransport documentation typo

2015-12-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think the doc is correct. `pause_writing` is called when write buffer becomes non empty, empty buffer is precondition for `resume_writing` call. -- nosy: +asvetlov resolution: -> not a bug stage: -> resolved status: open -> closed

[issue25612] nested try..excepts don't work correctly for generators

2016-03-02 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue25612> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21354] PyCFunction_New no longer exposed by python DLL breaking bdist_wininst installers

2015-04-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Will do up to weekend. — Sent from Mailbox On Mon, Apr 13, 2015 at 4:58 PM, Zachary Ware wrote: > Zachary Ware added the comment: > Steve, Andrew, does either of you want to take care of this or shall I give > it a shot? I'm figuring on u

[issue21354] PyCFunction_New no longer exposed by python DLL breaking bdist_wininst installers

2015-04-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Sorry for long delay. -- ___ Python tracker <http://bugs.python.org/issue21354> ___ ___ Python-bugs-list mailin

[issue21354] PyCFunction_New no longer exposed by python DLL breaking bdist_wininst installers

2015-04-27 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue21354> ___ ___ Python-bugs-list

[issue23749] asyncio missing wrap_socket

2015-04-28 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov stage: -> needs patch versions: +Python 3.5 ___ Python tracker <http://bugs.python.org/issue23749> ___ ___ Py

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: On Sun, May 10, 2015 at 7:21 PM, Yury Selivanov wrote: > > Yury Selivanov added the comment: > >> Review sent - very nice work on this Yury. > > Thanks a lot, Nick! > > Highlights: > >> * I concur with Stefan that we should h

[issue24278] Docs on Parsing arguments should say something about mem mgmt for formatters returning C strings

2015-05-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Would you propose a patch for docs? -- nosy: +asvetlov stage: -> needs patch ___ Python tracker <http://bugs.python.org/issu

[issue28212] Closing server in asyncio is not efficient

2016-09-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: It's a known annoying issue. Honestly I don't know how to fix it properly. `transport.close()` is affected also because `protocol.connection_lost()` is called on next loop iteration only. Adding a small `asyncio.sleep()` between finishing all wor

[issue28213] asyncio SSLProtocol _app_transport is private

2016-09-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: -1, agree with Yury. As an option it's possible to wrap `sslproto.SSLProtocol` by custom derived class which overrides `connection_made()` for storing a transport somewhere. The solution looks like sub-optimal but it's backward-compatible. The other

[issue26617] Assertion failed in gc with __del__ and weakref

2016-10-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: I was unable to reproduce a crash but the patch looks straightforward and obvious. After applying test suite for aiohttp still works without problems at least. -- nosy: +asvetlov ___ Python tracker <h

[issue28544] Implement asyncio.Task in C

2016-10-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: Very impressive. I've left a couple comments in rietveld though. -- ___ Python tracker <http://bugs.python.org/is

[issue28212] Closing server in asyncio is not efficient

2016-10-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: >From my perspective the problem is: many asyncio calls schedules a delayed >activity internally. E.g. `task.cancel()` doesn't cancels immediately but requires at least one extra loop iteration. The same is true for `transport.close()` -- it do

[issue28600] asyncio: Optimize loop.call_soon

2016-11-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: The patch looks good. IIRC haypo added the check because people called `.call_later()` with coroutine instead of callback very often. But checking in debug mode looks very reasonable to me if it is so expensive

[issue32810] Expose ags_gen and agt_gen in asynchronous generators

2018-02-10 Thread Andrew Svetlov via Python-bugs-list
Andrew Svetlov added the comment: Make sense at first glaze. -- ___ Python tracker <https://bugs.python.org/issue32810> ___ ___ Python-bugs-list mailin

<    21   22   23   24   25   26