[Python-Dev] PEP 463: Exception-catching expressions

Chris Angelico rosuav at gmail.com
Thu Feb 27 22:32:00 CET 2014

On Fri, Feb 28, 2014 at 8:29 AM, Chris Angelico <rosuav at gmail.com> wrote:
> @@ -43,6 +43,34 @@
>  * statistics.mean(data) - no way to handle an empty iterator
> +Had this facility existed early in Python's history, there would have been
> +no need to create dict.get() and related methods; the one obvious way to
> +handle an absent key would be to respond to the exception.  One method is
> +written which signal the absence in one way, and one consistent technique

Doh! Typical... I notice the typo only after hitting send. This should
be "which signals". The linked-to draft file has been updated.


More information about the Python-Dev mailing list