Commit 4e891e4a authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 7fbd77cb
...@@ -47,8 +47,7 @@ import ( ...@@ -47,8 +47,7 @@ import (
"lab.nexedi.com/kirr/neo/go/zodb/internal/pickletools" "lab.nexedi.com/kirr/neo/go/zodb/internal/pickletools"
) )
// XXX Length is like BTrees.Length.Length. // Length is equivalent of BTrees.Length.Length in BTree/py.
// XXX tests.
type Length struct { type Length struct {
zodb.Persistent zodb.Persistent
...@@ -74,7 +73,7 @@ func (l *lengthState) PySetState(pystate interface{}) (err error) { ...@@ -74,7 +73,7 @@ func (l *lengthState) PySetState(pystate interface{}) (err error) {
return fmt.Errorf("state must be int; got %T", pystate) return fmt.Errorf("state must be int; got %T", pystate)
} }
l.value = int(v) // XXX casting ok? l.value = int(v)
return nil return nil
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment