News for hackers. Stuff that matters.
Re:Python: Uncovering the Overlooked Core Functionalities by TrianguloY on Tuesday July 25, 2023 @02:51AM (#36858847)
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)
Re:Python: Uncovering the Overlooked Core Functionalities by strunz on Tuesday July 25, 2023 @11:16AM (#36863557)
That's pretty brilliant to use `children` as the keyword name, thanks!