News for hackers. Stuff that matters.
Re:Implementing Rust's dbg! in Python by tpoacher on Friday December 11, 2020 @02:02PM (#25389342)
I dont get, isn't this just grabbing the filename (which has a built-in double underscore file variable), and the line number (e.g. https://code.activestate.com/recipes/145297-grabbing-the-cur...)

not to mention you can run via pdb and display or stop at points of interest.

what am I missing?

Re:Implementing Rust's dbg! in Python by CJefferson on Friday December 11, 2020 @02:03PM (#25389359)
dbg! also prints out both the value of the expression, and the expression itself, so dbg!(x+y) prints 'x+y=3'