Steven D'Aprano <steve at REMOVEME.cybersource.com.au> writes: > >>> list(_partitions(25, 24)) > [(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2)] > >>> list(_partitions(25, 25)) > [] Hmm. I'll look into this later if I get a chance. Thanks.