[Python-3000] exceptions with keyword arguments
Josiah Carlson
jcarlson at uci.edu
Thu May 18 22:02:04 CEST 2006
"tomer filiba" <tomerfiliba at gmail.com> wrote:
> On 5/17/06, Brett Cannon <brett at python.org> wrote:
> > And I brought this up with Guido once and he was not enthusiastic
> > about it. Basically, keep exceptions simple. They are important
> > and basic enough to keep it simple. If you want fancier support,
> > subclass Exception and add the support you want.
>
> well, if guido pronounced on it than i guess it's settled, but why do you
> condsider *args to be simple and **kwargs not as simple? don't you
> think "ex.filename" is simpler/clearer than "ex[1]"?
From what I understand of Brett's post, ex[1] won't be available anymore
either.
While it would be convenient for inspecting exceptions when they are
caught via ex.attr, creating exceptions with keyword arguments seems
like it would be a bit if a pain.
- Josiah
More information about the Python-3000
mailing list