News for hackers. Stuff that matters.
Re:Icecream: Never use print() to debug again in Python by qwerty456127 on Tuesday March 30, 2021 @03:16AM (#26631956)
> prints both its own arguments and the values of those arguments.

That's not enough.

Almost always I also want the argument type.

Occasionally a unique (i.e. as precise as possible) sortable (i.e. with leading zeros) time stamp also comes useful.

Re:Icecream: Never use print() to debug again in Python by grun on Tuesday March 30, 2021 @01:10PM (#26637285)
This would be great to have.

I don't use types in my Python much. Yet at least.

Can you submit a PR to add this? That'd be awesome.

Re:Icecream: Never use print() to debug again in Python by qwerty456127 on Tuesday March 30, 2021 @07:37AM (#26633401)
> sortable (i.e. with leading zeros) time stamp

Not just with leading zeros but also written in the YYYY-MM-DD-HH-... format.