[Python-Dev] str with base (original) (raw)
skip at pobox.com skip at pobox.com
Wed Jan 18 17:07:57 CET 2006
- Previous message: [Python-Dev] str with base
- Next message: [Python-Dev] str with base
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] str with base
- Next message: [Python-Dev] str with base
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]