Andrew Svetlov added the comment:
I think the only way to make sure that proactor event loop is stable --
starting to use it everywhere on Windows.
Let's do it.
--
___
Python tracker
<https://bugs.python.org/is
Andrew Svetlov added the comment:
I don't care too much.
Maybe removal is just fine.
`with await ...` looks awkward anyway
--
___
Python tracker
<https://bugs.python.org/is
Change by Andrew Svetlov :
--
versions: +Python 3.8
___
Python tracker
<https://bugs.python.org/issue34679>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Svetlov added the comment:
In my opinion, we should don't change the behavior.
Signal handlers should be processed in main thread at the end, that's how
Python works for regular synchronous API.
Mentioning it in the doc makes sense.
Would you make a pu
Andrew Svetlov added the comment:
```
In [1]: import weakref
In [2]: class A:
...: __slots__
Andrew Svetlov added the comment:
I think yes.
--
___
Python tracker
<https://bugs.python.org/issue34830>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andrew Svetlov :
The waiting is the pretty normal case: no IO is performed and no immediate
activities are scheduled.
Therefore logging such cases is just a noise.
--
components: asyncio
messages: 326702
nosy: asvetlov, yselivanov
priority: normal
severity: normal
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +9032
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34849>
___
___
Py
Andrew Svetlov added the comment:
`asyncio.sleep()` always pauses the current task and switches execution to
another one.
`asyncio.sleep(0)` has no special meaning (but it has internal optimization for
the case).
Basically the same as `time.sleep(0)` for multithreaded program.
I doubt if
Andrew Svetlov added the comment:
Adding "`asyncio.sleep()` always pauses the current task and switches execution
to another one" sounds totally reasonable to me (without mentioning zero
`delay` special case).
Would you make a pu
Andrew Svetlov added the comment:
New changeset cd602b8af2d14ff686261eeb18b80f718bb16550 by Andrew Svetlov
(Hrvoje Nikšić) in branch 'master':
bpo-34476: Document that asyncio.sleep() always suspends. (#9643)
https://github.com/python/cpython/commit/cd602b8af2d14ff686261eeb18b80f
Andrew Svetlov added the comment:
New changeset 655608a1112e592cd6a9155ebe774dd285f561f3 by Andrew Svetlov (Miss
Islington (bot)) in branch '3.7':
bpo-34476: Document that asyncio.sleep() always suspends. (GH-9643) (#9654)
https://github.com/python/cpyt
Andrew Svetlov added the comment:
thanks!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
versions: +Python 3.8
___
Python tracker
<https://bugs.python.org/issue34476>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Svetlov added the comment:
@xtreak is right, `run_coroutine_threadsafe()` returns
`concurrent.futures.Future` object.
Personally, I like the fact that `fut.result()` is called with timeout
parameter to reflect the fact of the different object type.
--
resolution: -> no
Andrew Svetlov added the comment:
My understanding is:
`loop` argument passed to sleep should be always the same as returned from
`get_running_loop()`.
Passing it explicitly can be considered as microoptimization but
`get_running_loop()` is pretty fast now, no need for such micro-opts.
On
Andrew Svetlov added the comment:
I vote on not changing `run_in_executor` behavior if we cannot make it work
with `ProcessPoolExecutor`.
If a new API will solve the problem -- that's fine.
Until it landed the explicit context propagation is the satisfactory sol
Andrew Svetlov added the comment:
Yuri, can you take a look?
--
___
Python tracker
<https://bugs.python.org/issue34885>
___
___
Python-bugs-list mailin
Andrew Svetlov added the comment:
I prefer (4) but can live with (3)
It is a new feature for Python 3.8 anyway, no need to rush
--
___
Python tracker
<https://bugs.python.org/issue34
Change by Andrew Svetlov :
--
title: Change .js mime to "test/javascript" -> Change .js mime to
"text/javascript"
___
Python tracker
<https://
Andrew Svetlov added the comment:
By RCF 4329 https://tools.ietf.org/html/rfc4329#page-9 text/javascript is
obsoleted, application/javascript is a part of the standard.
WhatWg is a controversial group. Their specs don't always follow official
standards but Python does.
Sorry, I s
Change by Andrew Svetlov :
--
resolution: -> rejected
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
We can return to the question when (and if) the draft will be accepted.
--
___
Python tracker
<https://bugs.python.org/issue34
New submission from Andrew Svetlov :
isfunction() processes both `isfunction(func)` and `isfunction(partial(func,
arg))` correctly.
But `iscoroutinefunction()` misses this functionality.
We can implement it easy by adding a check for `isinstance(func, partial)` and
applying a coroutine
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
New changeset 29c40c73143fee3612147959779b6927cd1be7e1 by Andrew Svetlov (Miss
Islington (bot)) in branch '3.7':
bpo-34825: Add more entries to os to pathlib reference table (GH-9608) (#9717)
https://github.com/python/cpyt
Andrew Svetlov added the comment:
-1
Internal function means: you can use it on your risk but the function can be
changed or even removed in any Python release.
I see no point in documenting and making it public.
--
nosy: +asvetlov
___
Python
Andrew Svetlov added the comment:
Yuri, do you mean `socket._io_refs` manipulations?
--
___
Python tracker
<https://bugs.python.org/issue34795>
___
___
Pytho
Andrew Svetlov added the comment:
Looks like a hack but we have no choice
--
___
Python tracker
<https://bugs.python.org/issue34795>
___
___
Python-bugs-list m
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
components: Tests, asyncio
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Extract asyncio sendfile tests into a separate test file
versions: Python 3.8
___
Python tracker
<ht
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +9142
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34929>
___
___
Py
Change by Andrew Svetlov :
--
assignee: -> asvetlov
components: +asyncio
nosy: +yselivanov
versions: +Python 3.8
___
Python tracker
<https://bugs.python.org/issu
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Duplicate of #34630
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue34445>
___
___
Python-bugs-list
Andrew Svetlov added the comment:
New changeset 4c339970570d07916bee6ade51f4e9781d51627a by Andrew Svetlov (Paul
Bailey) in branch 'master':
bpo-34911: Added support for secure websocket cookies (GH-9734)
https://github.com/python/cpython/commit/4c339970570d07916bee6ade51f4e9
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.8
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
components: Tests, asyncio
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Extract asyncio tests for sock_*() methods into a separate test file
versions: Python 3.8
___
Python tracker
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +9147
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34937>
___
___
Py
Andrew Svetlov added the comment:
New changeset 0854b92cd25613269d21de3cb5239379ddc0f2fb by Andrew Svetlov
(Bradley Meck) in branch 'master':
bpo-31715 Add mimetype for extension .mjs (#3908)
https://github.com/python/cpython/commit/0854b92cd25613269d21de3cb5239379ddc0f2fb
-
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: -Python 2.7, Python 3.6, Python 3.7
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
New changeset 199a280af540e3194405eb250ca1a8d487f6a4f7 by Andrew Svetlov
(travisoneill) in branch 'master':
bpo-34758: add .wasm to recognized file extensions in mimetypes module (GH-9464)
https://github.com/python/cpyt
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.8 -Python 3.7
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
assignee: -> asvetlov
___
Python tracker
<https://bugs.python.org/issue30064>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Andrew Svetlov :
--
assignee: -> asvetlov
___
Python tracker
<https://bugs.python.org/issue34795>
___
___
Python-bugs-list mailing list
Unsubscrib
Andrew Svetlov added the comment:
Agree, EchoServer is the better name
--
nosy: +asvetlov
___
Python tracker
<https://bugs.python.org/issue23554>
___
___
Pytho
Andrew Svetlov added the comment:
Cool! Thanks!
--
___
Python tracker
<https://bugs.python.org/issue23554>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andrew Svetlov :
Traceback (most recent call last):
File "C:\Users\max\AppData\Local\Programs\Python\Python37\lib\threading.py",
line 917, in _bootstrap_inner
self.run()
File
"D:\Proj\antwork\code\antwork_backend\server\data_handlers\order\playbac
Change by Andrew Svetlov :
--
title: Protect all_tasks manipulation in asyncio.all_tasks() -> Protect tasks
weak set manipulation in asyncio.all_tasks()
___
Python tracker
<https://bugs.python.org/issu
Andrew Svetlov added the comment:
The issue is hard to reproduce, the problem happens on an implicit garbage
collector run during iteration over `_all_tasks` weakset.
--
___
Python tracker
<https://bugs.python.org/issue34
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +9211
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34970>
___
___
Py
Andrew Svetlov added the comment:
Ned, would be nice to have this trivial bugfix in 3.7.1.
The problem happens if wakes up on weakset iteration.
The chance is very low, it leads to a flaky scary bug.
--
stage: patch review ->
___
Python trac
Andrew Svetlov added the comment:
Agree.
Docs update sounds good.
Nathaniel, would you create a docs patch?
--
___
Python tracker
<https://bugs.python.org/issue34
Andrew Svetlov added the comment:
TLS session support is awesome.
IFAIK ssl_proto.py is under heavy reconstruction now.
Please coordinate your work with Yuri.
--
___
Python tracker
<https://bugs.python.org/issue34
Andrew Svetlov added the comment:
Let's wait for Yuri opinion.
--
___
Python tracker
<https://bugs.python.org/issue34970>
___
___
Python-bugs-list m
Andrew Svetlov added the comment:
Exposing internal buffer means committing on a new API contract forever.
I feel a need for reacher read*() API but pretty sure that making internal
buffer public is a bad idea. With BufferedProtocol it could be even worse: SLAB
allocators can spit a buffer
Andrew Svetlov added the comment:
New changeset 5dbb1b7df1d9ecaa6b5344028cd1777502cf5c73 by Andrew Svetlov (Miss
Islington (bot)) in branch '3.7':
bpo-34970: Protect tasks weak set manipulation in asyncio.all_tasks() (GH-9837)
(GH-9849)
https://github.com/python/cpyt
Andrew Svetlov added the comment:
Ned, the fix has landed on both master and 3.7
Your turn, please.
--
___
Python tracker
<https://bugs.python.org/issue34
Andrew Svetlov added the comment:
Cool!
Thanks, Ned
--
___
Python tracker
<https://bugs.python.org/issue34970>
___
___
Python-bugs-list mailing list
Unsub
Andrew Svetlov added the comment:
Thanks for raising the problem.
I'm in the middle of streams API refactoring.
https://github.com/asvetlov/cpython/blob/async-streams/Lib/asyncio/streams.py#L801-L812
is a draft.
A help is very appreciated.
Would you pick up this snippet and make a
Andrew Svetlov added the comment:
1. Trio has *stappled* streams for the case, especially useful for starting TLS
session over stdin/stdout.
We can master something too.
2. FlowControlMixin was always considered a **private** API. Would be nice to
add an underscore prefix to the name if not
Andrew Svetlov added the comment:
List of strings works on both my local Linux box and CPython test suite.
Please provide more info about the error. Stacktrace can help
--
___
Python tracker
<https://bugs.python.org/issue35
Andrew Svetlov added the comment:
I think you'll get the same error on `subprocess.run()` call if your current
locale is not UTF-8.
I don't recall the details but the Intenet has a lot info about setting locale
per user and s
Andrew Svetlov added the comment:
It could be a nice feature but I imagine about adding ipaddress objects support
to all python APIs.
It could be done in a similar way as pathlib integration (os.fspath() and
family).
--
___
Python tracker
<ht
Andrew Svetlov added the comment:
I mean if we implement something like PathLike [1] but for IP addresses to
socket module and teach all socket APIs to accept IPLike objects along with str
-- no asyncio change is required.
1. https://docs.python.org/3/library/os.html#os.PathLike
Andrew Svetlov added the comment:
A coroutine detection is a relatively slow check.
I don't think we need to do it in `functools.lru_cache`.
There is a specialized asyncio compatible version:
https://github.com/aio-libs/async_lru
Please u
Andrew Svetlov added the comment:
Hi Vincent!
No, the hang is not intended behavior. Thanks for the report.
I'll assign the issue to myself to don't miss the bug; but if you have a patch
with a fix -- please don't hesitate to make a Pull
New submission from Andrew Svetlov :
On Linux maximum data size for sendfile call is 0x7000:
sendfile() will transfer at most 0x7000 (2,147,479,552) bytes, returning
the number of bytes actually
transferred. (This is true on both 32-bit and 64-bit systems.)
Limiting max block
Change by Andrew Svetlov :
--
components: +Library (Lib), asyncio -macOS
nosy: +yselivanov
___
Python tracker
<https://bugs.python.org/issue35179>
___
___
Pytho
Change by Andrew Svetlov :
--
nosy: +giampaolo.rodola -ned.deily, ronaldoussoren
___
Python tracker
<https://bugs.python.org/issue35179>
___
___
Python-bug
Andrew Svetlov added the comment:
My initial thought was that os.sendfile() raises OSError on sending more than
0x7fff_f000 but I was wrong.
I've checked it, everything works as Victor described.
Thank you guys for the feedback.
--
resolution: -> not a bug
stage: -&g
Andrew Svetlov added the comment:
New changeset fd512d76456b65c529a5bc58d8cfe73e4a10de7a by Andrew Svetlov
(Vincent Michel) in branch 'master':
bpo-35065: Remove `StreamReaderProtocol._untrack_reader` (#10212)
https://github.com/python/cpython/commit/fd512d76456b65c529a5bc58d8cfe7
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
I think the issue can be closed
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +9699
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue30064>
___
___
Py
Andrew Svetlov added the comment:
New changeset 74387926072abf338a4c1cec1bf0501fc65bbee5 by Andrew Svetlov in
branch 'master':
bpo-30064: Refactor sock_* asyncio API (#10419)
https://github.com/python/cpython/commit/74387926072abf338a4c1cec1bf050
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Thanks, Zackery!
--
___
Python tracker
<https://bugs.python.org/issue35269>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue18699>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andrew Svetlov:
I think this is a bug.
Can be reproduced on all Pythons (from 2.6 to 3.4a).
Maybe should be fixed for 3.4 only as backward incompatible change.
--
messages: 195263
nosy: asvetlov
priority: normal
severity: normal
status: open
title: '''
Andrew Svetlov added the comment:
For dict it is correct from my perspective.
"" % {'a': 'b'}
tries to substitute format specs like "%(a)s" and does nothing if spec is not
present.
But list case like
"" % [1]
confuse me.
--
Changes by Andrew Svetlov :
--
dependencies: +add function to os module for getting path to default shell
___
Python tracker
<http://bugs.python.org/issue16
Changes by Andrew Svetlov :
--
versions: -Python 2.7, Python 3.2, Python 3.3
___
Python tracker
<http://bugs.python.org/issue16255>
___
___
Python-bugs-list m
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue17213>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue18823>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue17908>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Svetlov added the comment:
Looks good but review comments worth to be applied or rejected with reasonable
note.
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue11
Andrew Svetlov added the comment:
Matt, I've added new patch.
Will commit it after tomorrow if nobody object.
--
Added file: http://bugs.python.org/file31483/issue11798.diff
___
Python tracker
<http://bugs.python.org/is
Andrew Svetlov added the comment:
Matt, would you sign licence agreement http://www.python.org/psf/contrib/ ?
The Python Software Fondation is asking all contributors to sign it.
Thanks.
--
___
Python tracker
<http://bugs.python.org/issue11
Changes by Andrew Svetlov :
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue11798>
___
___
Python-bugs-list
Andrew Svetlov added the comment:
Sorry. Tests are fixed now.
--
___
Python tracker
<http://bugs.python.org/issue11798>
___
___
Python-bugs-list mailing list
Unsub
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue18550>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andrew Svetlov:
We need public API for getting main thread object.
See also http://comments.gmane.org/gmane.comp.python.devel/141370
--
messages: 196521
nosy: asvetlov, haypo, pitrou
priority: normal
severity: normal
status: open
title: Add threading.main_thread
Andrew Svetlov added the comment:
Patch with code and tests is attached.
Test fails when program forks from thread other than the main one.
--
keywords: +patch
Added file: http://bugs.python.org/file31519/issue18882.diff
___
Python tracker
<h
Andrew Svetlov added the comment:
signal module reinitializes main_thread variable in PyOS_AfterFork, threading
does nothing with forking.
--
___
Python tracker
<http://bugs.python.org/issue18
Andrew Svetlov added the comment:
http://bugs.python.org/issue16500 is required to make work after fork from
thread other than the main one.
--
dependencies: +Add an 'atfork' module
___
Python tracker
<http://bugs.python.o
1701 - 1800 of 2519 matches
Mail list logo