<div id="comment:0"></div> We have ``` sage: cycles = [[1,2,3],[4,5,6]] sage: sage.combinat.permutation.from_cycles(6,cycles) [2, 3, 1, 5, 6, 4] sage: sage.combinat.permutation.from_cycles(6,(c for c in cycles)) [1, 2, 3, 4, 5, 6] ``` where the former result is correct and the latter is wrong. Component: **combinatorics** Author: **Dave Morris** Branch/Commit: **[`af2f762`](https://github.com/sagemath/sagetrac-mirror/commit/af2f7625c5f5a79020f3039bc546a79d42049f47)** Reviewer: **Travis Scrimshaw** _Issue created by migration from https://trac.sagemath.org/ticket/34662_