T
11

Took me 4 hours to fix a Python script that just needed a single space added

I was staring at an indentation error for way too long and it turned out Python was reading 'else' as part of a comment because I forgot a space after the hash, has anyone else hit a dumb formatting bug that wasted half a day?
2 comments

Log in to join the discussion

Log In
2 Comments
david123
david12329d ago
Totally. Forgot a colon after a lambda once, wasted an afternoon.
3
tyler_hernandez
I mean, maybe it's just me, but I kind of see that as a rite of passage. "Wasted an afternoon" sounds like you learned something real, you know? I'd rather spend four hours tracking down a stupid colon than have some AI catch it for me and never understand why it matters. The pain of debugging is what makes you actually remember the syntax next time.
3