diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-09-16 00:16:36 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-16 00:16:36 (GMT) |
| commit | 929112ef81ccef20d3aef25c8a1142059ee941da (patch) | |
| tree | 6cf804656766ed3b21d5ab765245b13fa8ef127a /Python/pythonmain.c | |
| parent | 8f8ebcca95d3b6ed0a522a9736ab53d6d4f0208c (diff) | |
| download | cpython-929112ef81ccef20d3aef25c8a1142059ee941da.zip cpython-929112ef81ccef20d3aef25c8a1142059ee941da.tar.gz cpython-929112ef81ccef20d3aef25c8a1142059ee941da.tar.bz2 | |
bpo-41789: honor object overrides in Enum classes (GH-22250)
EnumMeta double-checks that `__repr__`, `__str__`, `__format__`, and `__reduce_ex__` are not the same as `object`'s, and replaces them if they are -- even if that replacement was intentionally done in the Enum being constructed. This patch fixes that.
Automerge-Triggered-By: @ethanfurman
(cherry picked from commit 22415ad62555d79bd583b4a7d6a96006624a8277)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Diffstat (limited to 'Python/pythonmain.c')
0 files changed, 0 insertions, 0 deletions
