[$] Corner cases and exception types

Post Syndicated from jake original https://lwn.net/Articles/796012/rss

Some unanticipated corner cases with Python’s new “walrus”
operator—described in our Python 3.8
—have cropped up recently. The problematic uses of the operator
will be turned into errors before the final release, but just what
exception should be raised came into question. It seems that the exception
specified in the PEP for the operator may not really be the best choice, as a
recent discussion hashed out.