8000 Expression._latex_() triggers “dangerous” comparisons · Issue #22071 · sagemath/sage · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Expression._latex_() triggers “dangerous” comparisons #22071
Closed
@mezzarobba

Description

@mezzarobba

With commit a5a1e2b76332d136936c7cbe94cf42f93ec6203d from ticket #22029:

sage: Mod(2,7)/x
2/x
sage: latex(Mod(2,7)/x)
...
TypeError: unsupported operand parent(s) for 'lt': 'Ring of integers modulo 7' and 'Number Field in I with defining polynomial x^2 + 1'

It looks like Pynac is comparing the numerator with I under the hood. Even if the branch in question isn't merged, this is likely to cause problems sooner or later.

CC: @rwst

Component: symbolics

Issue created by migration from https://trac.sagemath.org/ticket/22071

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0