[issue32166] Drop python 3.4 code from asyncio.coroutines

2017-11-29 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: -Python 3.6 ___ Python tracker <https://bugs.python.org/issue32166> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32166] Drop python 3.4 code from asyncio.coroutines

2017-11-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Ok, will do everything in single PR -- ___ Python tracker <https://bugs.python.org/issue32166> ___ ___ Python-bugs-list mailin

[issue32169] Drop python 3.4-3.5 code from asyncio.unix_events

2017-11-29 Thread Andrew Svetlov
New submission from Andrew Svetlov : The work will be done in https://bugs.python.org/issue32166 -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Drop python 3.4 code from asynci

[issue32166] Drop python 3.4 code from asyncio.coroutines and asyncio.unix_events

2017-11-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Ok, will do everything in single PR -- title: Drop python 3.4 code from asyncio.coroutines -> Drop python 3.4 code from asyncio.coroutines and asyncio.unix_events ___ Python tracker <https://bugs.pyth

[issue32166] Drop python 3.4 code from asyncio.coroutines and asyncio.unix_events

2017-11-29 Thread Andrew Svetlov
Change by Andrew Svetlov : -- Removed message: https://bugs.python.org/msg307226 ___ Python tracker <https://bugs.python.org/issue32166> ___ ___ Python-bugs-list m

[issue32166] Drop python 3.4 code from asyncio.coroutines and asyncio.unix_events

2017-11-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed unix_events.py but see no legacy code in futures.py and sslproto.py. -- ___ Python tracker <https://bugs.python.org/issue32

[issue32166] Drop python 3.4 code from asyncio.coroutines and asyncio.unix_events

2017-11-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset cc83920ad267c992bc421987829da04d88ae816b by Andrew Svetlov in branch 'master': bpo-32166: Drop Python 3.4 code from asyncio (#4612) https://github.com/python/cpython/commit/cc83920ad267c992bc421987829da0

[issue32166] Drop python 3.4 code from asyncio.coroutines and asyncio.unix_events

2017-11-30 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32166] Drop python 3.4 code from asyncio.coroutines and asyncio.unix_events

2017-11-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: You are welcome! Thanks for review -- ___ Python tracker <https://bugs.python.org/issue32166> ___ ___ Python-bugs-list mailin

[issue32193] Convert asyncio to async/await

