diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-06-23 06:46:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-23 06:46:33 (GMT) |
commit | 321acd4138b65363be1f11e5b04f86c204b27a2f (patch) | |
tree | cef2976fe1849ee9c307b6787ec4e6272fcb803e /Objects/codeobject.c | |
parent | 00a25f87f37f02cd5c0477c5c642a0a7eb322a04 (diff) | |
download | cpython-321acd4138b65363be1f11e5b04f86c204b27a2f.zip cpython-321acd4138b65363be1f11e5b04f86c204b27a2f.tar.gz cpython-321acd4138b65363be1f11e5b04f86c204b27a2f.tar.bz2 |
gh-91456: [Enum] Deprecate default auto() behavior with mixed value types (GH-91457)
When used with plain Enum, auto() returns the last numeric value assigned, skipping any incompatible member values (such as strings); starting in 3.13 the default auto() for plain Enums will require all the values to be of compatible types, and will return a new value that is 1 higher than any existing value.
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
(cherry picked from commit fb1e9506c14ef32d5bec126dad6fa769c8c054f6)
Co-authored-by: Oscar R <89599049+oscar-LT@users.noreply.github.com>
Diffstat (limited to 'Objects/codeobject.c')
0 files changed, 0 insertions, 0 deletions