HoneyBearTech
HoneyBearTech
Thanks for raising this, @markwmuller, and thanks to everyone who added details. The docs were wrong in the way several of you described. They said that in Jupyter all log...
Thanks for the report, @maciejmatczak. I tried your example on current master: after state.persist('pyscript.something_state', default_value=0) the state variable exists straight away with the value 0, and I could not reproduce...
Thanks for the report and the examples, @cjlapao. I tried a setup like yours on current master: a factory defined in modules/test_trigger.py that creates a @state_trigger function, imported into a...
Thanks for the clear examples, @RussEaton. I checked both on current master. The first one, def foo[K](arg: K) -> K: ret: K = arg; return ret, now works and foo(1)...
Thanks @ALERTua. As discussed in the thread, with the current decorators those lines are logged at debug through the logger of the script that defines the function, so they only...
Thanks @shashchatter. To sum up where this ended up: - The NameError: name 'now' is not defined came from now() in the script. now is not a built-in pyscript function...
Thanks for the detailed write-up and the numbers, @skm7463. The first suggestion is now done: https://github.com/custom-components/pyscript/pull/914 documents that a state trigger only runs when a value really changes, including the...
Thanks @dmamelin for the clear report and the small script. I can reproduce it: on 148e2d3 `read_label()` returns `"caller"`, and on 933e177 it returns `"global"`, as CPython does. **The cause.**...