A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-May/015122.html below:

[Python-Dev] %b format?

[Python-Dev] %b format? [Python-Dev] %b format?Eric S. Raymond esr@thyrsus.com
Wed, 30 May 2001 18:03:41 -0400
Barry A. Warsaw <barry@digicool.com>:
> 
> >>>>> "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 is correct.  If we're going to do this, we ought to do it right and
support binary on a par with decimal, hex, and octal.  I favor this.
-- 
		<a href="http://www.tuxedo.org/~esr/">Eric S. Raymond</a>

The direct use of physical force is so poor a solution to the problem of
limited resources that it is commonly employed only by small children and
great nations.
	-- David Friedman



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4