[Python-ideas] random.boolean or bernoulli

Terry Reedy tjreedy at udel.edu
Thu Apr 21 09:38:49 CEST 2011


On 4/21/2011 1:11 AM, Raymond Hettinger wrote:

>> It's true that since both of these functions have very simple
>> short-statement implementations that it might be unnecessary baggage,
>
> I agree that they are unnecessary baggage.
> AFAICT, other languages have avoided adding this sort of thing.
> We already have randrange(), so this is just an inflexible specialization.
> It is better to propose ideas that substantially increase the power of the module,
> not ones that offer trivial respellings.

Well put. -1 from me also.

-- 
Terry Jan Reedy




More information about the Python-ideas mailing list