2017-12-01 Thread Andrew Svetlov
New submission from Andrew Svetlov : As discussed several times before we need to convert `@coroutine` / `yield from` to async/await. All existing functionality should keep working (like yielding from new style coroutine and `with (yield from lock)`. We could deprecate the later though. The

[issue32193] Convert asyncio to async/await

2017-12-01 Thread Andrew Svetlov
Change by Andrew Svetlov : -- nosy: +gvanrossum, vstinner ___ Python tracker <https://bugs.python.org/issue32193> ___ ___ Python-bugs-list mailing list Unsub

[issue32193] Convert asyncio to async/await

2017-12-01 Thread Andrew Svetlov
Change by Andrew Svetlov : -- type: -> enhancement ___ Python tracker <https://bugs.python.org/issue32193> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue32193] Convert asyncio to async/await

2017-12-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: Yuri please do -- ___ Python tracker <https://bugs.python.org/issue32193> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32208] Improve semaphore documentation

2017-12-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset a0374dd34aa25f0895195d388b5ceff43b121b00 by Andrew Svetlov (Garrett Berg) in branch 'master': bpo-32208: update threading.Semaphore docs and add unit test (#4709) https://github.com/python/cpython/commit/a0374dd34aa25f0895195d388b5cef

[issue32208] Improve semaphore documentation

2017-12-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset a04ca12e12b522850e7e9244c250754d3cd36f0a by Andrew Svetlov (Miss Islington (bot)) in branch '3.6': bpo-32208: update threading.Semaphore docs and add unit test (GH-4709) (#4750) https://github.com/python/cpyt

[issue32193] Convert asyncio to async/await

2017-12-07 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +4656 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32193> ___ ___ Py

[issue32249] Document handler.cancelled()

2017-12-07 Thread Andrew Svetlov
New submission from Andrew Svetlov : Method was added by https://bugs.python.org/issue31943 -- components: asyncio messages: 307825 nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Document handler.cancelled() versions: Python 3.7

[issue32250] Add loop.current_task() and loop.all_tasks() methods

2017-12-07 Thread Andrew Svetlov
New submission from Andrew Svetlov : Existing `Task.current_task()` and `Task.all_tasks()` class methods are not overridable by custom event loop implementation. The proposal is adding new optional loop methods and using them by existing task methods. -- components: asyncio messages

[issue32253] Deprecate old-style locking in asyncio/locks.py

2017-12-08 Thread Andrew Svetlov
New submission from Andrew Svetlov : Now constructions like await lock # "yield from lock" can be used as well try: ... finally: lock.release() and with (yield from lock): ... are supported. Let's deprecate them in favor of async with lock: ... --

[issue32253] Deprecate old-style locking in asyncio/locks.py

2017-12-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: +Library (Lib) ___ Python tracker <https://bugs.python.org/issue32253> ___ ___ Python-bugs-list mailing list Unsub

[issue32251] Add asyncio.BufferedProtocol

2017-12-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: Numbers are great! Couple questions. 1. What happens if size of read data is greater than pre-allocated buffer? 2. Is flow control logic changed or not? If I understand correctly pause_reading() / resume_reading() continue to work as earlier

[issue32249] Document handler.cancelled()

2017-12-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in master, sorry -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32251] Add asyncio.BufferedProtocol

2017-12-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: New protocol may speed up not only `reader.readexactly()`. Every `reader.feed_data()` appends a new chunk to existing buffer. We can try to read into unused tail of the buffer instead. -- ___ Python tracker <ht

[issue32193] Convert asyncio to async/await

2017-12-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 5f841b553814969220b096a2b4f959b7f6fcbaf6 by Andrew Svetlov in branch 'master': bpo-32193: Convert asyncio to async/await usage (#4753) https://github.com/python/cpython/commit/5f841b553814969220b096a2b4f959

[issue32193] Convert asyncio to async/await

2017-12-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32253] Deprecate old-style locking in asyncio/locks.py

2017-12-09 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +4667 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32253> ___ ___ Py

[issue32253] Deprecate old-style locking in asyncio/locks.py

2017-12-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: 1. asyncio is not supported by 2.7 anyway 2. with (yield from lock) is based on very non-obvious tricks: a) lock.__enter__ is forbidden and raises RuntimeError b) actually lock.__iter__ is called for lock acquiring *before* calling `with` c) the object

[issue32258] Rewrite ayncio docs to use async/await syntax

2017-12-09 Thread Andrew Svetlov
New submission from Andrew Svetlov : https://bugs.python.org/issue32193 switched asyncio implementation to async/await syntax. We need to update documentation as well. -- assignee: docs@python components: Documentation, asyncio messages: 307889 nosy: asvetlov, docs@python, yselivanov

[issue32250] Add loop.current_task() and loop.all_tasks() methods

2017-12-09 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +4669 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32250> ___ ___ Py

[issue32253] Deprecate old-style locking in asyncio/locks.py

2017-12-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 28d8d14013ade0657fed4673f5fa3c08eb2b1944 by Andrew Svetlov in branch 'master': bpo-32253: Deprecate with statement and bare await for asyncio locks (GH-4764) https://github.com/python/cpython/commit/28d8d14013ade0657fed4673f5fa3c

[issue32253] Deprecate old-style locking in asyncio/locks.py

2017-12-09 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32258] Rewrite asyncio docs to use async/await syntax

2017-12-10 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +4680 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32258> ___ ___ Py

[issue32262] Fix linting errors in asyncio code; use f-strings consistently

