[Tutor] Terminology question

Jim Mooney Py3.4.3winXP cybervigilante at gmail.com
Sat May 16 18:56:33 CEST 2015


On 15 May 2015 at 22:45, Steven D'Aprano <steve at pearwood.info> 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


More information about the Tutor mailing list