Skip to content
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

micropython parser( written in C ) cannot handle valid redefinition of const() #5

Open
pmp-p opened this issue Jul 3, 2020 · 1 comment
Labels
upstream-bug for bugs that affect micropython/pycopy git

Comments

@pmp-p
Copy link
Owner

pmp-p commented Jul 3, 2020

try:
    x = const(0)
except:
    const = lambda x:x
    x = const(0)

SyntaxError: can't assign to expression

this one is nasty too :

try:
    x = const(4)
except:
    x = 8
@pmp-p
Copy link
Owner Author

pmp-p commented Aug 4, 2020

@pmp-p pmp-p changed the title micropython C parser cannot handle valid redefinition of const() micropython parser( written in C ) cannot handle valid redefinition of const() Aug 4, 2020
@pmp-p pmp-p added the upstream-bug for bugs that affect micropython/pycopy git label Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream-bug for bugs that affect micropython/pycopy git
Projects
None yet
Development

No branches or pull requests

1 participant