Walter Dörwald 903f1e0c40 filterstring() and filterunicode() in Python/bltinmodule.c
blindly assumed that tp_as_sequence->sq_item always returns
a str or unicode object. This might fail with str or unicode
subclasses.

This patch checks whether the object returned from __getitem__
is a str/unicode object and raises a TypeError if not (and
the filter function returned true).

Furthermore the result for __getitem__ can be more than one
character long, so checks for enough memory have to be done.
2003-02-04 16:28:00 +00:00
..
2002-06-11 06:22:31 +00:00
2002-01-23 15:51:12 +00:00
2002-08-15 14:59:02 +00:00
2002-12-30 22:08:05 +00:00
2002-07-30 11:44:44 +00:00
2002-11-08 12:53:11 +00:00
2002-06-11 06:22:31 +00:00
2002-08-15 14:59:02 +00:00