8000 PEP 678: simplify specification to use a list by Zac-HD · Pull Request #2456 · python/peps · GitHub
[go: up one dir, main page]

Skip to content

PEP 678: simplify specification to use a list #2456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 24, 2022

Conversation

Zac-HD
Copy link
Contributor
@Zac-HD Zac-HD commented Mar 22, 2022

Following further discussion (a running theme), the pendulum has swung back towards a simpler and less-tightly-specified interface. Loosely, __notes__ will be a list, created on the first call to add_note(), and if it's been messed up by the user we'll raise errors (in add_note()) or print a placeholder message (at display time) as appropriate. This mirrors the existing handling of maybe-not-stringifiable exception instances, and permits all kinds of advanced shennanigans from users (or alternative implementations) who wish to push the system.

In the last few minutes I've also seen new messages about prior art in Tensorflow (a utils.reraise() helper) and circa-2013 discussions on BPO and python-dev, but it's late enough here that I'll push further updates in tomorrow.

@iritkatriel
Copy link
Member

Cool.

In the last few minutes I've also seen new messages about prior art in Tensorflow (a utils.reraise() helper) and circa-2013 discussions on BPO and python-dev, but it's late enough here that I'll push further updates in tomorrow.

We can do that in a separate PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0