all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#70653: [PATCH] Support source line location for Python ExceptionGroup
@ 2024-04-29 16:24 . shynur
  2024-04-29 16:31 ` bug#70653: #70653 PATCH here . shynur
  2024-04-29 16:48 ` bug#70653: [PATCH] Support source line location for Python ExceptionGroup Eli Zaretskii
  0 siblings, 2 replies; 11+ messages in thread
From: . shynur @ 2024-04-29 16:24 UTC (permalink / raw)
  To: 70653

(This patch is written for Inferior Python mode.)

The original behavior considered only the case of
single exception:

```
Traceback (most recent call last):
  File "<string>", line 17, in __PYTHON_EL_eval
  File "c:/Users/shynur/Desktop/Python/a.py", line 1, in <module>
    raise Exception
Exception
```

In the above example, one can click at the 3rd line to jump
to the corresponding source line.  This patch adds support
for the following case (i.e., the built-in ExceptionGroup):

```
+ Exception Group Traceback (most recent call last):
  |   File "<string>", line 17, in __PYTHON_EL_eval
  |   File "c:/Users/shynur/Desktop/Python/a.py", line 1, in <module>
  |     raise ExceptionGroup("", [Exception()])
  | ExceptionGroup:  (1 sub-exception)
  +-+---------------- 1 ----------------
    | Exception
    +------------------------------------
```

--
shynur

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-05-04 11:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-29 16:24 bug#70653: [PATCH] Support source line location for Python ExceptionGroup . shynur
2024-04-29 16:31 ` bug#70653: #70653 PATCH here . shynur
2024-05-02  9:28   ` Eli Zaretskii
2024-04-29 16:48 ` bug#70653: [PATCH] Support source line location for Python ExceptionGroup Eli Zaretskii
2024-04-30  7:27   ` kobarity
2024-04-30 10:24     ` . shynur
2024-05-01  8:16       ` kobarity
2024-05-02  9:36       ` Eli Zaretskii
2024-05-03 11:48         ` shynur .
2024-05-04 11:53           ` Eli Zaretskii
2024-05-02  9:35     ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.