Re: [Python-Dev] PEP 343 question

2005-06-15 Thread Guido van Rossum
On 6/15/05, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > > In gen.throw(), are all three arguments required? Or do the value and > traceback Nones need to be listed explicitly? > >g.throw(MyException) > > or > >g.throw(MyException, None, None) > > FWIW, I prefer the former. Tha

[Python-Dev] PEP 343 question

2005-06-15 Thread Raymond Hettinger
In gen.throw(), are all three arguments required?  Or do the value and traceback Nones need to be listed explicitly?      g.throw(MyException)   or      g.throw(MyException, None, None)     FWIW, I prefer the former.  That will make throw() as flexible as the raise statement.