[Python-Dev] str with base

Jim Jewett jimjjewett at gmail.com
Wed Jan 18 21:22:37 CET 2006


Jack wrote:

> The arbitrary base case isn't even academic
> or we would see homework questions about it
> on c.l.py.  No one asks about
> hex or octal because they are there.

I have wanted base-36 far more often than I've
wanted base-8.  I haven't needed any base
(except 10) often enough to justify putting it
in builtins rather than a stdlib module.  I do like
the idea of adding Raymond's

    def base(number, base, prefix)

to the stdlib (possibly in math).

-jJ


More information about the Python-Dev mailing list