summaryrefslogtreecommitdiffstats
path: root/Lib/user.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2003-02-10 13:19:13 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2003-02-10 13:19:13 (GMT)
commit1918f7755e03900224c5a53cca9fc0088c3186d3 (patch)
tree0c2ac8d1d8373699f5d431c88c4960f9bc6849ee /Lib/user.py
parentb4bb64e2882297f4759e5d4e6758100d8e9f3273 (diff)
downloadcpython-1918f7755e03900224c5a53cca9fc0088c3186d3.zip
cpython-1918f7755e03900224c5a53cca9fc0088c3186d3.tar.gz
cpython-1918f7755e03900224c5a53cca9fc0088c3186d3.tar.bz2
Change filterstring() and filterunicode(): If the
object is not a real str or unicode but an instance of a subclass, construct the output via looping over __getitem__. This guarantees that the result is the same for function==None and function==lambda x:x This doesn't happen for tuples, because filtertuple() uses PyTuple_GetItem(). (This was discussed on SF bug #665835).
Diffstat (limited to 'Lib/user.py')
0 files changed, 0 insertions, 0 deletions