This website requires JavaScript.
Explore
Help
Sign In
djsundog
/
circuitpython
Watch
1
Star
0
Fork
You've already forked circuitpython
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
3191a31ce8
circuitpython
/
tests
/
micropython
/
const.py.exp
6 lines
37 B
Plaintext
Raw
Normal View
History
Unescape
Escape
py, compiler: Add basic support for A=const(123). You can now do: X = const(123) Y = const(456 + X) and the compiler will replace X and Y with their values. See discussion in issue #266 and issue #573.
2014-05-08 11:58:39 -04:00
123 580
123 580
py/parse: Treat constants that start with underscore as private. Assignments of the form "_id = const(value)" are treated as private (following a similar CPython convention) and code is no longer emitted for the assignment to a global variable. See issue #2111.
2016-06-06 12:28:32 -04:00
12 46
1 2
True False