Re: Correct traceback for multiline chain of method calling

2021-07-10 Thread Peter Otten
On 09/07/2021 17:29, Артем Комендантян wrote: Hello! There is a code https://pastebin.com/0NLsHuLa. It has a multiline chain of method calling, when some method fails. In python3.7 it fails in a row which corresponds to the failing method, in python3.9 it corresponds to the very first line. Ano

Re: Correct traceback for multiline chain of method calling

2021-07-09 Thread Artem Komendantian
> That line is already there: ># File "/home/komendart/temp/script.py", line 6, in fail ># raise RuntimeError('fail') Probably I should rewrite more concretely. I have such traceback ending for python3.7 # File "script.py", line 15, in main # .fail(True) # File "script.py",

Re: Correct traceback for multiline chain of method calling

2021-07-09 Thread Cameron Simpson
On 09Jul2021 18:29, Артем Комендантян wrote: >There is a code https://pastebin.com/0NLsHuLa. >It has a multiline chain of method calling, when some method fails. In >python3.7 it fails in a row which corresponds to the failing method, in >python3.9 it corresponds to the very first line. > >Another

Correct traceback for multiline chain of method calling

2021-07-09 Thread Артем Комендантян
Hello! There is a code https://pastebin.com/0NLsHuLa. It has a multiline chain of method calling, when some method fails. In python3.7 it fails in a row which corresponds to the failing method, in python3.9 it corresponds to the very first line. Another similar example is https://pastebin.com/2P9