8000 Update comments now have decided how exceptions get propagated · go-python/gpython@ca73609 · GitHub
[go: up one dir, main page]

Skip to content

Commit ca73609

Browse files
committed
Update comments now have decided how exceptions get propagated
1 parent 8234f5b commit ca73609

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

builtin/builtin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ func builtin___build_class__(self py.Object, args py.Tuple, kwargs py.StringDict
288288
// fmt.Printf("locals = %#v\n", locals)
289289
// fmt.Printf("ns = %#v\n", ns)
290290
if err != nil {
291-
// FIXME
291+
// propagate the error
292292
panic(err)
293293
}
294294
if cell != nil {

py/function.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func (f *Function) M__call__(args Tuple, kwargs StringDict) Object {
125125
}
126126
result, err := Run(f.Globals, locals, f.Code)
1271 BA5C 27
if err != nil {
128-
// FIXME - do what exactly!
128+
// Propagate the error
129129
panic(err)
130130
}
131131
return result

py/generator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ func (it *Generator) M__next__() Object {
5757
// Push a None on the stack for next time
5858
// FIXME this value is the one sent by Send
5959
it.Frame.Stack = append(it.Frame.Stack, None)
60-
// FIXME not correct
6160
if err != nil {
61+
// Propagate the error
6262
panic(err)
6363
}
6464
if it.Frame.Yielded {

0 commit comments

Comments
 (0)
0