python / exceptiongroups

An early draft of a PEP around Exception Groups in Python
22 stars 4 forks source link

High-level outline of the first draft #2

Open 1st1 opened 4 years ago

1st1 commented 4 years ago

@njsmith @ambv feel free to edit this message.


Introduction

This should be a relatively high-level and fun to read section.

Motivation

Here we should talk about exception groups in more detail explaining "why" and "why now".

What does an EG look like?

Then walk through the rationale for these choices:

Working with exception groups

Catching exceptions in ExceptionGroups

Since the design space and trade-offs are super complex, we're leaving a full discussion for a later draft / follow-up PEP.

njsmith commented 4 years ago

Whiteboard image from when Yury and I talked back in September; sketch of PEP outline on the right:

image

njsmith commented 4 years ago

I did an substantial editing pass over Yury's first comment, check it out

njsmith commented 4 years ago

Looking at my notes from September, I made a list of some obscure corners that we'll need to talk about sometime (not necessarily first draft... maybe first draft should at least have a list like this though, to encourage folks to point out any other obscure corners we need to think about?):

njsmith commented 4 years ago

@ambv NB this thread is where a lot of the design issues got hashed out originally, so probably worth reading, and will also probably want to cite in a references section: https://github.com/python-trio/trio/issues/611

njsmith commented 4 years ago

Someone just asked about this in the Trio chat, so I guess I'll check if there are any updates?

ambv commented 4 years ago

I was out on vacation this week but I'll have the first draft up next.

-- Best regards, Łukasz Langa

On 1 Feb 2020, at 02:48, Nathaniel J. Smith notifications@github.com wrote:

 Someone just asked about this in the Trio chat, so I guess I'll check if there are any updates?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

gvanrossum commented 4 years ago

See also https://github.com/python-trio/trio/issues/611