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.19:00:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAF-Rda8n_ameUr0QeY=X3VoaqvZhnk9BALo08_aj9+jjJrvAUA@mail.gmail.com>
In-reply-to <1376506592.53.0.016995600964.issue18738@psf.upfronthosting.co.za>
Content
On Wed, Aug 14, 2013 at 11:56 AM, Eric V. Smith <report@bugs.python.org>wrote:

>
> Eric V. Smith added the comment:
>
> For format, I think the question is "should an IntEnum format like an int,
> with the wacky exception of a specifier of '', or should it always format
> like a str?"
>
> I assumed we'd want it to look like the str() version of itself, always.
> But it's debatable.
>
> I agree the %-formatting question is different, and I further think
> there's not much we can do there.
>

How about always being a string, unless integer formatting "%i" / {d} is
explicitly requested?

The alternative (always a string) is also fine, but the behavior should be
consistent. Certainly field-width-justification ({:}) can't affect the
formatting.
History
Date User Action Args
2013-08-14 19:00:32eli.benderskysetrecipients: + eli.bendersky, barry, eric.smith, ethan.furman, serhiy.storchaka
2013-08-14 19:00:32eli.benderskylinkissue18738 messages
2013-08-14 19:00:32eli.benderskycreate