mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps] Python: Refining random module
This commit is contained in:
@@ -141,7 +141,13 @@ python/src/py/emitnative.o: CFLAGS += -DN_THUMB
|
||||
|
||||
extmod_objs += $(addprefix python/src/extmod/,\
|
||||
modurandom.o \
|
||||
)
|
||||
)
|
||||
|
||||
# In order to change the name of the micropython module 'urandom' to 'random'
|
||||
# (without altering micropython files), we redefined the macro MP_QSTR_urandom
|
||||
# by DMP_QSTR_random.
|
||||
python/src/py/objmodule.o: SFLAGS += -DMP_QSTR_urandom="MP_QSTR_random"
|
||||
python/src/extmod/modurandom.o: SFLAGS += -DMP_QSTR_urandom="MP_QSTR_random"
|
||||
|
||||
#extmod_objs += $(addprefix python/src/extmod/,\
|
||||
moductypes.o \
|
||||
|
||||
@@ -275,7 +275,6 @@ Q(value)
|
||||
Q(values)
|
||||
Q(zip)
|
||||
Q({:#b})
|
||||
Q(urandom)
|
||||
Q(getrandbits)
|
||||
Q(seed)
|
||||
Q(random)
|
||||
|
||||
Reference in New Issue
Block a user