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/102881.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 stringsFred Drake fdrake at acm.org
Thu Aug 5 07:35:22 CEST 2010
2010/8/4 Ɓukasz Langa <lukasz at langa.pl>:
> Shall we do an e.index for IndexErrors as well?

I don't recall stumbling over that need, but the parallel makes it
tempting.  I expect is should be a separate patch, though.

Antoine's right about using keyword args from C, though.  I'd expect a
new helper function that handles this specific case, since it's likely
to be common.  Whether it used a keyword are or just performed a
setattr after the exception is created doesn't really matter.


  -Fred

--
Fred L. Drake, Jr.    <fdrake at gmail.com>
"A storm broke loose in my mind."  --Albert Einstein
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