Ethan Furman added the comment:

> In order to avoid that logic, and cause more format specifiers to result in 
> str-like behavior, we'll need to implement an __format__ somewhere (IntEnum, 
> I guess) that makes the "int or str" decision.

If this is the way format is supposed to work, then I'll add __format__ to 
IntEnum with simple logic that says if not 
letter format code is present, use string formatting, otherwise use int 
formatting.  That should be future proof.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18738>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to