]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] bpo-37479: Enum - use correct __format__ (GH-14545)
authorEthan Furman <ethan@stoneleaf.us>
Sun, 13 Sep 2020 20:47:43 +0000 (13:47 -0700)
committerGitHub <noreply@github.com>
Sun, 13 Sep 2020 20:47:43 +0000 (13:47 -0700)
commit38c8d3930eb872258a82339bcba3bce1d0e3ac2c
treecf9087f277d04c2ebf320a55f4f41cb4f7c51e2a
parentbf50b0e80a8a0d651af2f953b662eeadd27c7c93
[3.8] bpo-37479: Enum - use correct __format__ (GH-14545)

* bpo-37479: on Enum subclasses with mixins, __format__ uses overridden __str__.
(cherry picked from commit 2f19e82fbe98ce86bcd98a176328af2808b678e8)

Co-authored-by: thatneat <thatneat@users.noreply.github.com>
Doc/library/enum.rst
Lib/enum.py
Lib/test/test_enum.py
Misc/ACKS
Misc/NEWS.d/next/Library/2019-07-02-12-43-57.bpo-37479.O53a5S.rst [new file with mode: 0644]