diff options
author | 2021-02-08 17:32:38 -0800 | |
---|---|---|
committer | 2021-02-08 17:32:38 -0800 | |
commit | d65b9033d6d092552775f6f5e41e7647100f9f2c (patch) | |
tree | 2119b986b118b3dd773d9015f1bfd00f3114bbae /Misc | |
parent | bpo-13501: allow choosing between readline and libedit (GH-24189) (diff) | |
download | cpython-d65b9033d6d092552775f6f5e41e7647100f9f2c.tar.gz cpython-d65b9033d6d092552775f6f5e41e7647100f9f2c.tar.bz2 cpython-d65b9033d6d092552775f6f5e41e7647100f9f2c.zip |
bpo-43162: [Enum] deprecate enum member.member access (GH-24486)
In 3.5 (?) a speed optimization made it possible to access members as
attributes of other members, i.e. ``Color.RED.BLUE``. This was always
discouraged in the docs, and other recent optimizations has made that
one no longer necessary. Because some may be relying on it anyway, it
is being deprecated in 3.10, and will be removed in 3.11.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2021-02-08-16-27-00.bpo-43162.t-W7h3.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-02-08-16-27-00.bpo-43162.t-W7h3.rst b/Misc/NEWS.d/next/Library/2021-02-08-16-27-00.bpo-43162.t-W7h3.rst new file mode 100644 index 0000000000..fef5915e76 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-02-08-16-27-00.bpo-43162.t-W7h3.rst @@ -0,0 +1,2 @@ +deprecate unsupported ability to access enum members as attributes of other +enum members |