[Python-ideas] str(<int>, base=<int>) as complement to int(<str>, base=<int>)
Adam Atlas
adam at atlas.st
Thu Nov 1 18:39:58 CET 2007
On 31 Oct 2007, at 06:02, Christian Heimes wrote:
> I know it's not a killer feature but it feels right to have a
> complement. How do you like the idea?
>
> Christian
How about extending the int type's (and other numeric types', perhaps)
implementation of __format__ (for py3k -- PEP 3101) so that it can
take an optional format specifier component indicating the base?
More information about the Python-ideas
mailing list