[Python-Dev] str with base (original) (raw)

skip at pobox.com skip at pobox.com
Wed Jan 18 17:07:57 CET 2006


Raymond> Perhaps introduce a single function, base(val, radix=10,
Raymond> prefix=''), as a universal base converter that could replace
Raymond> bin(), hex(), oct(), etc.

Would it (should it) work with floats, decimals, complexes? I presume it would work with ints and longs.

Skip



More information about the Python-Dev mailing list