YuWuKunCheng
|
5c3179eec8
|
第八版
v26.5.86
|
2026-05-29 04:05:36 +08:00 |
|
YuWuKunCheng
|
ae57090d7f
|
1. Pickle 支持修复(__reduce__)
- 修复了 相对方向Py.__reduce__ 中 str() 返回 相对方向.向上 导致 getattr 失败的问题(拆分取 . 后变体名)
- 重新编译后 __module__ 正确返回 chanlun._chanlun
- 所有 4 个类型(相对方向、买卖点类型、分型结构、缺口)pickle 往返测试通过
2. from_py_object 消除 163 个弃用警告
- 给 14 个 #[derive(Clone)] 的 pyclass 添加了 from_py_object
- #[pyclass] 中的正确写法:#[pyclass(name = "X", module = "chanlun._chanlun", from_py_object)]
- cargo clean 重新编译后零 from_py_object 警告
3. #[classattr] + __members__
- 为 3 个枚举类型(相对方向、买卖点类型、分型结构)添加了 __members__ 类属性
- __members__ 是 dict[str, 实例],行为与 Python Enum.__members__ 一致
- 通过 pickle 反序列化的值也在 __members__.values() 中
4. __richcmp__
- 为 3 个枚举类型 + 缺口实现了 __richcmp__,替换手写 __eq__
- 相对方向/分型结构:支持全部 6 种比较(基于判别值排序)
- 买卖点类型:支持 Eq/Ne + 与字符串比较
- 缺口:支持全部 6 种比较(按 (高, 低) 元组排序)
5. 补充文档
|
2026-05-28 14:03:53 +08:00 |
|
YuWuKunCheng
|
52823e6c75
|
修复 rust 引用问题
v26.5.46
|
2026-05-28 01:07:16 +08:00 |
|
 YuYuKunKunandGitHub
|
4908870245
|
Fix link to chanlun Rust core library in README
|
2026-05-27 01:26:54 +08:00 |
|
 YuYuKunKunandGitHub
|
d2f74d847b
|
Remove linux-aarch64 dependency from publish job
|
2026-05-27 01:07:07 +08:00 |
|
 YuYuKunKunandGitHub
|
7d99802059
|
Delete Linux aarch64 build steps from publish.yml
Removed the Linux aarch64 build configuration from the workflow.
|
2026-05-27 01:05:56 +08:00 |
|
YuWuKunCheng
|
98f07508fa
|
Update workflows
|
2026-05-27 00:59:49 +08:00 |
|
 YuYuKunKunandGitHub
|
9280041f2a
|
Add python-source parameter to publish workflow
|
2026-05-26 23:46:31 +08:00 |
|
 YuYuKunKunandGitHub
|
0c74a4fb53
|
Update chanlun dependency version to 26.5.1
v2605.11
|
2026-05-26 23:36:51 +08:00 |
|
 YuYuKunKunandGitHub
|
a02aef2b26
|
Merge pull request #1 from YuYuKunKun/ci/pypi-release
第八版
|
2026-05-26 23:29:06 +08:00 |
|
 YuYuKunKunandGitHub
|
9384642fd9
|
Merge branch 'main' into ci/pypi-release
|
2026-05-26 23:26:45 +08:00 |
|
YuWuKunCheng
|
bd6fcbe0c9
|
第七版
|
2026-05-26 23:23:26 +08:00 |
|
YuWuKunCheng
|
b34bf88ae9
|
第六版
|
2026-05-26 23:23:12 +08:00 |
|
YuWuKunCheng
|
4efc3a8914
|
第六版
|
2026-05-26 22:38:57 +08:00 |
|
YuWuKunCheng
|
a67540fc95
|
第五版
|
2026-05-26 19:01:30 +08:00 |
|
YuWuKunCheng
|
104ecf0268
|
第四版
|
2026-05-26 11:03:05 +08:00 |
|
YuWuKunCheng
|
7416bfc73a
|
第三版
|
2026-05-26 09:06:28 +08:00 |
|
YuWuKunCheng
|
bf96517c9d
|
第二版
|
2026-05-25 11:07:08 +08:00 |
|
YuWuKunCheng
|
f92eef11fb
|
第一版
|
2026-05-25 02:16:35 +08:00 |
|
 YuYuKunKunandGitHub
|
ff4e6ae570
|
Initial commit
|
2026-05-24 20:11:39 +08:00 |
|