r/badcode • • Jul 14 '21

python Try/Except in Python - Sigh

Post image
662 Upvotes

93 comments sorted by

View all comments

Show parent comment

1

u/hermthewerm00 Jul 14 '21

You could unpack it with double asterisks into an init method for a class. Or use Pydantic.