A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-June/025859.html below:

[Python-Dev] Indexing builtin sequences with objects which supply __int__

[Python-Dev] Indexing builtin sequences with objects which supply __int__ [Python-Dev] Indexing builtin sequences with objects which supply __int__Scott Gilbert xscottg@yahoo.com
Sun, 23 Jun 2002 14:05:08 -0700 (PDT)
--- Todd Miller <jmiller@stsci.edu> 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
http://fifaworldcup.yahoo.com




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4