News for hackers. Stuff that matters.
Re:Why it’s hard for programmers to write a program to flatt... by falcolas on Saturday February 25, 2017 @10:26AM (#13731926)
I'd personally change `if type(x) == list` to `if isinstance(x, (list, tuple, set))` to catch all common iterables and their subclasses.

There are no comments on this comment yet.