Hacker News new | ask | show | jobs
by TrianguloY 1057 days ago
I see your function and "yield" (pun definitely intended) the following:

    def flatten(children=[], **other):
        if other: yield other
        for child in children: yield from flatten(**child)
1 comments

That's pretty brilliant to use `children` as the keyword name, thanks!