[Microbit-Python] Max recursion depth limit
Christopher Arndt
chris at chrisarndt.de
Thu Feb 25 14:17:10 EST 2016
Hi all,
participating in the micro:bit world tour I currently have a micro:bit
at home and am experimenting with MIDI output, which generally works
very well (using a minimal circuit with just two resistors and a MID
output socket).
However, as my scripts got more complex, I encountered "maximum
recursion depth exceeded" errors, for example:
Traceback (most recent call last):
File "__main__", line 125, in <module>
File "__main__", line 102, in play
File "__main__", line 96, in play
File "__main__", line 75, in playstep
File "__main__", line 20, in note_on
File "__main__", line 18, in channel_message
File "__main__", line 14, in send
RuntimeError: maximum recursion depth exceeded
Is the Python call stack really limited to only that few levels? Does it
have a fixed depth or does it depend on the type and size of objects
used as function params?
Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 979 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/microbit/attachments/20160225/b79d4f3e/attachment.sig>
More information about the Microbit
mailing list