Ticket #3004 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

bug in coercion edge case -- probably easy to fix

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

Description

bug from Kari Christianson:

sage: PolynomialRing(ZZ, 'x').gen()*Mod(1,15)
x
sage: PolynomialRing(ZZ, 1, 'x').gen()*Mod(1,15)
Traceback (most recent call last):
...
TypeError: unsupported operand parent(s) for '*': 'Multivariate Polynomial Ring in x over Integer Ring' and 'Ring of integers modulo 15'

Change History

comment:1 Changed 5 years ago by mabshoff

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from sage-3.2.1 to sage-3.2

This has been fixed by the new coercion system:

mabshoff@sage:/scratch/mabshoff/release-cycle/sage-3.2.alpha2$ ./sage
----------------------------------------------------------------------
| Sage Version 3.2.alpha1, Release Date: 2008-10-26                  |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------

sage: PolynomialRing(ZZ, 'x').gen()*Mod(1,15)
x
sage: PolynomialRing(ZZ, 1, 'x').gen()*Mod(1,15)
x
sage: 

Cheers,

Michael

Note: See TracTickets for help on using tickets.