Skip to content

point2d(iter([])) raises ValueError #14490

Closed
@seblabbe

Description

@seblabbe

I just came up with the following bug. point2d takes list as input (possibly empty). It also takes an iterator as input, but it must be non empty which is not fun :

sage: point2d([])     # works, return empty graphic
sage: point2d(iter([]))
Traceback (most recent call last):
...
ValueError: points must have 2 coordinates in a 2d line

Component: graphics

Author: Frédéric Chapoton

Branch: 136a25e

Reviewer: Vincent Delecroix

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions