10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9524f0b commit a7d0488Copy full SHA for a7d0488
builtin/builtin.go
@@ -3,10 +3,11 @@ package builtin
3
4
import (
5
"fmt"
6
+ "unicode/utf8"
7
+
8
"github.com/ncw/gpython/compile"
9
"github.com/ncw/gpython/py"
10
"github.com/ncw/gpython/vm"
- "unicode/utf8"
11
)
12
13
const builtin_doc = `Built-in functions, exceptions, and other objects.
@@ -277,10 +278,9 @@ func builtin___build_class__(self py.Object, args py.Tuple, kwargs py.StringDict
277
278
} else {
279
ns = py.Call(prep, py.Tuple{name, bases}, mkw).(py.StringDict)
280
}
- // fmt.Printf("Calling %v with %p and %p\n", fn.Name, fn.Globals, ns)
281
+ // fmt.Printf("Calling %v with %v and %v\n", fn.Name, fn.Globals, ns)
282
// fmt.Printf("Code = %#v\n", fn.Code)
- locals := fn.LocalsForCall(py.Tuple{ns})
283
- cell, err := vm.Run(fn.Globals, locals, fn.Code, fn.Closure)
+ cell, err := vm.Run(fn.Globals, ns, fn.Code, fn.Closure)
284
285
// fmt.Printf("result = %#v err = %s\n", cell, err)
286
// fmt.Printf("locals = %#v\n", locals)
0 commit comments