Message14000
Logged In: YES
user_id=89016
The subclass problem has been fixed in:
Python/bltinmodule.c 2.275
Lib/test/test_builtin.py 1.9
But now something strange happens:
---
class badstr(str):
···def __getitem__(self, index):
······return str.__getitem__(self, index).upper()
print filter(None, badstr("abc"))
print filter(lambda x: x, badstr("abc"))
---
This prints
---
abc
ABC
---
although according to the filter docstring they should be
the same.
|
|
| Date |
User |
Action |
Args |
| 2007-08-23 14:09:57 | admin | link | issue665835 messages |
| 2007-08-23 14:09:57 | admin | create | |
|