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

Talin talin at acm.org
Fri Apr 21 18:54:39 CEST 2006


Mike Traynar <mike_traynar <at> credence.com> writes:

> I've always wondered why there isn't a bin() built-in in Python. 
> Built-in functions already exist for converting ints to hexadecimal and 
> octal strings and vice versa i.e.

Perhaps a "format_base" function in the strings library, that takes an
int and a number base? (The name is horrid, I know.)

-- Talin




More information about the Python-3000 mailing list