Opened 10 years ago

Last modified 4 years ago

#13110 needs_work defect

ComplexNumber should be able to accept the Python complex type — at Initial Version

Reported by: eviatarbach Owned by: jason, jkantor
Priority: major Milestone: sage-8.2
Component: numerical Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

ComplexNumber does not know how to convert from the Python complex type:

sage: ComplexNumber(complex('13.8+6.2j'))
TypeError: unable to coerce to a ComplexNumber: <type 'str'>

Change History (0)

Note: See TracTickets for help on using tickets.