tnuctip

u/tnuctip@mastodonapp.uk
0 posts · 4 comments

Recent posts

No posts.

Recent comments

on Python errors as values · c/python · 1 pts · 2y

@SittingWave @mac

That article isn't really advocating handling _all_ errors as values AFAICS - it just doesn't distinguish between _exceptional_ and _normal but unsuccessful_ paths.

For a wrapper around an HTTP transport, returning HTTP responses instead of raising an exception for stuff like "403 Forbidden" is probably reasonable. Their own example code is full of exceptions, though.