[issue29055] random.choice on empty sequence should hide previous exception [patch]

2016-12-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the patch. Please submit a contributor agreement for future work. We would like to have it for all patches (though this one was so tiny it isn't strictly required). -- resolution: -> fixed status: open -> closed versions: +Python 3.6 _

[issue29055] random.choice on empty sequence should hide previous exception [patch]

2016-12-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0001ae913759 by Raymond Hettinger in branch '3.6': Issue #29055: Suppress upstream exception for random.choice() https://hg.python.org/cpython/rev/0001ae913759 -- nosy: +python-dev ___ Python tracker

[issue29055] random.choice on empty sequence should hide previous exception [patch]

2016-12-27 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue29055] random.choice on empty sequence should hide previous exception [patch]

2016-12-23 Thread Josh Rosenberg
Josh Rosenberg added the comment: Seems reasonable to me. -- nosy: +josh.r ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue29055] random.choice on empty sequence should hide previous exception [patch]

2016-12-23 Thread then0rTh
New submission from then0rTh: Passing empty sequence to random.choice function leads to: Traceback (most recent call last): ... ValueError: number of bits must be greater than zero During handling of the above exception, another exception occurred: Traceback (most recent call last): ... I