Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd14ce9 commit 04017d1Copy full SHA for 04017d1
vm/eval.go
@@ -769,7 +769,9 @@ func do_BUILD_TUPLE(vm *Vm, count int32) {
769
// Works as BUILD_TUPLE, but creates a set.
770
func do_BUILD_SET(vm *Vm, count int32) {
771
defer vm.CheckException()
772
- vm.NotImplemented("BUILD_SET", count)
+ set := py.NewSetFromItems(vm.frame.Stack[len(vm.frame.Stack)-int(count):])
773
+ vm.DROPN(int(count))
774
+ vm.PUSH(set)
775
}
776
777
// Works as BUILD_TUPLE, but creates a list.
0 commit comments