Andrew Svetlov added the comment:
New changeset 46c8d915715aa2bd4d697482aa051fe974d440e1 by 180909 in branch
'main':
bpo-19460: Add test for MIMENonMultipart (GH-29817)
https://github.com/python/cpython/commit/46c8d915715aa2bd4d697482aa051fe974d440e1
--
nosy:
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
versions: +Python 3.11
___
Python tracker
<https://bugs.python.org/issue45568>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Svetlov added the comment:
New changeset 52d10f6485a168141e7a50d68f9a9566fdd8379d by Andrew Svetlov in
branch '3.10':
[3.10] bpo-45568: Actually use @asynccontextmanager in usage example (GH-29151)
(GH-29779)
https://github.com/python/cpyt
Andrew Svetlov added the comment:
Typing for stdlib is provided by https://github.com/python/typeshed
CPython policy discourages embedded typing declarations.
--
nosy: +asvetlov
resolution: -> rejected
stage: patch review -> resolved
status: open -&g
Change by Andrew Svetlov :
--
nosy: +asvetlov
nosy_count: 3.0 -> 4.0
pull_requests: +28016
pull_request: https://github.com/python/cpython/pull/29779
___
Python tracker
<https://bugs.python.org/issu
Andrew Svetlov added the comment:
You are correct, the first statement is outdated.
Please feel free to make a pull request.
--
___
Python tracker
<https://bugs.python.org/issue45
Change by Andrew Svetlov :
--
versions: +Python 3.11 -Python 3.7
___
Python tracker
<https://bugs.python.org/issue28806>
___
___
Python-bugs-list mailin
Andrew Svetlov added the comment:
New changeset 15409c720be0503131713e3d3abc1acd0da07378 by Emmanuel Arias in
branch 'main':
bpo-28806: Continue work: improve the netrc library (GH-26330)
https://github.com/python/cpython/commit/15409c720be0503131713e3d3abc1acd0da07378
-
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:
New changeset b7360ae395e9e633d384d16064c5dc04a9841e19 by M. Mostafa Farzan in
branch 'main':
bpo-45752: Fix no-support examples in 'copy' docs (GH-29548)
https://github.com/python/cpython/commit/b7360ae395e9e633d384d16064c5dc04a9841e
Andrew Svetlov added the comment:
New changeset 4c792f39e688b11c7c19e411ed4f76a7baa44638 by Hong Xu in branch
'main':
bpo-45772: socket.socket should be a class instead of a function (GH-23960)
https://github.com/python/cpython/commit/4c792f39e688b11c7c19e411ed4f76
Andrew Svetlov added the comment:
New changeset 8b6a474071bcc88ec3453e16f079181e551513c3 by Miss Islington (bot)
in branch '3.9':
bpo-45792: Fix contextvar.Token's intersphinx FQN (GH-29533) (GH-29536)
https://github.com/python/cpython/commit/8b6a474071bcc88ec3453e16f
Andrew Svetlov added the comment:
New changeset 628667ac9a634c7a7fa7f681dd2f98ff5841c843 by Miss Islington (bot)
in branch '3.10':
bpo-45792: Fix contextvar.Token's intersphinx FQN (GH-29533) (GH-29535)
https://github.com/python/cpython/commit/628667ac9a634c7a7fa7f681d
Andrew Svetlov added the comment:
New changeset e501d70b347c5093018d12482c30a7a98aab86d0 by Hynek Schlawack in
branch 'main':
bpo-45792: Fix contextvar.Token's intersphinx FQN (GH-29533)
https://github.com/python/cpython/commit/e501d70b347c5093018d12482c30a7a98aab86d0
Andrew Svetlov added the comment:
> One concern I have is when users follow internet examples and look out
for these modules or examples.
There is an option: keep removed modules but replace each module content
with 'raise ImportError("Please use instead")' stub.
Th
Andrew Svetlov added the comment:
PR for documentation fix is appreciated.
Random fails to bind the same port if free ports are available is kind of
regression.
Is tornado the only example or you are aware of other libraries with such
behavior
Andrew Svetlov added the comment:
Tornado solution sounds weak; it can fail the server start if free ports are
available.
I concur with Eric, I'm not aware of an OS API call that binds both IPv4 and
IPv6 to the same random port.
--
___
P
Andrew Svetlov added the comment:
As people write above, Python supports multiple async frameworks, asyncio is
not the single choice.
You should select and maybe configure the async framework before executing your
first `await` statement.
That's why the proposal doesn't work
Andrew Svetlov added the comment:
I don't think that we need to change something with the current behavior.
It exists for years; very many Python exceptions return an empty string on
`str(exc)` but return something useful on `repr(exc)`.
If you arguing to change the behavior -- all
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, guys!
--
___
Python tracker
<https://bugs.python.org/issue45416>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Svetlov added the comment:
I guess the fix requires switching C Extension types from static to heap for
_asyncio module.
It is possible for sure but requires a non-trivial amount of work.
We need a champion for the issue.
--
___
Python
Andrew Svetlov added the comment:
asyncio provides the preemptive concurrency, not the real-time one.
It means that the exact time of task switches depends on other tasks' execution
and can vary by design.
Sorry, the jitter is unavoidable.
--
resolution: -> wont f
Andrew Svetlov added the comment:
I'm not convinced why @task decorator should be a part of asyncio.
You can provide the implementation as a part of some third-party library on
pypy.org. Looks like it doesn't require any change of asyn
Change by Andrew Svetlov :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue41756>
___
___
Pyth
Change by Andrew Svetlov :
--
pull_requests: +24529
pull_request: https://github.com/python/cpython/pull/25846
___
Python tracker
<https://bugs.python.org/issue44
Change by Andrew Svetlov :
--
pull_requests: +24526
pull_request: https://github.com/python/cpython/pull/25842
___
Python tracker
<https://bugs.python.org/issue44
Andrew Svetlov added the comment:
New changeset 5fb06edbbb769561e245d0fe13002bab50e2ae60 by Andrew Svetlov in
branch 'master':
bpo-44011: New asyncio ssl implementation (#17975)
https://github.com/python/cpython/commit/5fb06edbbb769561e245d0fe13002b
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +24507
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/17975
___
Python tracker
<https://bugs.python.org/issu
New submission from Andrew Svetlov :
There is a PR created a long time ago.
Finally, I've ported tests for it also.
The documentation doesn't mention new ssh_shutdown_timeout parameter yet.
The latest changes from https://github.com/MagicStack/uvloop/pull/385 can be
applied
Andrew Svetlov added the comment:
Thanks for the reminder.
You are correct, the mentioned PR should set
_SSLProtocolTransport._start_tls_compatible to True
--
___
Python tracker
<https://bugs.python.org/issue37
Andrew Svetlov added the comment:
1. Please consider `await` as a 'yield point': the point where the current task
may be suspended to get other tasks a chance to be executed.
It can be any `await`, not necessarily waiting for a task. Just a point where
asyncio event loop gives a
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 d90ff376813843310a6f9ccc96551fa1521e8fef by Matt Fowler in branch
'master':
BPO-42703: Fix incorrect documentation links for asyncio.Event (GH-23881)
https://github.com/python/cpython/commit/d90ff376813843310a6f9ccc96551f
Andrew Svetlov added the comment:
The traceback contains frames from asyncio internal machinery, that's why the
traceback is long.
IFIAK Python standard library never filters such calls, asyncio is not an
exception.
On the other hand, well-known pytest library supports `__tracebackh
Andrew Svetlov added the comment:
New changeset ba760f3710eccdfae2b680a5f94fe0160ddb1536 by pxinwr in branch
'master':
bpo-31904: Skip some asyncio tests on VxWorks (#23815)
https://github.com/python/cpython/commit/ba760f3710eccdfae2b680a5f94fe0160ddb1536
--
nosy:
Andrew Svetlov added the comment:
New changeset 66d3b589c44fcbcf9afe1e442d9beac3bd8bcd34 by Chris Jerdonek in
branch 'master':
bpo-38323: Add guard clauses in MultiLoopChildWatcher. (#22756)
https://github.com/python/cpython/commit/66d3b589c44fcbcf9afe1e442d9bea
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.7
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
New changeset b32d8b4f9bcd2e7d11240b6b9de0262cf8f5e09d by Matthias Bussonnier
in branch 'master':
bpo-42644: Validate values in logging.disable() (#23786)
https://github.com/python/cpython/commit/b32d8b4f9bcd2e7d11240b6b9de026
Change by Andrew Svetlov :
--
type: crash -> behavior
___
Python tracker
<https://bugs.python.org/issue42644>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Andrew Svetlov :
--
components: +Library (Lib) -asyncio
___
Python tracker
<https://bugs.python.org/issue42644>
___
___
Python-bugs-list mailin
Andrew Svetlov added the comment:
Reporting what? Please elaborate.
--
___
Python tracker
<https://bugs.python.org/issue42644>
___
___
Python-bugs-list mailin
Andrew Svetlov added the comment:
Thanks for the report.
I didn't test but looks like `outer.exception()` call can suppress the message
about not retrieved exception.
--
___
Python tracker
<https://bugs.python.org/is
Andrew Svetlov added the comment:
Sorry, this issue is not reproduced on 3.8-3.9, 3.7 is in security mode.
The issue doesn't belong to the security set.
Closing.
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
Change by Andrew Svetlov :
--
resolution: -> out of date
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Moreover, the issue is outdated.
asyncio.CancelledError is not an alias of concurrent.futures.CancelledError
starting from Python 3.8
Unfortunately, we should make this not 100% backward compatible change.
--
nosy: +asvetlov
Andrew Svetlov added the comment:
I understand the issue as the following:
1. You don't save the result of `asyncio.create_task()` somewhere.
The task object is dereferenced and thus you see a warning.
2. With PYTHONASYNCIODEBUG on the task is referenced also by internal debug
stru
Andrew Svetlov added the comment:
You can use try/except in handler() and dispatch the exception whatever you
want.
It doesn't require a new asyncio version, debug-only flag, etc.
--
___
Python tracker
<https://bugs.python.org/is
Andrew Svetlov added the comment:
Agree, not a bug.
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
This is a deliberate decision.
An exception in handling one client connection should not break another
connected client.
--
___
Python tracker
<https://bugs.python.org/issue42
Andrew Svetlov added the comment:
Thanks for your help!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
New changeset 86150d39c888579b65841f4391d054b7b3eff9f2 by Yurii Karabas in
branch 'master':
bpo-42392: Remove deprecated loop parameter from docs (GH-23552)
https://github.com/python/cpython/commit/86150d39c888579b65841f4391d054
Andrew Svetlov added the comment:
You are right.
--
___
Python tracker
<https://bugs.python.org/issue41879>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Svetlov added the comment:
New changeset 74311aeb45b52cc145d27d9fca99f01874d6882d by Soumendra Ganguly in
branch 'master':
bpo-41818: Fix test_master_read() so that it succeeds on all platforms that
either raise OSError or return b"" upon reading from mas
Andrew Svetlov added the comment:
Both mentioned links have the correct code.
They use sync __aiter__ and async __anext__
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bug
Change by Andrew Svetlov :
--
assignee: -> docs@python
components: +Documentation -macOS
nosy: +docs@python
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.8
___
Python tra
Andrew Svetlov added the comment:
Fixing a non-broken thing is not a world-class idea, I think.
--
___
Python tracker
<https://bugs.python.org/issue41
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 df6c8bcffef3380869c8f76317610ce452880b25 by Miss Islington (bot)
in branch '3.9':
bpo-34215: Clarify IncompleteReadError message when "expected" is None
(GH-21925) (GH-23539)
https://github.com/p
Andrew Svetlov added the comment:
New changeset d41ec65ab7411e877ca33d05e8c900feca530635 by Zackery Spytz in
branch 'master':
bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)
https://github.com/python/cpython/commit/d41ec65ab7411e877ca33d05e8c900
Andrew Svetlov added the comment:
New changeset 4498e98a6bdf017d3b65fa679baf4c797909beb6 by Miss Islington (bot)
in branch '3.8':
bpo-34215: Clarify IncompleteReadError message when "expected" is None
(GH-21925) (#23540)
https://github.com/p
Andrew Svetlov added the comment:
Can we close the issue?
--
nosy: +asvetlov
___
Python tracker
<https://bugs.python.org/issue41756>
___
___
Python-bugs-list m
Change by Andrew Svetlov :
--
versions: +Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.org/issue34215>
___
___
Python-bugs-list mailin
Andrew Svetlov added the comment:
New changeset 8085f742f4adfbc85f13fc734dfab036aa23acfb by Zackery Spytz in
branch 'master':
bpo-34215: Clarify IncompleteReadError message when "expected" is None
(GH-21925)
https://github.com/python/cpython/commit/8085f742f4adfbc85f13
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Fixed by #42392
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
superseder: -> remove the deprecated 'loop' parameter asyncio API
versions: +Python 3.10 -Python 3.9
Change by Andrew Svetlov :
--
title: remove the 'loop' parameter from __init__ in all classes in
asyncio.locks -> remove the deprecated 'loop' parameter asyncio API
___
Python tracker
<https://
Andrew Svetlov added the comment:
Partially addressed by https://github.com/python/cpython/pull/21735
--
___
Python tracker
<https://bugs.python.org/issue42
Change by Andrew Svetlov :
--
resolution: -> wont fix
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue42466>
___
___
Andrew Svetlov added the comment:
New changeset e4fe303b8cca525e97d44e80c7e53bdab9dd9187 by Yurii Karabas in
branch 'master':
bpo-42392: Remove loop parameter from asyncio.tasks and asyncio.subprocess
(GH-23521)
https://github.com/python/cpyt
Andrew Svetlov added the comment:
New changeset f5a19ead4ba8c81cc27d5a530f830f4709ce240e by Soumendra Ganguly in
branch 'master':
bpo-41818: Make test_openpty() avoid unexpected success due to number of rows
and/or number of columns being == 0. (GH-23526)
https://github.com/pyth
Andrew Svetlov added the comment:
Because it did work in a gray area.
The finalization logic has slightly changed, some tricks that were working
before now fails.
Sure, other undocumented tricks start working :)
The rule of thumb: please stop and close the asyncio loop before exiting the
Andrew Svetlov added the comment:
Because you have `test.start()` and immediately finish the script.
The interpreted goes to *shutdown* state and implicitly waits for `test.join()`
because the test thread is not a daemon.
--
___
Python tracker
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10 -Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python
3.9
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
New changeset e3ef4d7f653976ac0ccacc4e3fde06bf0e0f139b by Alex Grönholm in
branch 'master':
bpo-41332: Added missing connect_accepted_socket() to AbstractEventLoop
(GH-21533)
https://github.com/python/cpython/commit/e3ef4d7f653976ac0ccacc4e3fde06
Andrew Svetlov added the comment:
You are right, but the existing inheritance is also correct (while a little
redundant).
Sorry, I don't think we should do anything: don't fix if not broken.
--
resolution: -> not a bug
stage: -> resolved
status
Andrew Svetlov added the comment:
Pull Request is welcome!
--
___
Python tracker
<https://bugs.python.org/issue42347>
___
___
Python-bugs-list mailing list
Unsub
Andrew Svetlov added the comment:
Pull Request https://github.com/python/cpython/pull/23520/ applies the
discussed change to both asyncio and concurrent.futures.
I did the minimally invasive change, libraries still use `asyncio.TimeoutError`
and `concurrent.futures.TimeoutError` internally
Change by Andrew Svetlov :
--
pull_requests: +22404
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23520
___
Python tracker
<https://bugs.python.org/issu
Change by Andrew Svetlov :
--
components: +Library (Lib), asyncio
___
Python tracker
<https://bugs.python.org/issue42413>
___
___
Python-bugs-list mailin
Change by Andrew Svetlov :
--
title: Replace custom exception socket.timeout with TimeoutError -> Replace
custom exceptions for timeouts with TimeoutError
___
Python tracker
<https://bugs.python.org/issu
Andrew Svetlov added the comment:
Your snippet exits just after starting.
`getaddrinfo()` is called at the interpreter shutdown state.
I'm not sure that do you expect to get here. We can put some effort and raise
an error with another message but cannot make the example working.
I su
Andrew Svetlov added the comment:
A few functions in `tasks.py` a left and documentation should be updated.
--
___
Python tracker
<https://bugs.python.org/issue42
Andrew Svetlov added the comment:
New changeset f533cb80cbbb7acdf9ce1978cfba095ce5eeedaa by Yurii Karabas in
branch 'master':
bpo-42392: Remove loop parameter from asyncio.streams (GH-23517)
https://github.com/python/cpython/commit/f533cb80cbbb7acdf9ce1978cfba09
Andrew Svetlov added the comment:
I think the deprecation of `set_event_loop()` is a good idea.
The function is not required by `asyncio.run()` implementation.
--
___
Python tracker
<https://bugs.python.org/issue39
Andrew Svetlov added the comment:
Don't get me wrong.
I don't want to put my vote in this hot discussion but mention my use case.
test.support can solve my need.
On another hand, very many Python batteries exist to solve third-party needs
and are not required by CPython itself.
Andrew Svetlov added the comment:
New changeset 87f7ab5359bc12eeb858272b7bd58e132cb9c176 by Andrew Svetlov in
branch 'master':
bpo-41818: test_openpty succeed on Gentoo, don't expect to fail on this
platform (GH-23514)
https://github.com/python
Andrew Svetlov added the comment:
I just needed such functionality for PTY tests:
https://github.com/python/cpython/pull/23514
--
nosy: +asvetlov
___
Python tracker
<https://bugs.python.org/issue28
Andrew Svetlov added the comment:
https://github.com/python/cpython/pull/23514 has the fix, waiting for all
buildbots finish before pressing "Merge" button.
Gentoo bots are green.
--
___
Python tracker
<https://bugs.python.o
Change by Andrew Svetlov :
--
pull_requests: +22401
pull_request: https://github.com/python/cpython/pull/23514
___
Python tracker
<https://bugs.python.org/issue41
Andrew Svetlov added the comment:
New changeset c13d89955d9a2942c6355d6839d7096323244136 by Soumendra Ganguly in
branch 'master':
bpo-41818: Updated tests for the standard pty library (GH-22962)
https://github.com/python/cpython/commit/c13d89955d9a2942c6355d6839d709
Andrew Svetlov added the comment:
> Should I create a separate issue for every PR or they all can be done in the
> scope of this PR (we can update issue title to match what was done)?
Up to you, I don't think it really matters.
--
___
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:
New changeset 0ec34cab9dd4a7bcddafaeeb445fae0f26afcdd1 by Yurii Karabas in
branch 'master':
bpo-42392: Remove loop parameter form asyncio locks and Queue (#23420)
https://github.com/python/cpython/commit/0ec34cab9dd4a7bcddafaeeb445fae
Andrew Svetlov added the comment:
"got Future attached to a different loop" means exactly what
it says: you create a future object in one loop but awaits it in the different
one. This is a programming error.
Most likely the error in your script, not in mqtt and definitely not
Andrew Svetlov added the comment:
Transferring the loop instance between threads is not safe. You should create a
loop and after that call run_forever() in the same thread.
Or, even better, call asynxio.run() in a thread.
--
___
Python tracker
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10 -Python 3.4
___
Python tracker
<https://bugs.python.or
401 - 500 of 2519 matches
Mail list logo