[Python-3000] New built-in function: bin()

Nick Coghlan ncoghlan at gmail.com
Sat Apr 22 15:33:36 CEST 2006


Ian Bicking wrote:
> Guido van Rossum wrote:
>> This has been brought up many times before. The value of bin() is
>> really rather minimal except when you're just learning about binary
>> numbers; and then writing it yourself is a useful exercise.
>>
>> I'm not saying that bin() is useless -- but IMO its (small) value
>> doesn't warrant making, maintaining and documenting a new built-in
>> function.
> 
> And for some reason no one wants to propose it for any particular stdlib 
> module...

binascii.a2b_bin and binascii.b2a_bin might actually make sense. . .

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-3000 mailing list