number generator

Paul Rubin http
Wed Mar 14 12:28:41 EDT 2007


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.



More information about the Python-list mailing list