Browse Source

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

pull/180/head
Paul Sokolovsky 11 years ago
parent
commit
c8742a06ca
  1. 6
      examples/mandel.py
  2. 8
      examples/micropython.py

6
examples/mandel.py

@ -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

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