logo       

RE: A bug in creating array of long int.: msg#00063

python.numeric.general

Subject: RE: A bug in creating array of long int.

On Sat, 2004-09-18 at 17:28, Shin wrote:
> > So, what were you hoping would happen? An exception? Automatically setting
> > type to Int64?
>
> Don't you think it is better to convert long integers into Int64, and
> raising at least a warning if there are values too large for Int64?

That sounds good to me. I was wondering if the array type should also
be value dependent, as in driven by Python longs with values outside the
range of Int32, but I think a simple rule would be best. Barring
objections, I'll look into adding code that will force Int64 for any
sequence containing Python longs and raise an exception for those longs
which don't fit in Int64.

Regards,
Todd



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise