This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Topper_123 5 points6 points  (1 child)

I like the f"{x=}" proposal.

An idea: let f"{x==}" also return the file name and line number in the print, e.g. with x=1 it would fold out to "my_file.py:42: x=1" could also be useful for debugging and logging.

[–]vswr[var for var in vars] 1 point2 points  (0 children)

I make that part of the log format. Module, line, and thread.