mem32[] as default argument: should it work? #11050
Answered
by
robert-hh
cve2022
asked this question in
RP2040 / Pico
-
I was debugging a problem with a function that read the global enable register of the PWMs in the Pico. I found the
Here the result of running it (either Thonny or importing on repl).
Am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
robert-hh
Mar 16, 2023
Replies: 1 comment 1 reply
-
Argument defaults are evaluated only once at compilation/parsing time. That's written somewhere, and may be even Python standard. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
cve2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Argument defaults are evaluated only once at compilation/parsing time. That's written somewhere, and may be even Python standard.