[Python-ideas] About adding a new iteratormethodcalled "shuffled"
arnodel at googlemail.com
Thu Mar 26 09:31:24 CET 2009
2009/3/25 Steven D'Aprano <steve at pearwood.info>:
> On Thu, 26 Mar 2009 08:41:27 am Marcin 'Qrczak' Kowalczyk wrote:
>> On Wed, Mar 25, 2009 at 13:28, Steven D'Aprano <steve at pearwood.info>
>> I bet you can't even predict any particular ordering which
>> is impossible to obtain.
> A moral dilemma... should I take advantage of your innumeracy by taking
> you up on that bet, or should I explain why that bet is a sure thing
> for me? *wink*
Your challenge was to exhibit a particular permutation which the
algorithm will not generate. For good measure I think you should also
join a proof that it won't be generated (since there isn't enough time
or, probably, space, to test it).
More information about the Python-ideas