Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDILab开源决策智能平台
treevalue
提交
82b722cb
T
treevalue
项目概览
OpenDILab开源决策智能平台
/
treevalue
大约 1 年 前同步成功
通知
3
Star
213
Fork
3
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
treevalue
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
82b722cb
编写于
7月 08, 2022
作者:
HansBug
😆
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
dev(hansbug): update plenty of docs for TreeValue class
上级
6a5b4dd8
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
251 addition
and
171 deletion
+251
-171
docs/source/api_doc/tree/common.rst
docs/source/api_doc/tree/common.rst
+9
-1
docs/source/api_doc/tree/tree.rst
docs/source/api_doc/tree/tree.rst
+1
-1
treevalue/tree/general/general.py
treevalue/tree/general/general.py
+1
-1
treevalue/tree/tree/service.pyx
treevalue/tree/tree/service.pyx
+1
-1
treevalue/tree/tree/tree.pyx
treevalue/tree/tree/tree.pyx
+239
-167
未找到文件。
docs/source/api_doc/tree/common.rst
浏览文件 @
82b722cb
...
...
@@ -6,7 +6,7 @@ treevalue.tree.common
.. _apidoc_tree_common_treestorage:
TreeStorage
-----------
-----------
--
.. autoclass:: TreeStorage
:members: get, get_or_default, pop, pop_or_default, popitem, set, setdefault, del_, contains, size, empty, copy, deepcopy, deepcopyx, dump, deepdump, deepdumpx, jsondumpx, copy_from, deepcopy_from, deepcopyx_from, detach, clear, iter_keys, iter_rev_keys, iter_values, iter_rev_values, iter_items, iter_rev_items
...
...
@@ -16,6 +16,14 @@ TreeStorage
because adding method signatures will significantly decrease running speed.
.. _apidoc_tree_common_create_storage:
create_storage
-------------------
.. autofunction:: create_storage
.. _apidoc_tree_common_raw:
raw
...
...
docs/source/api_doc/tree/tree.rst
浏览文件 @
82b722cb
...
...
@@ -9,7 +9,7 @@ TreeValue
---------------
.. autoclass:: TreeValue
:members: __init__, __getattribute__, __setattr__, __delattr__, __contains__, __repr__, __iter__, __hash__, __eq__, _attr_extern, __len__, __bool__, __str__, __getstate__, __setstate__, get, pop, keys, values, items, __getitem__, __setitem__, __delitem__, _getitem_extern, _setitem_extern, _delitem_extern, popitem, clear, update, setdefault, __reversed__
:members: __init__, __getattribute__, __setattr__, __delattr__, __contains__, __repr__, __iter__, __hash__, __eq__, _attr_extern, __len__, __bool__, __str__, __getstate__, __setstate__, get, pop, keys, values, items, __getitem__, __setitem__, __delitem__, _getitem_extern, _setitem_extern, _delitem_extern, popitem, clear, update, setdefault, __reversed__
, _detach
.. _apidoc_tree_tree_delayed:
...
...
treevalue/tree/general/general.py
浏览文件 @
82b722cb
...
...
@@ -221,7 +221,7 @@ def general_tree_value(base: Optional[Mapping[str, Any]] = None,
- iter: Iterator to walk the given tree, contains 2 items, the 1st one is the full
\
path of the node, the 2nd one is the value.
Examples:
:
Examples:
>>> from treevalue import FastTreeValue, walk
>>> tv1 = FastTreeValue({'a': 1, 'b': 2, 'c': {'x': 2, 'y': 2}})
>>> for k, v in tv1.walk():
...
...
treevalue/tree/tree/service.pyx
浏览文件 @
82b722cb
...
...
@@ -119,7 +119,7 @@ cpdef walk(TreeValue tree):
- iter: Iterator to walk the given tree, contains 2 items, the 1st one is the full
\
path of the node, the 2nd one is the value.
Examples:
:
Examples:
>>> from treevalue import TreeValue, walk
>>> tv1 = TreeValue({'a': 1, 'b': 2, 'c': {'x': 2, 'y': 2}})
>>> for k, v in walk(tv1):
...
...
treevalue/tree/tree/tree.pyx
浏览文件 @
82b722cb
此差异已折叠。
点击以展开。
HansBug
😆
@HansBug
mentioned in commit
be575b76
·
7月 14, 2022
mentioned in commit
be575b76
mentioned in commit be575b766f92afb3e058e115ec01917ec054d7ea
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录