Fredrik Lundh wrote:
"jfj" <[EMAIL PROTECTED]> wrote:
Wait! second that. We would like to
hmm. are you seconding yourself, and refering to you and yourself as we?
:)
"we" refers to all python users.
no. your foo() function raises B, and is called from the exception
handler in b1. exception han
"jfj" <[EMAIL PROTECTED]> wrote:
> Wait! second that. We would like to
hmm. are you seconding yourself, and refering to you and yourself as we?
> here is another confusing case:
>
> ###
> import sys
>
> class A:
> pass
>
> class B:
> pass
>
> def foo ():
> try:
> raise B
>
jfj wrote:
IMHO, a more clean operation of raise would be either:
1) raise w/o args allowed *only* inside an except clause to
re-raise the exception being handled by the clause.
Wait! second that. We would like to
###
def bar():
raise
def b5():
try:
raise A
e
Hello.
I am a bit confused with 'raise' without any arguments.
Suppose the testcase below (i hope it's correct!):
##
import sys
class A:
pass
class B:
pass
def foo():
try:
raise B
except:
pass
def b1 ():
try:
raise A
except:
foo ()