Andrew Dailey added the comment:
I'm glad that the info I provided was helpful! I'll go ahead and create another
issue for the misleading docs surrounding SSLContext.sni_callback. Thanks for
looking into this and coming up with a fix so quickly.
I do have one more question: d
New submission from Andrew Dailey :
Hello,
The documentation for SSLContext.sni_callback [0] seems to incorrectly describe
the information available at that stage of the TLS handshake.
According to the docs:
Due to the early negotiation phase of the TLS connection, only limited methods
and
Change by Andrew Dailey :
--
nosy: +christian.heimes
___
Python tracker
<https://bugs.python.org/issue43582>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Dailey added the comment:
Yea, I'm still on the hunt for a better way to solve my primary problem: detect
an acme-tls/1 ALPN protocol request during the TLS handshake so that I can swap
out the context to one with the cert chain that Let's Encrypt is expecting to
see.
It
Andrew Dailey added the comment:
Yea, I noticed that through some of my digging. The ALPN callback is used to
implement SSLContext.set_alpn_protocols() but full control of the callback
isn't exposed. Aside from adjusting how the ALPN callback used, do you know of
any other way to
Andrew Dailey added the comment:
Okay, that makes sense. I appreciate the overview! What do you feel is the best
way to "solve" this issue, then? Should the docs be updated to reflect the fact
that ALPN info isn't available in the sni_callback? Or should some code be
modif
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
Andrew Ushakov added the comment:
Just tested again:
D:\Downloads>py
Python 3.9.4 (tags/v3.9.4:1f2e308, Apr 4 2021, 13:27:16) [MSC v.1928 64 bit
(AM
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 Duncan added the comment:
I just ran into and fixed (thanks to itamarst's blog post) a problem likely
related to this.
Multiprocessing workers performing work and sending a logging message back with
success/fail info. I had a few intermittent deadlocks that became a recu
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
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
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 :
--
pull_requests: +24526
pull_request: https://github.com/python/cpython/pull/25842
___
Python tracker
<https://bugs.python.org/issue44
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 :
--
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue41756>
___
___
Pyth
New submission from Andrew Johnson :
Hi,
I'm loading multiple files in same convention - same filename, as a part of
creating a build system. I can compare the case to the loading multple
configuration files for various plugins in the application, the file contents
of multiple files
New submission from Andrew C :
Hello,
When given a `Field` on a Dataclass, the `__repr__` throws an infinite
recursive error when the data type is bytes.
In the `Field` class, the __repr__ is as follows:
```
def __repr__(self):
return (
'Field('
Change by Andrew Svetlov :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
Andrew Aladjev added the comment:
Hello. I've received more problems with pickle generation, reviewed source
code, invented better bike for solving it. So I can provide full description of
this issue and reduce other developers time on debugging.
Problem:
1. Martin v. Löwis intro
Andrew Nelson added the comment:
Just to mention that we have seen similar issues whilst importing scipy in a
multiprocessing context.
See https://github.com/scipy/scipy/issues/11479 and
https://stackoverflow.com/questions/68911221/python-runtimeerror-dictionary-changed-size-during-iteration
New submission from Andrew Suttle :
Using the format option for Python logging works fine on all windows machines:
logging.basicConfig(filename='log.log', encoding='utf-8',
level=logging.DEBUG,format='%(asctime)s : %(message)s ')
But error occurs on Linux mint
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 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 Jewett added the comment:
After posting that, I noticed that the second example I listed in my previous
post (a language where words contain any non-whitespace, non-parenthesis
character) can now be implemented in the current version of shlex.py by setting
"whitespace_true
Andrew Jewett added the comment:
Alright. I'll think about it a little more and post my suggestion there,
perhaps. Thanks Victor.
--
___
Python tracker
<https://bugs.python.org/i
Andrew Svetlov added the comment:
Thanks, guys!
--
___
Python tracker
<https://bugs.python.org/issue45416>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 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
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
New submission from andrew cooke :
The code below, when invoked with -h, prints:
(.env) [andrew@localhost py]$ python -m tests_sa.argparse_bug -h
usage: argparse_bug.py [-h] (-a A | [-b B | -c C)]
options:
-h, --help show this help message and exit
-a A
-b B
-c C
where the final two
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:
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 Ushakov added the comment:
Is the missed api-ms-win-core-path-l1-1.0.dll library the only reason of the
Python 3.9 and 3.10 incompatibility with Windows 7? I am asking because I just
found replacement of this dll, compatible with Windows 7:
https://github.com/nalexandru/api-ms-win
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:
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:
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 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 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 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
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 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 :
--
versions: +Python 3.11 -Python 3.7
___
Python tracker
<https://bugs.python.org/issue28806>
___
___
Python-bugs-list mailin
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 :
--
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:
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
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
Change by Andrew Svetlov :
--
versions: +Python 3.11
___
Python tracker
<https://bugs.python.org/issue45568>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 46c8d915715aa2bd4d697482aa051fe974d440e1 by 180909 in branch
'main':
bpo-19460: Add test for MIMENonMultipart (GH-29817)
https://github.com/python/cpython/commit/46c8d915715aa2bd4d697482aa051fe974d440e1
--
nosy:
Andrew Svetlov added the comment:
New changeset 2c398a5acf85d1bbc5796f3385972d0759b90e54 by Miss Islington (bot)
in branch '3.10':
[3.10] bpo-19460: Add test for MIMENonMultipart (GH-29817) (GH-29818)
https://github.com/python/cpython/commit/2c398a5acf85d1bbc5796f3385972d
Andrew Svetlov added the comment:
New changeset 209cec8a2a2e845df5af764a9171af05a2a4c8e3 by Miss Islington (bot)
in branch '3.9':
[3.9] bpo-19460: Add test for MIMENonMultipart (GH-29817) (#29819)
https://github.com/python/cpython/commit/209cec8a2a2e845df5af764a9171af
Andrew Svetlov added the comment:
New changeset 934a82623793e9d52b85f74d5395d65927a52205 by Sam Bull in branch
'main':
bpo-37658: Actually return result in race condition (GH-29202)
https://github.com/python/cpython/commit/934a82623793e9d52b85f74d5395d6
Andrew Svetlov added the comment:
Thanks for the report.
Atomic copy (`list(self.processes.values()`) should fix the bug, sure.
I doubt if writing a reliable test for this situation is possible;
multithreading is hard.
I think we can accept a patch without a test but with an inline comment
Change by Andrew Svetlov :
--
assignee: -> asvetlov
___
Python tracker
<https://bugs.python.org/issue43498>
___
___
Python-bugs-list mailing list
Unsubscrib
Andrew Svetlov added the comment:
New changeset 7431448b817d3bf87f71661cf8f3d537807ab2e2 by Jakub Kulík in branch
'main':
bpo-43498: Fix dictionary iteration error in _ExecutorManagerThread (GH-24868)
https://github.com/python/cpython/commit/7431448b817d3bf87f71661cf8f3d5
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
versions: +Python 3.10, Python 3.9
___
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 99a9b343316172f049a52b39a406f0c0c42c106f by Miss Islington (bot)
in branch '3.9':
bpo-37658: Actually return result in race condition (GH-29202) (GH-29832)
https://github.com/python/cpython/commit/99a9b343316172f049a52b39a406f0
Andrew Svetlov added the comment:
IMHO, asyncio.set_event_loop() and
policy.get_event_loop()/policy.set_event_loop() are not deprecated by oversight.
In IPython, I think you could use new_event_loop() for getting a new loop
instance.
Then, save the loop reference somewhere as a direct
Andrew Svetlov added the comment:
Ages ago, get_event_loop() did not return the current running loop if called
from async function context; it returned a loop instance registered with
previous set_event_loop(...) call instead.
Later we fixed get_event_loop() behavior in 3.5.4 IIRC and added
Andrew Svetlov added the comment:
New changeset f27bef30438d2f07f19de91e021f34b77ccc4b20 by Rob in branch 'main':
bpo-45896: Fix docs default asyncio event loop on Windows (GH-29857)
https://github.com/python/cpython/commit/f27bef30438d2f07f19de91e021f34
Andrew Svetlov added the comment:
New changeset 4203a5d1918ca874e305806b787e3c8c6fc35e3e by Miss Islington (bot)
in branch '3.9':
bpo-45896: Fix docs default asyncio event loop on Windows (GH-29857) (GH-29878)
https://github.com/python/cpython/commit/4203a5d1918ca874e305806b787e3c
Andrew Svetlov added the comment:
New changeset e99c5e039b380199843db4e06974883d9f3ddad0 by Miss Islington (bot)
in branch '3.10':
bpo-45896: Fix docs default asyncio event loop on Windows (GH-29857) (GH-29877)
https://github.com/python/cpython/commit/e99c5e039b380199843db4e0697488
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
New submission from Andrew Lin :
This PR obtains a performance improvement in the random module by removing a
cached attribute lookup in Random._randbelow_with_getrandbits() that costs time
on average. In the best cases (on my machine) I get 10% improvement for
randrange(), 7% for shuffle
Andrew Lin added the comment:
Timings are unaffected by updating to non-walrus, so I'll do so in the PR.
Using _randbelow_without_getrandbits() I get 5% improvement to sample([None] *
2047, 50); 6% to shuffle([None] * 2000); and approximately 6% to randrange()
for any number signific
Andrew Lin added the comment:
I finally cleaned up my benchmark script, which feels like a big hack. I
should really learn to use pyperf or something.
Inspired by your comment about 3.8 on the Mac I tried my Ubuntu installation's
stock 3.8. I get a small degradation (~0.5%) for powe
Change by Andrew Lin :
Added file: https://bugs.python.org/file50473/randbelow_timing.py
___
Python tracker
<https://bugs.python.org/issue45976>
___
___
Python-bug
Andrew Svetlov added the comment:
The reproducer is absent, closing
--
nosy: +asvetlov
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Lin added the comment:
E[calls] reduces down to 2**k / n. I only just realized from working that out
that it therefore doesn't quite vary linearly over [2**k, 2**(k+1)), although
by what weight one wants to average I couldn't say.
Personally if the change adverse
Andrew Svetlov added the comment:
Good point.
Currently, asyncio lock objects don't provide a strong FIFO guarantee.
In a tight loop, a task can re-acquire the lock just after releasing even if
there are pending waiters that were scheduled earlier. It's true also for Lock,
C
Andrew Svetlov added the comment:
Or, maybe, there is a way to do everything without changing public API.
The idea is: _wake_up_next can create a future which is set by *waked up task*
on its acquiring. acquire method should wait for this future first before
entering in `while self._value
Andrew Svetlov added the comment:
New changeset 265918bb1d782ab85c7dbc835eb62d6cfc2145b7 by Kumar Aditya in
branch 'main':
bpo-23819: asyncio: Replace AssertionError with TypeError where it makes sense
(GH-29894)
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:
Agree, thanks!
--
status: pending -> open
___
Python tracker
<https://bugs.python.org/issue41174>
___
___
Python-bugs-lis
Andrew Svetlov added the comment:
The main branch has a dozen PyImport_ImportModuleNoBlock() usages.
Would you replace them also?
--
nosy: +asvetlov
versions: +Python 3.11 -Python 3.10
___
Python tracker
<https://bugs.python.org/issue45
Change by Andrew Svetlov :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
pull_requests: +28213
pull_request: https://github.com/python/cpython/pull/29990
___
Python tracker
<https://bugs.python.org/issue45
Andrew Svetlov added the comment:
Pablo, I think https://github.com/python/cpython/pull/29990 should be merged as
well before the issue closing.
It covers another execution branch.
--
resolution: fixed ->
status: closed -> open
___
Change by Andrew Svetlov :
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue45813>
___
___
Python-bugs-list
Andrew Svetlov added the comment:
New changeset 3cb9731b7e59b0df9a7a9ab6b7746a669958b693 by Jacob Hayes in branch
'main':
bpo-45359: Support TopologicalSorter type subscript (GH-28714)
https://github.com/python/cpython/commit/3cb9731b7e59b0df9a7a9ab6b7746a669958b693
-
Andrew Svetlov added the comment:
The new feature is applied to Python 3.11 only
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: -Python 3.10, Python 3.9
___
Python tracker
<https://bug
Andrew Svetlov added the comment:
`if TYPE_CHECKING:` is a good choice, it works fine just now.
`from __future__ import annotations` is another alternative.
I don't see a reason for REMOVING already existing and correct annotations from
typ
New submission from Andrew Ushakov :
Not very long unicode comment #, space and then 170 or more repetitions of the
utf8 symbol ░ (b'\xe2\x96\x91
Andrew Svetlov added the comment:
Thanks for the report!
I would say that deriving from the future class without calling
super().__init__() is an error.
After fixing this the snippet raises expected "RuntimeError: yield was used
instead of yield from in task&q
Andrew Svetlov added the comment:
Looks like get_future_loop() function misses ENSURE_FUTURE_ALIVE macro call.
--
___
Python tracker
<https://bugs.python.org/issue38
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +16654
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/17144
___
Python tracker
<https://bugs.python.org/issu
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Sorry for the late review.
PidfdChildWatcher should be enumerated in unix_events.py:__all__ to make the
class visible by asyncio import rules.
Kyle, would you make a post-fix PR?
--
resolution: fixed ->
status: closed ->
Andrew Svetlov added the comment:
To be clear: I mean that FastChildWatcher is safe only if all process's code
spaws subprocesses by FastChildWatcher.
If ProcessPoolExecutor or direct subprocess calls are used the watcher is
unsafe.
If some C extension spawns new processes on its own
Andrew Svetlov added the comment:
> So are we at least in agreement for starting with deprecating
> FastChildWatcher?
I think so. It will take a long before we remove it though.
--
___
Python tracker
<https://bugs.python.org/i
Andrew Ushakov added the comment:
> On Windows, with 3.7, 3.8.0, and master, neither the posted comment, the one
> in the file, not the initial statement in #34979 give the SyntaxError.
Just tried again on my corporate laptop with the downloaded file from this site:
Microsoft W
Andrew Svetlov added the comment:
Is anything left to be done for the issue?
--
nosy: +asvetlov
versions: +Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.org/issue38
Andrew Svetlov added the comment:
I see two proposals:
1. Change the default for reuse_address flag
2. Document existing behavior as dangerous.
What is the suggestion? Pick one, please :)
--
___
Python tracker
<https://bugs.python.org/issue37
Andrew Svetlov added the comment:
>From my understanding, Yuri doesn't want to improve the existing streaming API
>but invent something blessing new.
The improvement like you proposed has a very low chance to be accepted.
--
___
Pyt
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.9 -Python 3.6
___
Python tracker
<https://bugs.python.or
701 - 800 of 3160 matches
Mail list logo