Add dummy micropython module to enable mandel.py run with CPython.
parent
d0db3d3e45
commit
c8742a06ca
|
@ -1,3 +1,9 @@
|
|||
try:
|
||||
import micropython
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
def mandelbrot():
|
||||
# returns True if c, complex, is in the Mandelbrot set
|
||||
@micropython.native
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
# micropython module placeholder for CPython
|
||||
|
||||
# Dummy function decorators
|
||||
|
||||
def nodecor(x):
|
||||
return x
|
||||
|
||||
byte_code = native = viper = nodecor
|
Loading…
Reference in New Issue