Re: [Numpy-discussion] adding unsigned int and int

2011-12-06 Thread Skipper Seabold
On Tue, Dec 6, 2011 at 7:53 AM, Matthew Brett wrote: > Hi, > > On Tue, Dec 6, 2011 at 4:45 AM, Skipper Seabold wrote: >> Hi, >> >> Is this intended? >> >> [~/] >> [1]: np.result_type(np.uint, np.int) >> [1]: dtype('float64') > > I would guess so - if your system ints are 64 bit.  int64 can't > co

Re: [Numpy-discussion] adding unsigned int and int

2011-12-06 Thread Matthew Brett
Hi, On Tue, Dec 6, 2011 at 4:45 AM, Skipper Seabold wrote: > Hi, > > Is this intended? > > [~/] > [1]: np.result_type(np.uint, np.int) > [1]: dtype('float64') I would guess so - if your system ints are 64 bit. int64 can't contain the range for uint64, nor can uint64 contain all int64, If there

[Numpy-discussion] adding unsigned int and int

2011-12-06 Thread Skipper Seabold
Hi, Is this intended? [~/] [1]: np.result_type(np.uint, np.int) [1]: dtype('float64') [~/] [2]: np.version.version [2]: '2.0.0.dev-aded70c' Skipper ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/nu