Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
Okay. Thank for the quick response and the suggestion. I'm going to mark this one as closed. AFAICT, it distracts users from better solutions. I did a quick code search for sample(). The k==1 case is rare and in most cases the code should have used choice() or choices() instead. Accordingly, it doesn't make sense to make k==1 the default. Also, I suspect (but don't no for sure) that most users benefit by having the error message when k is omitted. That is more likely a user mistake than a correct design choice. ---------- resolution: -> rejected stage: -> resolved status: open -> closed _______________________________________ 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