GNU bug report logs - #70653
[PATCH] Support source line location for Python ExceptionGroup

Previous Next

Package: emacs;

Reported by: ". shynur" <one.last.kiss <at> outlook.com>

Date: Mon, 29 Apr 2024 16:30:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 70653 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: ". shynur" <one.last.kiss <at> outlook.com>, kobarity <kobarity <at> gmail.com>
Cc: 70653 <at> debbugs.gnu.org
Subject: Re: bug#70653: [PATCH] Support source line location for Python
 ExceptionGroup
Date: Mon, 29 Apr 2024 19:48:56 +0300
> From: ". shynur" <one.last.kiss <at> outlook.com>
> Date: Mon, 29 Apr 2024 16:24:10 +0000
> msip_labels: 
> 
> (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
>     +------------------------------------
> ```

Adding kobarity to the discussion.




This bug report was last modified 1 year and 54 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.