3 ms·
Data classes seem pretty neat. I haven't used attrs yet. And I rarely extend namedtuples, but it's nice to have a mechanism to do that built in. breakpoint()
by wyldfire 8y ago
Data classes seem pretty neat. I haven't used attrs yet. And I rarely extend namedtuples, but it's nice to have a mechanism to do that built in.
breakpoint() is certainly more memorable than the current incantation.
- mrfusion 8y agoYes! I’ve never been able to convince anyone to use pdb.settrace. I think they see the pdb and assume there’s a whole new thing they’d have to learn. If I tell them you just call breakpoint() they might be willing to try it out.