Contact me: hankecnc@gmail.com

python hal 模块在 master 分支中严重损坏 #43

推推 grbl 3年前 (2023-01-29) 446次浏览
关闭
jepler 打开了这个问题 2016 年 3 月 10 日 · 0 条评论

注释

python hal 模块在 master 分支中严重损坏 #43
成员

原始报告的代码在 2.7.4 中有效,但在 ja12 中无效。

我在交互式运行的 master 分支中重现了相同的错误消息:

>>> import hal
>>> c = hal.component("bob")
>>> c.newparam("g", hal.HAL_FLOAT, hal.HAL_RW)
>>> c['g'] = 1.0
SystemError: null argument to internal routine

我强烈怀疑这是由2b6c8ad引入的(“halmodule:factor out to/from python functions”)但我还没有测试这个理论。