20 Apr
2021
20 Apr
'21
9:47 p.m.
On Wed, Apr 21, 2021 at 7:46 AM Rob Cliffe via Python-ideas
On 20/04/2021 19:23, Pol Welter wrote:
Would it be reasonable to include the line number for the function `foo()` that it resolved the call to? I.e. 'File "<stdin>", line 1, in foo'. And presumably the module name as well. If foo had been imported from a different module instead of defined in the current one, the line number alone would be less helpful.
Maybe the easiest/best way would be to have a reference to the function itself available on the exception object? ChrisA