The truth will set you free 🥲

2 months ago by cm0002 to c/programmer_humor

load all comments
glizzyguzzler 54 points 2 months ago

You can slam semicolons at the ends of lines in Python, interpreter doesn’t care

P sure you can do multiple lines in one line by slamming semicolons too, though idr for sure and I can’t be arsed to check

path: 0 24145321, hotness: undefined, score: 54, children: 4
affenlehrer 13 points 2 months ago

I've done it a lot to add

import pdb; pdb.set_trace()

path: 0 24145321 24148776, hotness: undefined, score: 13, children: 2
lengau 8 points 2 months ago

These days though you can just breakpoint()

path: 0 24145321 24148776 24148924, hotness: undefined, score: 8, children: 0
AVincentInSpace 2 points 2 months ago
try:
    your_entire_program()
except:
    import pdb
    pdb.pm()
path: 0 24145321 24148776 24475969, hotness: undefined, score: 2, children: 0
ZoteTheMighty 7 points 2 months ago

Until my boy black let's you know about his redecoration ideas.

path: 0 24145321 24163632, hotness: undefined, score: 7, children: 0

thanks for using Leebra!

go to feed...