On 15 May 2015 at 22:45, Steven D'Aprano <[email protected]> wrote:
>
> What does "didn't work" mean? Did your computer crash? Catch fire? A
> completely different error got printed? Something else?
I can see I was marvelously unclear ;') Here is what I meant.
def make_error():
raise ZeroDivisionError('Here I am')
def call_error():
try:
make_error()
except:
print("How do I get the 'Here I am' message to print in the calling
routine?")
>>> call_error()
How do I get the 'Here I am' message to print in the calling routine?
--
Jim
"What a rotten, failed experiment. I'll start over. Maybe dogs instead of
monkeys this time." --God
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor