Message195199
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. |
|
Date |
User |
Action |
Args |
2013-08-14 19:00:32 | eli.bendersky | set | recipients:
+ eli.bendersky, barry, eric.smith, ethan.furman, serhiy.storchaka |
2013-08-14 19:00:32 | eli.bendersky | link | issue18738 messages |
2013-08-14 19:00:32 | eli.bendersky | create | |
|