New submission from Daniel Pope :
The anext_awaitable object returned by anext(..., default) does not support
.send()/.throw(). It only supports __next__().
So we can pass messages from the suspending coroutine to the event loop but not
from the event loop to the suspending coroutine.
trio
Change by Daniel Pope :
--
keywords: +patch
pull_requests: +15271
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/15595
___
Python tracker
<https://bugs.python.org/issu
New submission from Daniel Pope :
CVEs related to unpickling untrusted data continue to come up a few times a
year:
https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=pickle
This is certainly the tip of the iceberg. In a previous role I noted several
internal services that could be
Change by Daniel Pope :
--
pull_requests: +9414
___
Python tracker
<https://bugs.python.org/issue34272>
___
___
Python-bugs-list mailing list
Unsubscribe:
Daniel Pope added the comment:
I have several suggestions for steps to address this:
1. Don't create reference cycles. TarInfo.tarfile does not appear to be a
documented attribute
(https://docs.python.org/3/library/tarfile.html#tarinfo-objects) and could
perhaps be deleted.
2. Is
New submission from Daniel Pope :
A tarfile.TarFile object open for writing may silently write corrupt tar files
if it is destroyed before being closed.
While explicitly calling close() or using the object as a context manager is
recommended, I would not expect this in basic usage.
There
Daniel Pope added the comment:
This would be a shortcut in the common case that you simply want an idempotent
"make sure this file/symlink is gone" operation.
There are already boolean options to enable idempotent behaviour in several
pathlib implementations, such as mkdir(exi
Change by Daniel Pope :
--
nosy: +lordmauve
___
Python tracker
<https://bugs.python.org/issue33123>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Daniel Pope :
When using pathlib to manipulate paths that may be symlinks or regular files, a
pattern that comes up frequently is this expression:
path.is_symlink() or path.exists()
os.path.lexists(path) can be used for this, but when using pathlib going back
to os.path
New submission from Daniel Pope:
I maintain a library called Pygame Zero which allows beginner programmers to
start writing games without lines of boilerplate importing libraries, creating
event loops and so on.
To support these features, Pygame Zero provides the 'pgzrun' command:
pgzrun
10 matches
Mail list logo