[Python-Dev] str with base

skip at pobox.com skip at pobox.com
Tue Jan 17 16:17:36 CET 2006


    Raymond> My reason is that I've rolled-my-own more times than I can
    Raymond> count but infrequently enough to where it was easier to
    Raymond> re-write than to search for the previous use.

Maybe a bin() builtin would be better.  Even better it seems to me would be
to add a method to ints and longs that returns a string formatted in a base
between 2 and 36 (then deprecate hex and oct).  Like Jeremy, I wonder what
str([1,2], 4) means.

Skip


More information about the Python-Dev mailing list