[Microbit-Python] Max recursion depth limit

Christopher Arndt chris at chrisarndt.de
Thu Feb 25 16:34:45 EST 2016


Am 25.02.2016 um 22:21 schrieb Michael:
> Could you put the code into a pastebin?  (or if short post here)

If you look at this script at line 20:

https://github.com/SpotlightKid/microbit-worldtour-monifa/blob/master/mididrumbox.py#L20

I originally had an additional method in the MidiOut class:

    def send(self, msg):
        return self.device.write(bytes(msg))

If I then replace the last line in the "channel_message" method with
"self.send(msg)", I get the recursion max depth exceeded error.


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/355aaec7/attachment.sig>


More information about the Microbit mailing list