Show More
@@ -173,31 +173,25 b' In [24]: %tb' | |||||
173 | SystemExit Traceback (most recent call last) |
|
173 | SystemExit Traceback (most recent call last) | |
174 | <BLANKLINE> |
|
174 | <BLANKLINE> | |
175 | ... in <module> |
|
175 | ... in <module> | |
|
176 | 29 except IndexError: | |||
176 | 30 mode = 'div' |
|
177 | 30 mode = 'div' | |
177 | 31 |
|
|||
178 | ---> 32 bar(mode) |
|
178 | ---> 32 bar(mode) | |
179 | global bar = <function bar at ...> |
|
179 | mode = 'exit' | |
180 | global mode = 'exit' |
|
|||
181 | <BLANKLINE> |
|
180 | <BLANKLINE> | |
182 | ... in bar(mode='exit') |
|
181 | ... in bar(mode='exit') | |
183 | 20 except: |
|
182 | 20 except: | |
184 | 21 stat = 1 |
|
183 | 21 stat = 1 | |
185 | ---> 22 sysexit(stat, mode) |
|
184 | ---> 22 sysexit(stat, mode) | |
186 | global sysexit = <function sysexit at ...> |
|
|||
187 | stat = 2 |
|
|||
188 | mode = 'exit' |
|
185 | mode = 'exit' | |
|
186 | stat = 2 | |||
189 | 23 else: |
|
187 | 23 else: | |
190 | 24 raise ValueError('Unknown mode') |
|
188 | 24 raise ValueError('Unknown mode') | |
191 | <BLANKLINE> |
|
189 | <BLANKLINE> | |
192 | ... in sysexit(stat=2, mode='exit') |
|
190 | ... in sysexit(stat=2, mode='exit') | |
193 | 9 |
|
|||
194 | 10 def sysexit(stat, mode): |
|
191 | 10 def sysexit(stat, mode): | |
195 | ---> 11 raise SystemExit(stat, 'Mode = %s' % mode) |
|
192 | ---> 11 raise SystemExit(stat, 'Mode = %s' % mode) | |
196 | global SystemExit = undefined |
|
|||
197 | stat = 2 |
|
193 | stat = 2 | |
198 | mode = 'exit' |
|
194 | mode = 'exit' | |
199 | 12 |
|
|||
200 | 13 def bar(mode): |
|
|||
201 | <BLANKLINE> |
|
195 | <BLANKLINE> | |
202 | SystemExit: (2, 'Mode = exit') |
|
196 | SystemExit: (2, 'Mode = exit') | |
203 | """ |
|
197 | """ |
General Comments 0
You need to be logged in to leave comments.
Login now