A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2006-January/059831.html below:

[Python-Dev] str with base

[Python-Dev] str with base [Python-Dev] str with baseGareth McCaughan gmccaughan at synaptics-uk.com
Tue Jan 17 16:22:37 CET 2006
On Tuesday 2006-01-17 15:19, skip at pobox.com wrote:

>     Alex> Identically the same situation as for int: the base argument is
>     Alex> only accepted if the first argument is a str (not a float, etc).
>     Alex> Just the same way, the base argument to str will only be accepted
>     Alex> if the first argument is an int (not a float, etc).
> 
> A shortcoming in int() hardly seems like a good reason to mess with str().

How's it a shortcoming in int() that it doesn't do anything with,
say, int(2.345,19)? (What would you like it to do?) Or are you
saying that the fact that int(<a string>) lets you specify a base
to interpret the string in is itself a shortcoming, and if so
why?

-- 
g

More information about the Python-Dev mailing list

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