[Python-Dev] Indexing builtin sequences with objects which supply __int__
Sun, 23 Jun 2002 14:05:08 -0700 (PDT)
--- Todd Miller <email@example.com> wrote:
> >Raise a TypeError and it would match the standard behavior.
> Raise TypeError where? I was thinking I'd have to either inherit from
> int, or not, depending on the type of the array. It still might work
> out though...
You're right. You'd have to raise the TypeError from whatever object was
being subscripted. I'm not sure what I was thinking...
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup