summaryrefslogtreecommitdiffstatshomepage
path: root/minimal/frozentest.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-01-31 22:16:41 +0000
committerDamien George <damien.p.george@gmail.com>2016-04-13 16:07:47 +0100
commitf9448ddc2c49d7cdaf7dee8ed5e88837e8964f05 (patch)
tree8a8d82158a8f4a23b76e183a461b7a70ebb41066 /minimal/frozentest.py
parent0a2e9650f5383bc1190d6b27a3d923e313c3d879 (diff)
downloadmicropython-f9448ddc2c49d7cdaf7dee8ed5e88837e8964f05.tar.gz
micropython-f9448ddc2c49d7cdaf7dee8ed5e88837e8964f05.zip
minimal: Add example of frozen persistent bytecode (.mpy file).
frozentest.py is frozen into the binary as frozen bytecode. The .mpy file is included so that there is no dependency on the cross compiler.
Diffstat (limited to 'minimal/frozentest.py')
-rw-r--r--minimal/frozentest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/minimal/frozentest.py b/minimal/frozentest.py
new file mode 100644
index 0000000000..0f99b74297
--- /dev/null
+++ b/minimal/frozentest.py
@@ -0,0 +1,7 @@
+print('uPy')
+print('a long string that is not interned')
+print('a string that has unicode αβγ chars')
+print(b'bytes 1234\x01')
+print(123456789)
+for i in range(4):
+ print(i)