Sebastian Haase wrote:

>Travis Oliphant wrote:
>  
>
>And that automatically implies that there a  32bit-int cannot be used in 
>place of a "normal python integer" !?
>I could see wanting to use int16 or event uint8 as a tuple index.
>Logically a small type would be save to use in place of a bigger one ...
>  
>

That is the purpose behind the __index__ attribute I added to Python 2.5 
(see PEP 357).  This allows all the scalar integers to be used in place 
of integers inside of Python.

-Travis


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to