Opened 11 years ago

#12391 new defect

Infinite ellipsis_iter should return error when converted to list

Reported by: Eviatar Bach Owned by: Jason Grout
Priority: minor Milestone:
Component: misc Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

When the endpoint for an ellipsis_iter is Ellipsis, attempting to convert to a list should return an error, since it results in an infinite loop. For example, list(ellipsis_iter(3, Ellipsis)).

Change History (0)

Note: See TracTickets for help on using tickets.