Message78948
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. |
|
Date |
User |
Action |
Args |
2009-01-03 11:53:47 | mark.dickinson | set | recipients:
+ mark.dickinson, rhettinger, TFinley |
2009-01-03 11:53:46 | mark.dickinson | set | messageid: <1230983626.02.0.730324688636.issue4816@psf.upfronthosting.co.za> |
2009-01-03 11:53:45 | mark.dickinson | link | issue4816 messages |
2009-01-03 11:53:44 | mark.dickinson | create | |
|