News for hackers. Stuff that matters.
Re:Python 3.11: “Zero cost” exception handling by zohch on Wednesday October 06, 2021 @09:40AM (#28773046)
> Right, but the better way to actually write this is something like

Maybe for some cases, but it does not do the exact same thing, see the comment here: https://stackoverflow.com/a/29455777/1598080

And if we are talking about idiomatic, I think it is maybe a stretch to count this as idiomatic for Python, but given it is documented for Django I think it is fair to call it idiomatic for Django.

There are no comments on this comment yet.