[Python-ideas] Enum and random.choice

Matt Chaput matt at whoosh.ca
Mon Oct 21 22:57:38 CEST 2013


On 10/21/2013 3:50 PM, Antony Lee wrote:
> Comparing with dicts is a good argument against my suggested change, I
> missed that point.

Also AFAIK list(seq) would do a full copy of the list every time you 
called choice(), which could murder performance with big lists and tight 
loops.

Matt



More information about the Python-ideas mailing list