3 ms·
For print debugging in Python I recently discovered a nice little time-saver: the icecream package. Rather than having to type "print( "x: ", x )", you can inst
by Jeff_Brown 6y ago
For print debugging in Python I recently discovered a nice little time-saver: the icecream package. Rather than having to type "print( "x: ", x )", you can instead type type "ic(x)".
[1] https://github.com/gruns/icecream https://github.com/gruns/icecream
- kstrauser 6y agoAlso, “print(f’{x=}’)” without an external dependency.
- Jeff_Brown 6y agoCool! Where can I read about what's going on in that?
- kstrauser 6y agoGo to https://docs.python.org/3/reference/lexical_analysis.html#f-strings https://docs.python.org/3/reference/lexical_analysis.html#f-... and search for “ New in version 3.8: The equal sign '='.”
- deleted 6y ago[deleted]