You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The division of line into 'pieces' in https://github.com/alexmojaki/stack_data will let you do this without having to add extra lines of context for single-line statements.
There's a point in leaving it be though: the standard traceback printouts have only the first line the same way.
I'll look for a way to implement it with this constraints:
no files should be opened and read
no surrounding code is shown (i.e. the function), only the expression/statement
for cases with nested comprehensions and all only the innermost node is printed
I looked through the stack_data code and couldn't understand if there are the relevant functions or code bricks, so I'll repeat my reading. Do you think it is implementable?
Now only the first line in showed.
The text was updated successfully, but these errors were encountered: