[Python-Dev] %b format?

Barry A. Warsaw barry@digicool.com
Wed, 30 May 2001 17:49:22 -0400


>>>>> "GW" == Greg Wilson <Greg.Wilson@baltimore.com> writes:

    GW> I would like to add a "%b" format for converting numbers to
    GW> binary format (1's and 0's).

For completeness, wouldn't you also want a binary integer literal so
your students could write binary numbers in their code?  And what
about a binary() operator a la hex()?

-Barry