That makes more sense than a builtin. Note that oct() and hex() return something that's a valid Python literal. There are no binary literals (nor should there be IMO).
On 4/22/06, Nick Coghlan <[EMAIL PROTECTED]> wrote: > 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 | [EMAIL PROTECTED] | Brisbane, Australia > --------------------------------------------------------------- > http://www.boredomandlaziness.org > -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com