Partition Problem

Tom Good Tom_Good1 at excite.com
Tue Jul 24 13:24:13 EDT 2001


Duncan Booth <duncan at NOSPAMrcp.co.uk> wrote in message news:
> 
> As I originally wrote it the return stopped it executing the main body and 
> attempting to permute a 0 length sequence. Since I had written it so that 
> permuting a 0 length sequence gave no permutations, this meant the return 
> simply cut out a lot of code that had no net result. However, once it is 
> fixed to correctly return one permutation of an empty sequence the return 
> becomes essential.

Ah, OK.  With the new test, the return matters for sequences of length 1.


Tom



More information about the Python-list mailing list