Change by Andrew Svetlov :
--
versions: -Python 3.6
___
Python tracker
<https://bugs.python.org/issue32166>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Svetlov added the comment:
Ok, will do everything in single PR
--
___
Python tracker
<https://bugs.python.org/issue32166>
___
___
Python-bugs-list mailin
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
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
Change by Andrew Svetlov :
--
Removed message: https://bugs.python.org/msg307226
___
Python tracker
<https://bugs.python.org/issue32166>
___
___
Python-bugs-list m
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
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
You are welcome!
Thanks for review
--
___
Python tracker
<https://bugs.python.org/issue32166>
___
___
Python-bugs-list mailin
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
Change by Andrew Svetlov :
--
nosy: +gvanrossum, vstinner
___
Python tracker
<https://bugs.python.org/issue32193>
___
___
Python-bugs-list mailing list
Unsub
Change by Andrew Svetlov :
--
type: -> enhancement
___
Python tracker
<https://bugs.python.org/issue32193>
___
___
Python-bugs-list mailing list
Unsubscrib
Andrew Svetlov added the comment:
Yuri please do
--
___
Python tracker
<https://bugs.python.org/issue32193>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +4656
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32193>
___
___
Py
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
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
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:
...
--
Change by Andrew Svetlov :
--
components: +Library (Lib)
___
Python tracker
<https://bugs.python.org/issue32253>
___
___
Python-bugs-list mailing list
Unsub
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
Andrew Svetlov added the comment:
Fixed in master, sorry
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +4667
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32253>
___
___
Py
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
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
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +4669
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32250>
___
___
Py
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +4680
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32258>
___
___
Py
Andrew Svetlov added the comment:
Agree with Yury, at lease for asyncio library.
--
___
Python tracker
<https://bugs.python.org/issue32262>
___
___
Python-bug
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
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
Change by Andrew Svetlov :
--
pull_requests: +4698
___
Python tracker
<https://bugs.python.org/issue32250>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Andrew Svetlov :
--
versions: +Python 3.7
___
Python tracker
<https://bugs.python.org/issue32284>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Done
--
___
Python tracker
<https://bugs.python.org/issue32284>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +4736
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32309>
___
___
Py
Change by Andrew Svetlov :
--
assignee: docs@python ->
nosy: -docs@python
___
Python tracker
<https://bugs.python.org/issue32309>
___
___
Python-bugs-list mai
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
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
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +4737
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32311>
___
___
Py
Andrew Svetlov added the comment:
https://bugs.python.org/issue32311 opened for create_task()
--
___
Python tracker
<https://bugs.python.org/issue32309>
___
___
Andrew Svetlov added the comment:
I like avoiding run_forever() -- the function always was too cumbersome.
--
___
Python tracker
<https://bugs.python.org/issue32
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue32297>
___
___
Change by Andrew Svetlov :
--
pull_requests: +4752
___
Python tracker
<https://bugs.python.org/issue32297>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Andrew Svetlov :
--
pull_requests: +4754
___
Python tracker
<https://bugs.python.org/issue32297>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
type: -> enhancement
___
Python tracker
<https://bugs.python
Andrew Svetlov added the comment:
Thanks for careful review!
--
___
Python tracker
<https://bugs.python.org/issue32311>
___
___
Python-bugs-list mailin
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
Change by Andrew Svetlov :
--
components: +Library (Lib)
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
type: -> enhancement
___
Python tracker
<https://bugs.python
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
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +4802
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32351>
___
___
Py
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
type: -> performance
___
Python tracker
<https://bugs.python
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
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
Andrew Svetlov added the comment:
Agree, it's a bug.
+1 for getblocking()
--
___
Python tracker
<https://bugs.python.org/issue32373>
___
___
Python-bugs-l
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
Andrew Svetlov added the comment:
Fixed in 3.7
--
___
Python tracker
<https://bugs.python.org/issue29970>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Change by Andrew Svetlov :
--
pull_requests: +4830
___
Python tracker
<https://bugs.python.org/issue29970>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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.
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
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
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
Andrew Svetlov added the comment:
Makes sense.
--
assignee: -> asvetlov
nosy: +asvetlov
___
Python tracker
<https://bugs.python.org/issue31491>
___
___
Py
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
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
Andrew Svetlov added the comment:
Don't know.
Ask other coredevs maybe?
--
___
Python tracker
<https://bugs.python.org/issue29970>
___
___
Python-bugs-list m
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
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
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
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
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
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
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
Andrew Svetlov added the comment:
Yury, ping.
--
nosy: +asvetlov
___
Python tracker
<https://bugs.python.org/issue28942>
___
___
Python-bugs-list mailin
Change by Andrew Svetlov :
--
versions: +Python 3.7 -Python 3.6
___
Python tracker
<https://bugs.python.org/issue28942>
___
___
Python-bugs-list mailing list
Unsub
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
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
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
Andrew Svetlov added the comment:
Is the issue done? Can it be closed?
--
nosy: +asvetlov
___
Python tracker
<https://bugs.python.org/issue29243>
___
___
Pytho
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
1801 - 1900 of 3160 matches
Mail list logo