Andrew Svetlov added the comment:
New changeset 3bc0ebab17bf5a2c29d2214743c82034f82e6573 by Andrew Svetlov in
branch 'master':
bpo-35380: Enable TCP_NODELAY for proactor event loop (#10867)
https://github.com/python/cpython/commit/3bc0ebab17bf5a2c29d2214743c820
Change by Andrew Dunai :
--
keywords: +patch
pull_requests: +10110
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue35357>
___
___
Py
Change by Andrew Svetlov :
--
pull_requests: +10111
___
Python tracker
<https://bugs.python.org/issue35380>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Svetlov added the comment:
New changeset fe91e9ba08a8854e2149398386702828fe3c0038 by Andrew Svetlov (Miss
Islington (bot)) in branch '3.7':
[3.7] bpo-35380: Enable TCP_NODELAY for proactor event loop (GH-10867)
(GH-10872)
https://github.com/python/cpyt
New submission from Andrew Svetlov :
Protocols have no members.
Adding empty slots doesn't harm any existing code but it allows to write proper
protocol implementation with slot-based class.
--
components: asyncio
messages: 330986
nosy: asvetlov, yselivanov
priority: normal
sev
Andrew Svetlov added the comment:
Would you create a PR with a fix?
--
nosy: +asvetlov
___
Python tracker
<https://bugs.python.org/issue35395>
___
___
Python-bug
Andrew Svetlov added the comment:
Sorry, you did already
--
___
Python tracker
<https://bugs.python.org/issue35395>
___
___
Python-bugs-list mailing list
Unsub
Andrew Svetlov added the comment:
Thanks Naglis
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +10127
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue35394>
___
___
Py
Andrew Svetlov added the comment:
New changeset bfb881849f588cd2046776fb431c3045781c8214 by Andrew Svetlov in
branch '3.6':
[3.6] bpo-35380: Enable TCP_NODELAY for proactor event loop (GH-10867).
(GH-10874)
https://github.com/python/cpython/commit/bfb881849f588cd2046776fb431c30
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.6
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Christian Heimes is right: it is a new feature, not a bug fix.
I regret too often when I cannot backport a brilliant patch to old Python
version but this is the price of API stability.
You can try to convince release managers (Benjamin and Ned, I've
Change by Andrew Tennikoff :
--
nosy: +atenni
___
Python tracker
<https://bugs.python.org/issue23078>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Svetlov added the comment:
New changeset 5344501ad166c1380be452644a863a4679c4291b by Andrew Svetlov in
branch 'master':
bpo-35394: Add empty slots to abstract asyncio protocols (#10889)
https://github.com/python/cpython/commit/5344501ad166c1380be452644a863a
Andrew Svetlov added the comment:
The proposal sounds great!
Would you prepare a pull request for docs update?
--
nosy: +asvetlov
___
Python tracker
<https://bugs.python.org/issue35
Change by Andrew Svetlov :
--
components: +asyncio
nosy: +yselivanov
___
Python tracker
<https://bugs.python.org/issue35465>
___
___
Python-bugs-list mailin
Change by Andrew Svetlov :
--
versions: +Python 3.8 -Python 3.6
___
Python tracker
<https://bugs.python.org/issue31446>
___
___
Python-bugs-list mailin
Andrew Svetlov added the comment:
A task should have `await` inside to give to loop a chance to switch to another
task (or get canceled).
It is not an asyncio bug but a part of specified behavior.
Your code could be modified as
async def readdev(dev):
while True:
buf=os.read
Andrew Svetlov added the comment:
Sorry, the bug tracker is for working on Python bugs, not on bugs of your
programs written with Python.
The behavior of subprocesses running is tested intensively, scenarios like you
described works well.
I don't know sockfish protocol but highly l
Andrew Svetlov added the comment:
New changeset b912f9342e7a37d170ba659c13c959115c11545a by Andrew Svetlov
(Beomsoo Kim) in branch 'master':
bpo-35511: Trivial docs updates for profile and resource library modules.
(GH-11124)
https://github.com/python/cpyt
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:
Hmm, I forgot kqueue usage details: it operated not only with int flags but
more complex structures.
Giampaolo, thanks for pointing on!
Please let me sleep on it.
--
___
Python tracker
<https://bugs.python.
Andrew Svetlov added the comment:
New changeset b5c8cfa1da17c6f3acac80a0afca7f7104fb9589 by Andrew Svetlov
(Vladimir Matveev) in branch 'master':
bpo-23057: add loop self socket as wakeup fd for signals (#11135)
https://github.com/python/cpyt
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.8 -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:
You are correct.
Would you make a patch?
--
___
Python tracker
<https://bugs.python.org/issue35579>
___
___
Python-bugs-list m
Andrew Svetlov added the comment:
The value type is DWORD.
0x is a maximum allowed value for DWORD.
0 implies something like 8 for Intel i7.
I don't remember the reason (the value was present is very first proactor
implementation and never changed after it).
Maybe giving Wind
Andrew Svetlov added the comment:
Sure!
--
___
Python tracker
<https://bugs.python.org/issue35579>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andrew Svetlov :
Construction enums by-value (e.g. http.HTTPStatus(200)) performs two dict
lookups:
if value in cls._value2member_map_:
return cls._value2member_map_[value]
Changing the code to just
return cls._value2member_map_[value]
with catching
Change by Andrew Svetlov :
--
keywords: +patch, patch
pull_requests: +10568, 10569
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +10568
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue35585>
___
___
Py
Andrew Svetlov added the comment:
Thanks for the report!
--
assignee: -> asvetlov
___
Python tracker
<https://bugs.python.org/issue35589>
___
___
Python-
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 705b5998035739b1794a862123d3dc6e339a14d0 by Andrew Svetlov (Miss
Islington (bot)) in branch '3.7':
Speed-up building enums by value, e.g. http.HTTPStatus(200) (GH-11318)
(GH-11324)
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:
What Python version do you use?
--
___
Python tracker
<https://bugs.python.org/issue33350>
___
___
Python-bugs-list mailin
Andrew Svetlov added the comment:
Do you mean an environment modification?
1 test altered the execution environment:
test_asyncio
--
___
Python tracker
<https://bugs.python.org/issue35
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +10823
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue35589>
___
___
Py
Change by Andrew Svetlov :
--
keywords: +patch, patch
pull_requests: +10823, 10824
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Andrew Svetlov :
--
keywords: +patch, patch, patch
pull_requests: +10823, 10824, 10825
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Andrew Svetlov added the comment:
New changeset 67ba547cf001d6b975cf6900aaf2bd5508dc6a87 by Andrew Svetlov
(Vladimir Matveev) in branch 'master':
bpo-23057: Use 'raise' to emulate ctrl-c in proactor tests (#11274)
https://github.com/p
Andrew Brezovsky added the comment:
Can confirm this is still a problem in latest versions of 3.5, 3.6, and 3.7
Any progress made on this?
--
nosy: +abrezovsky
___
Python tracker
<https://bugs.python.org/issue29
Andrew Svetlov added the comment:
The limitation is a consequence of how Linux works.
Unix has no cross-platform API for non-blocking waiting for child process
finish except handling SIGCHILD signal.
On the other hand signal handlers in Python should work in the main thread.
Your trick with
Change by Andrew Svetlov :
--
components: +Library (Lib)
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
>From my understanding the question is: replace 0x with 0 or 1?
I don't know much about IOCP, 0 sounds safer for me.
--
___
Python tracker
<https://bugs.python.org
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +11251
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34148>
___
___
Py
Change by Andrew Svetlov :
--
keywords: +patch, patch, patch
pull_requests: +11251, 11252, 11253
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Andrew Svetlov :
--
keywords: +patch, patch
pull_requests: +11251, 11252
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
New submission from Andrew Svetlov :
Asyncio uses a pipe to wakeup event loop in cases of
1. Signal handlers (set_wakeup_fd)
2. Calling asyncio code from another thread
In both cases, it sends b'\0' to the pipe to wake up a loop.
If the pipe is full OSError is raised.
asyncio
Change by Andrew Svetlov :
--
components: +asyncio
nosy: +yselivanov
type: -> enhancement
versions: +Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.org/issu
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +11254
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue35749>
___
___
Py
Change by Andrew Svetlov :
--
keywords: +patch, patch
pull_requests: +11254, 11255
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Andrew Svetlov :
--
keywords: +patch, patch, patch
pull_requests: +11254, 11255, 11256
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Andrew Svetlov added the comment:
Victor, thanks for the message.
I forgot mentioned changes.
You are right, the issue is "theoretical", I didn't see problems with current
implementation.
The self-pipe buffer is pretty big, a chance to reach its limit is relatively
low.
But a
Change by Andrew Svetlov :
--
resolution: -> rejected
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
I think yes.
People will be notified about depreciation earlier, even after 3.8 release not
everybody switches to a new version fast.
For example, I still use 3.6 for my job now (but we are planning to switch to
3.7 in a month or two).
Adding
Andrew Svetlov added the comment:
Not sure. IMHO it is not a *notable* change worth to be mentioned in
https://docs.python.org/3/whatsnew/3.7.html#notable-changes-in-python-3-7-2
--
___
Python tracker
<https://bugs.python.org/issue35
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.or
New submission from Andrew Svetlov :
We use `asyncio.run()` (well, a backported to python3.6 private copy) in our
application.
The problem is: when `asyncio.run(main_coro(args))` raises an exception it is
both raised to a caller and passed to `loop.call_exception_handler()` by
Andrew Svetlov added the comment:
My personal opinion is: we should accept bug fixes for asyncore but stop adding
new features to the module.
asyncio supersedes asyncore in all aspects.
--
nosy: +asvetlov
___
Python tracker
<ht
Andrew Svetlov added the comment:
Technically the change seems correct, we have the same logic for asyncio
half-closed streams.
But I want to raise the flag again: why we are adding new functionality to the
*deprecated* module? It violates our on deprecation policy, isn'
Andrew Svetlov added the comment:
The change adds a new public method.
The method should be added to documentation also.
Documentation requires `.. versionadded:: 3.8` tag.
It doesn't look like *just a bugfix* but a feature.
--
___
Python tr
Andrew Svetlov added the comment:
I agree with Yuri.
`Task.set_exception()` (let's assume it works) is very dangerous: if
cancellation exception doesn't bubble up from coroutine code there is a very
high chance to get broken invariants and not-released resources.
The same si
Change by Andrew Svetlov :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue35812>
___
___
Python-bugs-list
Andrew Svetlov added the comment:
Nevermind.
Actually, I used a backport `asyncio.run()` to Python 3.6.
I saw the problem because of the difference between `asyncio.all_task()` and
`asyncio.Task.all_task()`.
The former return only active tasks but the later returns done tasks also
Andrew Nester added the comment:
Thanks! Just added PR fixing this.
--
nosy: +andrewnester
___
Python tracker
<http://bugs.python.org/issue29649>
___
___
Pytho
Changes by Andrew Nester :
--
pull_requests: +354
___
Python tracker
<http://bugs.python.org/issue29649>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Nester added the comment:
yeah, I also thought about this too.
Something like 'pack_into requires a buffer of at least 6 bytes (size is 1,
offset is 5)'
--
___
Python tracker
<http://bugs.python.o
Andrew Nester added the comment:
thanks Serhiy! just implemented your variant in my PR.
--
___
Python tracker
<http://bugs.python.org/issue29649>
___
___
Pytho
Andrew Nester added the comment:
I've been investigating this issue and did not come up with some easy solution.
So the problem is:
os_symlink uses `path_error2` to throw exception.
the order of file arguments now is src then dest. For provided example src is
`a` and dest is `sym_link`.
Andrew Nester added the comment:
Thanks Serhiy! Just implemented new error messages in my PR for case you
mentioned.
--
___
Python tracker
<http://bugs.python.org/issue29
Changes by Andrew Nester :
--
pull_requests: +657
___
Python tracker
<http://bugs.python.org/issue29863>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Nester added the comment:
any updates on this issue? looks like PR is ready to go
--
___
Python tracker
<http://bugs.python.org/issue29649>
___
___
Pytho
Andrew Nester added the comment:
any updates?
--
___
Python tracker
<http://bugs.python.org/issue29573>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Nester added the comment:
any updates?
--
___
Python tracker
<http://bugs.python.org/issue29553>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Nester added the comment:
>From my perspective current behaviour is a bit frustrate that's why it would
>be nice to have this issue fixed, but I would say it's critic one.
At the same time it doesn't introduce any BC breaking
Andrew Nester added the comment:
so any feedback on this?
--
___
Python tracker
<http://bugs.python.org/issue29553>
___
___
Python-bugs-list mailing list
Unsub
Andrew Nester added the comment:
any conclusion on this? looks like it's a bit stuck
--
nosy: +andrewnester
___
Python tracker
<http://bugs.python.org/is
Andrew Nester added the comment:
any conclusion on this? looks like it's a bit stuck
--
___
Python tracker
<http://bugs.python.org/issue29573>
___
___
Pytho
Changes by Andrew Jaffe :
--
components: Library (Lib), macOS
nosy: Andrew.Jaffe, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: default webbrowser macOS Sierra 10.12.5
type: behavior
versions: Python 2.7, Python 3.6
Changes by Andrew Jaffe :
--
title: default webbrowser macOS Sierra 10.12.5 -> default webbrowser not used
on macOS Sierra 10.12.5
___
Python tracker
<http://bugs.python.org/issu
New submission from Andrew Jaffe:
On the newly-released macOS Sierra 10.12.5, the default web browser which is
meant to returned by webbrowser.get() gives an error. Specifically:
>>> import webbrowser
>>> br = webbrowser.get()
>>> br.open("http://p
Andrew Jaffe added the comment:
A few more details:
- I believe this worked correctly under previous macOS versions (but I don't
currently have access to any such machines).
- This behaviour is identical under 3.6.1 and 2.7.13 (untested elsewhere)
- Behaviour first noticed under Ju
Changes by Andrew Jaffe :
--
title: default webbrowser not used on macOS Sierra 10.12.5 -> default
webbrowser fails on macOS Sierra 10.12.5
___
Python tracker
<http://bugs.python.org/issu
Andrew Jaffe added the comment:
The same behaviour also happens under Apple's system Python 2.7.10.
Perhaps this implies a macOS bug or deliberate behaviour change? (I couldn't
find anything obviously appropriate in the list of security fixes f
Andrew Jaffe added the comment:
This seems to be a bug in the `osascript` application in the latest macOS
10.12.5:
$ osascript < open location "http://python.org";
> EOF
0:33: execution error: "http://python.org"; doesn’t understand the “open
New submission from Andrew Dalke:
Others have reported issues like #21074 where the peephole compiler generates
and discards large strings, and #30293 where it generates multi-MB integers and
stores them in the .pyc.
This is a different issue. The code:
def tuple20():
return 1
Andrew Dalke added the comment:
I know this issue was closed many years ago, and I don't propose re-opening it.
I write this comment because some of the earlier comments here make it sound
like only a foolish or perverse programmer might be affected by this 'too
aggressive consta
Andrew Dalke added the comment:
A complex solution is to stop constant folding when there are more than a few
levels of tuples. I suspect there aren't that many cases where there are more
than 5 levels of tuples and where constant creation can't simply be assigned
and used a
Andrew Dalke added the comment:
I do not think quoting the Zen of Python helps anything. As I wrote, "it gives
different answers depending on where one draws the line." This includes
"practicality beats purity".
>From my viewpoint, the peephole optimizer isn't
Andrew Jaffe added the comment:
Yes, it's a weird bug. see
http://www.andrewjaffe.net/blog/2017/05/python-bug-hunt.html for more of the
story so far.
I have already filed a radar, and I hope this will get fixed at Apple, but it's
a bug we need to live with for a while one way or
Changes by Andrew Dalke :
--
nosy: -dalke
___
Python tracker
<http://bugs.python.org/issue30440>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andrew Dalke:
The peephole optimizer is an overall benefit to Python but it has some
side-effects that occasionally cause problems. These are well-known in the
issue tracker, but there is no other documentation which will help a Python
programmer figure out which
Andrew Dalke added the comment:
Again, I do not propose any changes to the existing optimizer. I do not need
anything changed for my code to work.
My goal is to counter-balance comments which suggest that perfectly normal code
is somehow folly and arcane. These caused me some bewilderment and
Andrew Jaffe added the comment:
I'll also note that my bug report (radar) has been marked as "DUPLICATE OF
31898264 (OPEN)". So Apple is aware of the bug, and possibly not completely
ignoring it. However, the opacity of the system is such that there is no way to
get any furt
Andrew Svetlov added the comment:
Please use the correct documentation version for Python 3.4.
https://docs.python.org/3.4/library/concurrent.futures.html doesn't mention the
pool size auto-selection.
The feature was added in Python 3.5 only.
Also, Python 3.4 reached the end-of-life,
Andrew Svetlov added the comment:
Thanks for the report.
We definitely have to fix `AttributeError`.
Unfortunately, SSL implementation in asyncio is very tricky.
Yuri has an experimental asyncio ssl replacement in his uvloop project
rewritten from scratch.
There is a plan to port it into
Andrew Brezovsky added the comment:
I lean towards it being considered a bug fix. First, the lack of parity between
Windows and Linux-based OSs causes confusion. Second, the current workaround to
hard-code the value in is far from best practice
Andrew Brezovsky added the comment:
I see your point.
Then perhaps only a subset of the more vital ones get added to previous
releases?
#define IPPROTO_IPV4 IPPROTO_IPV4
#define IPPROTO_IPV6 IPPROTO_IPV6
#define IPPROTO_TCP IPPROTO_TCP
#define IPPROTO_UDP IPPROTO_UDP
#define IPPROTO_ICMP
1501 - 1600 of 3160 matches
Mail list logo