This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients TFinley, mark.dickinson, rhettinger
Date 2009-01-03.11:53:44
SpamBayes Score 3.0096053e-10
Marked as misclassified No
Message-id <1230983626.02.0.730324688636.issue4816@psf.upfronthosting.co.za>
In-reply-to
Content
I agree that the proposed behaviour seems more correct:  the collection of 
all subsets of size 4 of range(3) is perfectly valid and well-defined;  it 
just happens to be empty.  I've also encountered this in practice (in code 
that was enumerating partitions of a list into a fixed number of pieces), 
but in my case it was easier to work around.

I guess the counterargument is that the current ValueError might catch 
bugs early;  I don't know how often this is true in practice.

In any case, this is Raymond's call.
History
Date User Action Args
2009-01-03 11:53:47mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, TFinley
2009-01-03 11:53:46mark.dickinsonsetmessageid: <1230983626.02.0.730324688636.issue4816@psf.upfronthosting.co.za>
2009-01-03 11:53:45mark.dickinsonlinkissue4816 messages
2009-01-03 11:53:44mark.dickinsoncreate