News for hackers. Stuff that matters.
Re:Python errors as values: Comparing useful patterns from R... by avgcorrection on Thursday November 09, 2023 @11:58AM (#38207529)
This topic is explicitly about considering alternatives to the current Pythonic way.
Re:Python errors as values: Comparing useful patterns from R... by dmurray on Thursday November 09, 2023 @12:35PM (#38208077)
The topic is explicitly about writing an SDK for the company's product, which is presumably intended to be imported in customers' code and used alongside hundreds of other libraries.

As such, writing idiomatic code for the language of the SDK really should be a concern, rather than implementing some idiosyncratic half-baked version of Go or Rust error handling in Python.

Re:Python errors as values: Comparing useful patterns from R... by ska on Thursday November 09, 2023 @12:33PM (#38208048)
And GP is pointing out (correctly) that most of the time being idiomatic has more net gain than any putative advantage of the non-idiomatic proposal. Exceptions to this are extremely rare.