logoalt Hacker News

awoimbeeyesterday at 9:28 AM1 replyview on HN

Debugging in python is already so easy with `print(f"{myvar=}")` and `breakpoint()`...


Replies

Hackbratenyesterday at 12:09 PM

This is the correct answer. `ic(foo(123))` can be written as `print(f'{foo(123)=}')` without depending on yet another third-party library which is not pulling its weight.