3 ms·
I avoided the stack limit by using itertools.chain: https://github.com/DavidBuchanan314/millipds/blob/15727d474c6d579ce44fa688d9164f7b5702c6ee/src/millipds/util
by Retr0id 2y ago
I avoided the stack limit by using itertools.chain: https://github.com/DavidBuchanan314/millipds/blob/15727d474c6d579ce44fa688d9164f7b5702c6ee/src/millipds/util.py#L61-L71 https://github.com/DavidBuchanan314/millipds/blob/15727d474c...
(this is for iterating over nested JSON-like objects, which are just weird trees)
- packetlost 2y agoCBOR objects, to be specific ;) There are a lot of ways you could avoid the recursion, but that's a particularly nice way!