Ticket #7591 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Boolean Polynomial Ring coercion broken

Reported by: malb Owned by: malb
Priority: major Milestone: sage-4.3
Component: commutative algebra Keywords:
Cc: burcin Work issues:
Report Upstream: N/A Reviewers: Burcin Erocal
Authors: Martin Albrecht Merged in: sage-4.3.rc0
Dependencies: Stopgaps:

Description

This is really bad

sage: B.<a,b,c> = BooleanPolynomialRing(order='lex')
sage: P.<a,b,c> = BooleanPolynomialRing(order='degrevlex')
sage: P(B('a')) # good
a
sage: B(P('c')) # urgh!
a

Attachments

trac_7591.patch Download (1.9 KB) - added by malb 3 years ago.

Change History

comment:1 Changed 3 years ago by malb

  • Cc burcin added
  • Status changed from new to needs_review
  • Authors set to Martin Albrecht

The attached patch fixes the issue for me. Burcin, can I ask you to review this patch?

Changed 3 years ago by malb

comment:2 Changed 3 years ago by burcin

  • Status changed from needs_review to positive_review
  • Reviewers set to Burcin Erocal

Looks good to me.

comment:3 Changed 3 years ago by mhansen

  • Status changed from positive_review to closed
  • Resolution set to fixed
  • Merged in set to sage-4.3.rc0
Note: See TracTickets for help on using tickets.