Currently, filter(None, "abc") gives "abc", but filter(None, u"abc") gives [u'a', u'b', u'c']. This patches corrects this, adding a Unicode specical case for filter.
Logged In: YES user_id=38388 There's no patch attached to this SF item, but you're right, filter() should behave in the same way for 8-bit strings as for Unicode.
Logged In: YES user_id=80475 Looks good, compiles fine, passes regrtests, doesn't appear to have any leaks, and looks like a faithful interpretation of filterstring() just above it. Consider expanding the tests to verify the return type. Since 'abc' == u'abc', the current tests would pass even if the return type were a non-unicode string. Please apply.