[Microbit-Python] Max recursion depth limit
Michael
sparks.m at gmail.com
Thu Feb 25 16:21:18 EST 2016
Could you put the code into a pastebin? (or if short post here)
ie http://pastebin.com/ (or similar)
Regards,
Michael.
On 25 February 2016 at 19:17, Christopher Arndt <chris at chrisarndt.de> wrote:
> 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
>
>
> _______________________________________________
> Microbit mailing list
> Microbit at python.org
> https://mail.python.org/mailman/listinfo/microbit
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/microbit/attachments/20160225/0f4d4cd1/attachment.html>
More information about the Microbit
mailing list