Closed
Description
sage: e = Partition([2,1,1]).to_exp()
sage: e
[2, 1]
sage: [type(x) for x in e]
[<type 'int'>, <type 'int'>]
Note: as Volker points out in comment [comment:1], there are more places with the same problem. Since this ticket is intended to avoid a doctest failure in #17130, I only fixed this one instance.
Component: combinatorics
Author: Jeroen Demeyer
Branch/Commit: 24020fe
Reviewer: Volker Braun
Issue created by migration from https://trac.sagemath.org/ticket/17133