New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kwargs error in recent py/runtime commits #8473
Comments
Is the code compiled with If the answer is yes, then you need to build mpy-cross from the matching commit since bytecodes changed. If the answer is no, do the proposed changes in #8472 fix the problem? |
On master branch, ran at root Rebuilding, now I a build error
Will look at proposed change here shortly. Was error reproducable on your end? |
No, I copied and pasted the example from the first comment and ran it in a unix 64-bit build without error. |
I'm able to re- "make -C mpy-cross" and build without error from this commit |
Please can you re-try with latest master, now that #8472 is merged. If it still fails, please give exact steps to reproduce (and try without any |
Confirming that with all
Looks like Additional info:
Finally, (getting ahead of myself), I'll keep working on master and comment out all |
Updating to master, noticed a new issue relating to kwargs. Last working commit is bb70874. On commit 1e99d29, I get a core dump, and 783b1a8 onwards, I get a TypeError.
I'm running IDF v4.4. I'm running this on ESP S3.
ERROR 2e3f204 (HEAD -> master, origin/master, origin/HEAD) py/runtime: Use size_t/ssize_t instead of uint/int.
4768518 tests/basics/fun_callstardblstar: Add coverage test.
9b74d71 py/runtime: Drop new_alloc < 4 check.
3679a47 py/runtime: Do not overallocate when len is known.
ERROR 783b1a8 py/runtime: Allow multiple *args in a function call.
LoadProhibited 1e99d29 py/runtime: Allow multiple **args in a function call.
PASS bb70874 py/vm: Prevent array bound warning when using -MP_OBJ_ITER_BUF_NSLOTS.
Here's the test case. This schtick on this one is direct instantiation of kwargs is working fine. Which is why it probably passed test cases (and why this was a little tricky to find). But when you pass kwargs through a function, I see the issue.
The text was updated successfully, but these errors were encountered: