Python exceptions considered an anti-pattern
sobolevn.me
Python exceptions considered an anti-pattern
1–10 of 69 posts
Re: Python exceptions considered an anti-pattern
#2Re: Python exceptions considered an anti-pattern
#3The interesting bit starts at https://sobolevn.me/2019/02/python-exceptions-considered-an-... , where it introduces a library for wrapping errors in return types, even if it got little to do with the headline. IMHO the article would be stronger with a title about what it presents and without the first half.
Re: Python exceptions considered an anti-pattern
#4The interesting bit starts at https://sobolevn.me/2019/02/python-exceptions-considered-an-... , where it introduces a library for wrapping errors in return types, even if it got little to do with the headline. IMHO the article would be stronger with a title about what it presents and without the first half.
Thanks, my idea was to state the problem and propose a solution. Hope, that you will find `returns` helpful.
Re: Python exceptions considered an anti-pattern
#5The interesting bit starts at https://sobolevn.me/2019/02/python-exceptions-considered-an-... , where it introduces a library for wrapping errors in return types, even if it got little to do with the headline. IMHO the article would be stronger with a title about what it presents and without the first half.
Thanks, my idea was to state the problem and propose a solution. Hope, that you will find `returns` helpful.
Re: Python exceptions considered an anti-pattern
#6Re: Python exceptions considered an anti-pattern
#7- imo it effectively requires using type checking (mypy)
- Too out of place with the rest of the python ecosystem (even if I like something, I'd rather not force non-standard practices on others dealing with my code)
Re: Python exceptions considered an anti-pattern
#8Re: Python exceptions considered an anti-pattern
#9We should have language-level mechanisms for being explicit about what's supposed to happen when unexpected situations happen.
Re: Python exceptions considered an anti-pattern
#10Since using Rust, I've longed for this in Python but - imo it effectively requires using type checking (mypy) - Too out of place with the rest of the python ecosystem (even if I like something, I'd rather not force non-standard practices on others dealing with my code)