A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-August/102868.html below:

[Python-Dev] #2651 - KeyError does not round trip strings

[Python-Dev] #2651 - KeyError does not round trip strings [Python-Dev] #2651 - KeyError does not round trip stringsAntoine Pitrou solipsis at pitrou.net
Thu Aug 5 00:38:52 CEST 2010
On Thu, 5 Aug 2010 07:57:07 +1000
Nick Coghlan <ncoghlan at gmail.com> wrote:
> 
> +1 on what Fred said (i.e. post-moratorium, add a keyword-only "key"
> argument to KeyError, set "e.key" only if that argument is supplied,
> update the standard library to supply it and use a default message of
> "'Key not found: %r' % key" if the key argument is supplied without an
> explicit message). Also +1 for doing the equivalent with
> AttributeError and an "attr" keyword only argument.

Keyword-only arguments are rather annoying to use from C code, though.

Regards

Antoine.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4