[Python-Dev] RE: PEP-317

Michael Hudson mwh@python.net
Wed, 11 Jun 2003 11:34:28 +0100


Steven Taschuk <staschuk@telusplanet.net> writes:

> That you think this would work supports my claim that the present
> syntax is misleading.  <wink>

While we're at weird exception stuff... while aping bits of the
exception handling code for pypy, I noticed that this should "work",
and indeed it does:

>>> raise ((((Exception,), 'anything'), 'can', 'go'), 'in here'), 'arg'
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
Exception: arg

Any takers for an explanation?

Cheers,
M.

-- 
  ARTHUR:  The ravenous bugblatter beast of Traal ... is it safe?
    FORD:  Oh yes, it's perfectly safe ... it's just us who are in 
           trouble.
                    -- The Hitch-Hikers Guide to the Galaxy, Episode 6