Ticket #859 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

[with patch] [tested by cwitty] Cannot coerce numpy integral types to ZZ

Reported by: cwitty Owned by: cwitty
Priority: major Milestone: sage-2.8.7
Component: basic arithmetic Keywords:
Cc: Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

sage: import numpy
sage: ZZ(numpy.int64(3))
---------------------------------------------------------------------------
<type 'exceptions.TypeError'>             Traceback (most recent call last)

/home/cwitty/my-sage/<ipython console> in <module>()

/home/cwitty/my-sage/integer_ring.pyx in integer_ring.IntegerRing_class.__call__()

<type 'exceptions.TypeError'>: unable to coerce element to an integer

Attachments

6722.patch Download (1.2 KB) - added by cwitty 6 years ago.

Change History

Changed 6 years ago by cwitty

comment:1 Changed 6 years ago by cwitty

  • Summary changed from Cannot coerce numpy integral types to ZZ to [with patch] Cannot coerce numpy integral types to ZZ

comment:2 Changed 6 years ago by cwitty

  • Summary changed from [with patch] Cannot coerce numpy integral types to ZZ to [with patch] [tested by cwitty] Cannot coerce numpy integral types to ZZ

comment:3 Changed 6 years ago by was

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.