New submission from David Alvarez Lombardi :
As of now the best way to filter a str is to convert to list, filter, then join
back to a str. I think a a string comprehension would be very useful for this.
So to get only ascii_lower case chars given this string,
s = "a1b2c3d4&quo
New submission from David Alvarez Lombardi :
I frequently find myself doing the following for lists, sets, and dicts.
passes = [x for x in seq if cond(x)]
fails = [x for x in seq if not cond(x)]
The proposed function would behave similarly to `filter`, but it would return a
tuple