On Saturday, January 4, 2014 8:29:33 PM UTC+1, vdelecroix wrote: > See #13386 for a related problem. > > > > I do not see how we can make the coercion numpy int/Sage Integer works > > if numpy is not loaded at startup time... and it seems that we do not > > want it because it takes too much time. There might be a hack using > > the hash of the numpy int type. That way we can check efficiently if > > an object is a numpy int. I would be happy to work on it but the best > > strategy is not yet completely clear to me. > >
Vincent, Note, that this is not restricted to integers but also occurs with reals: 1.0j / np.float64(2) gives 0.0 as well. Cheers, Bernhard -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/groups/opt_out.