Re:Implementing Rust's dbg! in Python
by The_rationalist on Friday December 11, 2020 @01:39PM
(#25389051)
I created a similar macro in C++, it had the ability to show the function name in addition to the file name
[ Parent
| on HN ]
But did it return the value being printed? That's the thing most implementations miss.
Re:Implementing Rust's dbg! in Python
by The_rationalist on Friday December 11, 2020 @04:07PM
(#25390995)
Oh never thought about that use case but I imagine it would have been simple to add