Skip to content

Ideal with no generators for univariate polynomial rings #11139

@sagetrac-mraum

Description

@sagetrac-mraum

Consider the following (Sage 4.7alpha1) :

sage: P.<a> = QQ[]
sage: P.ideal([])
Booom!

The issue is twofold: The ideal method in rings/rings.py is called and does not accept an empty list. But also the univariate polynomial rings should call a specialized method just like the multivariate ones do.

It worked in earlier versions (like 4.2 or so) and is a construction that easily comes up as a corner case.

Apply attachment: 11139_alternative.patch.

Component: commutative algebra

Author: Martin Raum, Jeroen Demeyer

Reviewer: John Palmieri, Martin Raum

Merged: sage-4.7.1.alpha1

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions