Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
71354250
Commit
71354250
authored
4 years ago
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b353d89c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
wcfs/internal/xbtree.py
wcfs/internal/xbtree.py
+5
-4
No files found.
wcfs/internal/xbtree.py
View file @
71354250
...
...
@@ -33,7 +33,7 @@ It is primarily used to verify ΔBTail in wcfs.
- `AllStructs` generates all possible BTree topology structures with given keys.
Topology encoding
Topology encoding
XXX values
-----------------
Topology encoding provides way to represent structure of a Tree as path-like string.
...
...
@@ -163,12 +163,13 @@ class Tree(object):
# Bucket represents a bucket node.
class
Bucket
(
object
):
# .keyv () of keys
def
__init__
(
b
,
*
keyv
):
# .valuev None | () of values len(.valuev) == len(.keyv)
def
__init__
(
b
,
*
keyv
):
# XXX +values
_assertIncv
(
keyv
)
b
.
keyv
=
tuple
(
keyv
)
def
__hash__
(
b
):
return
hash
(
b
.
keyv
)
return
hash
(
b
.
keyv
)
# XXX +values
def
__ne__
(
a
,
b
):
return
not
(
a
==
b
)
def
__eq__
(
a
,
b
):
...
...
@@ -176,7 +177,7 @@ class Bucket(object):
return
False
return
a
.
keyv
==
b
.
keyv
def
__str__
(
b
):
def
__str__
(
b
):
# XXX +values
return
"B("
+
','
.
join
([
'%s'
%
_
for
_
in
b
.
keyv
])
+
")"
__repr__
=
__str__
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment