This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eli.bendersky
Recipients barry, eli.bendersky, eric.smith, ethan.furman, serhiy.storchaka
Date 2013-08-14.14:12:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAF-Rda8dCSL6VpGU9cUa-OPmGVpdxgxe-mx=j+pFj+yWHqO-PA@mail.gmail.com>
In-reply-to <1376488542.14.0.384919056452.issue18738@psf.upfronthosting.co.za>
Content
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.
History
Date User Action Args
2013-08-14 14:12:32eli.benderskysetrecipients: + eli.bendersky, barry, eric.smith, ethan.furman, serhiy.storchaka
2013-08-14 14:12:32eli.benderskylinkissue18738 messages
2013-08-14 14:12:31eli.benderskycreate