Hacker News new | past | comments | ask | show | jobs | submit login

I use icecream: `ic(debug_expr)`. Not as concise, of course.



Please read the comment below in the gentlest, friendliest tone possible, because my goal is to considerately inform and persuade you, dear writer :)

HTML links make it 10-100x more likely other readers will learn about the thing being mentioned (and thus help increase awareness and adoption of good tools and resources).

https://github.com/gruns/icecream

Example:

    from icecream import ic

    def foo(i):
        return i + 333
    
    ic(foo(123))
Prints

    ic| foo(123): 456


Software library naming has always been terrible and mostly un-searchable, so links definitely help


For people who know how to use search engines, PP's version may be better since it wastes less vertical space on HN.


Thank you! I’ve been trying to remember this package’s name.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: