A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-June/025840.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
Sat, 22 Jun 2002 22:05:06 -0700 (PDT)
--- Todd Miller:
> Right now, numarray is a subclass of object for Python-2.2 in order to 
> get properties in order to emulate some of Numeric's attributes. I'm 
> wondering what I'd loose from object in order to pick up int's indexing. 

Since int is also a subclass of object, you'd still get the benefits of new
style classes...

>  I'm also wondering how to make a rank-0 Float array fail as an index. 

Raise a TypeError and it would match the standard behavior.




__________________________________________________
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