News for hackers. Stuff that matters.
Re:Python: Uncovering the Overlooked Core Functionalities by hwayne on Monday July 24, 2023 @09:14PM (#36856543)
A couple people already pointed out that you can write `breakpoint()` instead of using `pdb.set_trace()`.

Here's one more trick: you can use `pdb` to run scripts! `python -m pdb foo.py` will run `foo.py` but trigger a breakpoint on the first error.

Re:Python: Uncovering the Overlooked Core Functionalities by tomtom1337 on Tuesday July 25, 2023 @02:37AM (#36858762)
Oh! Thats a really nice one!
Re:Python: Uncovering the Overlooked Core Functionalities by erikvdven on Tuesday July 25, 2023 @06:02PM (#36870254)
That is definitely a neat one! If you are ok with it, I might add that one. I just updated the article already with some of the great comments and tips I recieved over here.