Add dummy micropython module to enable mandel.py run with CPython.

This commit is contained in:
Paul Sokolovsky 2014-01-16 19:13:30 +02:00
parent d0db3d3e45
commit c8742a06ca
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,9 @@
try:
import micropython
except:
pass
def mandelbrot():
# returns True if c, complex, is in the Mandelbrot set
@micropython.native

8
examples/micropython.py Normal file
View File

@ -0,0 +1,8 @@
# micropython module placeholder for CPython
# Dummy function decorators
def nodecor(x):
return x
byte_code = native = viper = nodecor