Me [Andrew Dalke] said:
> The relevant code in stringobject uses PySequence_Fast_GET_ITEM(seq,
> i),
> which likely doesn't know about my derived __getitem__.
Oops, I didn't know what the code was doing well enough. The
relevant problem is
seq = PySequence_Fast(orig, "");
That calls __iter__ on my derived list object, which knows nothing
about my overridden __getitem__
So things are working as designed.
Well, back to blundering about. Too much brennivin. ;)
Andrew
[EMAIL PROTECTED]
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com