Tilman Krummeck <tilman.krumm...@googlemail.com> added the comment:

I use this mostly in tests to randomize my inputs. So currently I'm doing 
something like this:

result = random.sample(items, random.randint(0, len(items)))

I guess if someone would omit 'k' he wouldn't care about the result (which is 
probably a use-case when using random functions). This would mostly be a 
convenience improvement for lazy guys like myself.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46190>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to