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/015127.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:39:43 -0400
Tim Peters <tim.one@home.com>:
> [Eric S. Raymond]
> > Is the right answer to add the convert-to-base slot and deprecate the
> > other two?
> 
> That would fix "the other" lump here in Python, that e.g.
> 
> >>> int("111", 3)
> 13
> >>>
> 
> has no inverse.  string->int is happy with any base in 2..36 inclusive, but
> int->string is spelled via 3 different builtins covering only 3 of those
> bases.

That sounds like a strong argument to me.  
-- 
		<a href="http://www.tuxedo.org/~esr/">Eric S. Raymond</a>

The world is filled with violence. Because criminals carry guns, we
decent law-abiding citizens should also have guns. Otherwise they will
win and the decent people will lose.
        -- James Earl Jones



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