[Python-ideas] Add a builtin method to 'int' for base/radix conversion
Masklinn
masklinn at masklinn.net
Mon Aug 31 10:32:44 CEST 2009
On 31 Aug 2009, at 02:45 , Yuvgoog Greenle wrote:
> Some of the questions that remain:
> 1. Whether this should be a method for int or a regular function in a
> standard library module like math.
> 2. What should the method/function be called? (base_convert, radix,
> etc)
>
> What do you guys think?
The format mini-language already has presentation types for binary,
octal, dec and hex outputs. Maybe this could be expanded in some way
to get arbitrary base output (between 2 and 36 to match int())
More information about the Python-ideas
mailing list