Demo entry 6714445

exp

   

Submitted by anonymous on Feb 13, 2018 at 02:54
Language: Python 3. Code size: 171 Bytes.

def my_gen():
    try:
        yield 'something'
    except ValueError:
        yield 'dealing with the exception'
    finally:
        print('ok let')
g = my_gen()

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).