Message195168
On Wed, Aug 14, 2013 at 6:55 AM, Serhiy Storchaka <report@bugs.python.org>wrote:
>
> Serhiy Storchaka added the comment:
>
> `.format()` is surprised too.
>
> >>> '{:}'.format(AF.IPv4)
> 'AF.IPv4'
> >>> '{:10}'.format(AF.IPv4)
> ' 1'
>
>
Oh, this looks like a bug in str.format (and probably the %i behavior too).
Python allows subclassing int and providing custom __str__/__repr__. The
formatting tools should behave sensically in this situation. |
|
Date |
User |
Action |
Args |
2013-08-14 14:12:32 | eli.bendersky | set | recipients:
+ eli.bendersky, barry, eric.smith, ethan.furman, serhiy.storchaka |
2013-08-14 14:12:32 | eli.bendersky | link | issue18738 messages |
2013-08-14 14:12:31 | eli.bendersky | create | |
|