What\'s the best way, both aesthetically and from a performance perspective, to split a list of items into multiple lists based on a conditional? The equivalent of:
bad = [] good = [x for x in mylist if x in goodvals or bad.append(x)]
append returns None, so it works.