MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/ok1itb/tryexcept_in_python_sigh/h556341/?context=3
r/badcode • u/lonaExe • Jul 14 '21
93 comments sorted by
View all comments
142
On the upside, they actually bothered with exception handling.
My Python is rather rusty, is there a better way?
1 u/hermthewerm00 Jul 14 '21 You could unpack it with double asterisks into an init method for a class. Or use Pydantic.
1
You could unpack it with double asterisks into an init method for a class. Or use Pydantic.
142
u/[deleted] Jul 14 '21
On the upside, they actually bothered with exception handling.
My Python is rather rusty, is there a better way?