2017-12-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree with Yury, at lease for asyncio library. -- ___ Python tracker <https://bugs.python.org/issue32262> ___ ___ Python-bug

[issue32251] Add asyncio.BufferedProtocol

2017-12-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: Yes. aiohttp uses own streams but public API and internal implementation are pretty close to asyncio streams. Moreover C accelerated HTTP parser should work with proposed BufferedProtocol seamlessly. -- ___ Python

[issue32258] Rewrite asyncio docs to use async/await syntax

2017-12-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 8874342cf332c3aa3d845155cc4b41b00c2d9e9d by Andrew Svetlov in branch 'master': bpo-32258: Replace 'yield from' to 'await' in asyncio docs (#4779) https://github.com/python/cpython/commit/8874342cf3

[issue32258] Rewrite asyncio docs to use async/await syntax

2017-12-11 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32250] Add asyncio.current_task() and asyncio.all_tasks() funcitons

2017-12-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: In https://github.com/python/cpython/pull/4766 discussion we decided to use module level functions instead of loop methods. -- title: Add loop.current_task() and loop.all_tasks() methods -> Add asyncio.current_task() and asyncio.all_tasks() funcit

[issue32250] Add asyncio.current_task() and asyncio.all_tasks() funcitons

2017-12-11 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +4698 ___ Python tracker <https://bugs.python.org/issue32250> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32284] typing.TextIO and BinaryIO are not aliases of IO[...]

2017-12-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.7 ___ Python tracker <https://bugs.python.org/issue32284> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32284] typing.TextIO and BinaryIO are not aliases of IO[...]

