[issue44963] anext_awaitable is not a collections.abc.Generator

2021-08-20 Thread Daniel Pope
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

[issue37977] Big red pickle security warning should stress the point even more

2019-08-29 Thread Daniel Pope
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

[issue37977] Big red pickle security warning should stress the point even more

2019-08-29 Thread Daniel Pope
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

[issue34272] Reorganize C API tests

2018-10-24 Thread Daniel Pope
Change by Daniel Pope : -- pull_requests: +9414 ___ Python tracker <https://bugs.python.org/issue34272> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34662] tarfile.TarFile may write corrupt files if not closed

2018-09-13 Thread Daniel Pope
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

[issue34662] tarfile.TarFile may write corrupt files if not closed

2018-09-13 Thread Daniel Pope
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

[issue33123] Path.unlink should have a missing_ok parameter

2018-07-17 Thread Daniel Pope
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

[issue33123] Path.unlink should have a missing_ok parameter

2018-07-17 Thread Daniel Pope
Change by Daniel Pope : -- nosy: +lordmauve ___ Python tracker <https://bugs.python.org/issue33123> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34137] Add Path.lexist() to pathlib

2018-07-17 Thread Daniel Pope
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

[issue24718] Specify interpreter when running in IDLE

2015-07-25 Thread Daniel Pope
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