2017-12-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset c3e070f84931c847d1b35e7fb36aa71edd6215f6 by Andrew Svetlov (Sebastian Rittau) in branch 'master': bpo-32284: Fix documentation of BinaryIO and TextIO (#4832) https://github.com/python/cpython/commit/c3e070f84931c847d1b35e7fb36aa7

[issue32284] typing.TextIO and BinaryIO are not aliases of IO[...]

2017-12-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset b0358e8784821867ab05b3d890717c37309be849 by Andrew Svetlov (Miss Islington (bot)) in branch '3.6': bpo-32284: Fix documentation of BinaryIO and TextIO (GH-4832) (#4833) https://github.com/python/cpyt

[issue32284] typing.TextIO and BinaryIO are not aliases of IO[...]

2017-12-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32284] typing.TextIO and BinaryIO are not aliases of IO[...]

2017-12-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Done -- ___ Python tracker <https://bugs.python.org/issue32284> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2017-12-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think the ship has sailed. Now too many code is based on assumption that the only way to cancel a task from outer code is `task.cancel()`. Internally it is turned into try: await do_stuff() except asyncio.CancelledError: do_task_cancellation

[issue31620] asyncio.Queue leaks memory if the queue is empty and consumers poll it frequently

2017-12-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry for late closing the issue, PR was merged a month ago. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 ___ Python tracker <https://bug

[issue26259] Memleak when repeated calls to asyncio.queue.Queue.get is performed, without push to queue.

2017-12-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Duplicate of https://bugs.python.org/issue31620 -- nosy: +asvetlov resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> asyncio.Queue leaks memory if the queue is empty and consumers poll i

[issue32309] Implement asyncio.create_task() and asyncio.run_in_executor shortcuts

2017-12-13 Thread Andrew Svetlov
New submission from Andrew Svetlov : loop.create_task() and loop.run_in_executor are present very often in user code. But they are require a loop instance, actual call looks like loop = asyncio.get_running_loop() loop.create_task(coro()) The proposal adds create_task(coro) and run_in_executor

[issue32309] Implement asyncio.create_task() and asyncio.run_in_executor shortcuts

2017-12-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +4736 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32309> ___ ___ Py

[issue32309] Implement asyncio.create_task() and asyncio.run_in_executor shortcuts

2017-12-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- assignee: docs@python -> nosy: -docs@python ___ Python tracker <https://bugs.python.org/issue32309> ___ ___ Python-bugs-list mai

[issue32311] Implement asyncio.create_task() shortcut

2017-12-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: Library (Lib), asyncio nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Implement asyncio.create_task() shortcut versions: Python 3.7 ___ Python tracker <ht

[issue32309] Implement asyncio.run_in_executor shortcut

2017-12-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Removed create_task() from title -- title: Implement asyncio.create_task() and asyncio.run_in_executor shortcuts -> Implement asyncio.run_in_executor shortcut ___ Python tracker <https://bugs.python.org/issu

[issue32311] Implement asyncio.create_task() shortcut

2017-12-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +4737 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32311> ___ ___ Py

[issue32309] Implement asyncio.run_in_executor shortcut

2017-12-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: https://bugs.python.org/issue32311 opened for create_task() -- ___ Python tracker <https://bugs.python.org/issue32309> ___ ___

[issue32314] Implement asyncio.run()

2017-12-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: I like avoiding run_forever() -- the function always was too cumbersome. -- ___ Python tracker <https://bugs.python.org/issue32

[issue32297] Few misspellings found in Python source code comments.

2017-12-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 53f7a7c2814fbfd8a29200926601a32fa48bacb3 by Andrew Svetlov (Mike) in branch 'master': bpo-32297: Few misspellings found in Python source code comments. (#4803) https://github.com/python/cpython/commit/53f7a7c2814fbfd8a29200926601a3

[issue32297] Few misspellings found in Python source code comments.

2017-12-14 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue32297> ___ ___

[issue32297] Few misspellings found in Python source code comments.

2017-12-14 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +4752 ___ Python tracker <https://bugs.python.org/issue32297> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32297] Few misspellings found in Python source code comments.

2017-12-14 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +4754 ___ Python tracker <https://bugs.python.org/issue32297> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32297] Few misspellings found in Python source code comments.

2017-12-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 28453feaa8d88bbcbf6d834b1d5ca396d17265f2 by Andrew Svetlov in branch '3.6': [3.6] bpo-32297: Fix misspellings in Python source code comments (GH-4803) (#4864) https://github.com/python/cpython/commit/28453feaa8d88bbcbf6d834b1d5ca3

[issue32311] Implement asyncio.create_task() shortcut

2017-12-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset f74ef458ab1f502e4e60bd1502ac1dc0d2cb3847 by Andrew Svetlov in branch 'master': bpo-32311: Implement asyncio.create_task() shortcut (#4848) https://github.com/python/cpython/commit/f74ef458ab1f502e4e60bd1502ac1d

[issue32311] Implement asyncio.create_task() shortcut

2017-12-14 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker <https://bugs.python

[issue32311] Implement asyncio.create_task() shortcut

2017-12-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for careful review! -- ___ Python tracker <https://bugs.python.org/issue32311> ___ ___ Python-bugs-list mailin

[issue32250] Add asyncio.current_task() and asyncio.all_tasks() funcitons

2017-12-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 44d1a5912ea629aa20fdc377a5ab69d9ccf75d61 by Andrew Svetlov in branch 'master': bpo-32250: Implement asyncio.current_task() and asyncio.all_tasks() (#4799) https://github.com/python/cpython/commit/44d1a5912ea629aa20fdc377a5ab69

[issue32250] Add asyncio.current_task() and asyncio.all_tasks() funcitons

2017-12-16 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: +Library (Lib) resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker <https://bugs.python

[issue32351] Use fastpath in asyncio.sleep if delay<0

2017-12-17 Thread Andrew Svetlov
New submission from Andrew Svetlov : Currently asyncio.sleep schedules a callback execution by `loop.call_later()` call, which has the same behavior but 2x slower. -- components: Library (Lib), asyncio messages: 308487 nosy: asvetlov, yselivanov priority: normal severity: normal status

[issue32351] Use fastpath in asyncio.sleep if delay<0

2017-12-17 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +4802 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32351> ___ ___ Py

[issue32351] Use fastpath in asyncio.sleep if delay<0

2017-12-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 5382c05021026fe623def829d121f5f6af4909fb by Andrew Svetlov in branch 'master': bpo-32351: Use fastpath in asyncio.sleep if delay<0 (#4908) https://github.com/python/cpython/commit/5382c05021026fe623def829d12

[issue32351] Use fastpath in asyncio.sleep if delay<0

2017-12-17 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> performance ___ Python tracker <https://bugs.python

[issue32296] Implement asyncio._get_running_loop() and get_event_loop() in C

2017-12-18 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32363] Deprecate task.set_result() and task.set_exception()

2017-12-18 Thread Andrew Svetlov
New submission from Andrew Svetlov : Task result is given from coroutine execution, explicit modification of the value should be deprecated and eventually removed. -- components: Library (Lib), asyncio messages: 308542 nosy: asvetlov, yselivanov priority: normal severity: normal status

[issue32364] Add AbstractFuture and AbstractTask

2017-12-18 Thread Andrew Svetlov
New submission from Andrew Svetlov : Asyncio supports custom future and task by third-party loop implementation. Abstract classes for them is needed. AbstractTask should not have set_result()/set_exception() maybe, is this case abstract base is needed (AbstractPromise, AbstractCancellableValue

[issue31094] asyncio: get list of connected clients

2017-12-18 Thread Andrew Svetlov
Andrew Svetlov added the comment: This tracker is not the best place for questions about development *with* Python -- it is for questions for development *of* Python itself. Please use resources like StackOverflow next time. `asyncio.Server.sockets` is a list of connected socket objects

[issue32373] Add socket.getblocking() method

2017-12-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree, it's a bug. +1 for getblocking() -- ___ Python tracker <https://bugs.python.org/issue32373> ___ ___ Python-bugs-l

[issue29970] Severe open file leakage running asyncio SSL server

2017-12-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset f7686c1f5553b24e3307506a18e18f6544de94d3 by Andrew Svetlov (Neil Aspinall) in branch 'master': bpo-29970: Add timeout for SSL handshake in asyncio https://github.com/python/cpython/commit/f7686c1f5553b24e3307506a18e18f

[issue29970] Severe open file leakage running asyncio SSL server

2017-12-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in 3.7 -- ___ Python tracker <https://bugs.python.org/issue29970> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29970] Severe open file leakage running asyncio SSL server

2017-12-19 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5, Python 3.6 ___ Python tracker <https://bugs.python.or

[issue29970] Severe open file leakage running asyncio SSL server

2017-12-20 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +4830 ___ Python tracker <https://bugs.python.org/issue29970> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29970] Severe open file leakage running asyncio SSL server

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 51eb1c6b9c0b382dfd6e0428eacff0c7891a6fc3 by Andrew Svetlov in branch 'master': bpo-29970: Make ssh_handshake_timeout None by default (#4939) https://github.com/python/cpython/commit/51eb1c6b9c0b382dfd6e0428eacff0

[issue32389] urllib3 wrong computation of 'Content-Length' for file upload

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Is your question about urllib3? This bug tracker is about python itself. urllbib3 should be discussed here: https://github.com/shazow/urllib3 -- nosy: +asvetlov ___ Python tracker <https://bugs.python.

[issue32052] Provide access to buffer of asyncio.StreamReader

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: If the problm is in readuntil() functionality -- let's discuss th function improvement (in separate issue). Exposing streams internals is antipattern and very bad idea. I suggest closing the issue. Yury, what is your opinion? -- nosy: +asv

[issue32364] Add AbstractFuture and AbstractTask

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Let's postpone it to Python 3.8 -- versions: +Python 3.8 -Python 3.7 ___ Python tracker <https://bugs.python.org/is

[issue30782] Allow limiting the number of concurrent tasks in asyncio.as_completed

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: as_completed() is low-level API. Let's not overload it with different parameters. Anyway `as_completed()` uses only asyncio.Future and it's public API like `add_done_callback()` etc. You can master everything what you need without asyncio mo

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

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Makes sense. -- assignee: -> asvetlov nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue31491> ___ ___ Py

[issue32391] Add StreamWriter.wait_closed()

2017-12-20 Thread Andrew Svetlov
New submission from Andrew Svetlov : Without the method there is no possibility to wait for actual writer closing (it's performed at least on next loop iteration, and even later for SSL transports). Without waiting for actual closing writing tests is a pain: user should either

[issue29970] Severe open file leakage running asyncio SSL server

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: The fix introduces a new parameter in public API. That's why I think we shouldn't backport it. -- ___ Python tracker <https://bugs.python.o

[issue29970] Severe open file leakage running asyncio SSL server

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Don't know. Ask other coredevs maybe? -- ___ Python tracker <https://bugs.python.org/issue29970> ___ ___ Python-bugs-list m

[issue31059] asyncio.StreamReader.read hangs if n<0

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: `.read(-1)` reads up to end of stream (closing the underlying socket by peer). If other side doesn't close connection after sending data -- read(-1) hangs, but it is not asyncio bug. -- nosy: +asvetlov resolution: -> not a bug stage: -&g

[issue30539] Make Proactor public in asyncio.ProactorEventLoop

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: asyncio doesn't expose `loop.selector` and `loop.proactor` -- it is deliberate choice. What proactor methods are needed to serial support? Maybe we can incorporate them into event loop itself -- as we did for `loop.sock_*`? -- nosy: +asv

[issue29922] error message when __aexit__ is not async

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: It's Interpreter Core problem, not specific to asyncio bug. -- components: +Interpreter Core -asyncio nosy: +asvetlov ___ Python tracker <https://bugs.python.org/is

[issue20493] select module: loop if the timeout is too large (OverflowError "timeout is too large")

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Documentation for asyncio specifies a cap for timeout to one day. Closing the issue. -- nosy: +asvetlov resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracke

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

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: asyncio objects are not pickable and shouldn't be -- they are ephemeral. Like pickling open socket object doesn't make sense -- there is no possibility to restore connection to peer on unpickling. Not sure if we can do anything here. I suggest c

[issue29689] Asyncio-namespace helpers for async_generators

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: asyncio is a library for asynchronous network communications and related stuff. Converting async iterator into a list is out of scope of the library. If you want incorporate aitertools into Python stdlib -- please create a separate issue (but better discuss

[issue29558] Provide run_until_complete inside loop

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Awaiting a future from blocking code which in turn is executed from async code is very dangerous idea -- it will block other async code execution. The feature will be never implemented as well as nested loops, sorry. Closing. -- nosy: +asvetlov

[issue28942] await expressions in f-strings

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Yury, ping. -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue28942> ___ ___ Python-bugs-list mailin

[issue28942] await expressions in f-strings

2017-12-20 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.7 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue28942> ___ ___ Python-bugs-list mailing list Unsub

[issue30014] Speedup DefaultSelectors.modify() by 2x

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: PR was merged 6 months ago, closing the issue. -- nosy: +asvetlov resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue29344] sock_recv not detected a coroutine

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: sock_recv was converted into genuine coroutine in Python 3.7 Closing the issue. -- nosy: +asvetlov resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5, P

[issue28697] asyncio.Lock, Condition, Semaphore docs don't mention `async with` syntax

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed by recent docs update for Python 3.7 -- nosy: +asvetlov resolution: -> fixed stage: -> resolved status: open -> closed versions: -Python 3.5, Python 3.6 ___ Python tracker <https://bug

[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Is the issue done? Can it be closed? -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue29243> ___ ___ Pytho

[issue29889] test_asyncio fails always

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Confirm: no problems on master (Ubuntu 17.10). Closing the issue. -- nosy: +asvetlov resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

<    14   15   16   17   18   19   20   21   22   23   >