diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2023-04-03 21:57:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-03 21:57:42 (GMT) |
commit | 5ffc1e5a21de9a30566095386236db44695d184a (patch) | |
tree | 613c9f9e3f5f89f304626c4cf468d6b1d2aaf44e /Doc/howto/enum.rst | |
parent | d3a7732dd54c27ae523bef73efbb0c580ce2fbc0 (diff) | |
download | cpython-5ffc1e5a21de9a30566095386236db44695d184a.zip cpython-5ffc1e5a21de9a30566095386236db44695d184a.tar.gz cpython-5ffc1e5a21de9a30566095386236db44695d184a.tar.bz2 |
gh-98298, gh-74730: [Enum] update docs (GH-103163)
fix FlagBoundary statements
add warning about reloading modules and enum identity
Diffstat (limited to 'Doc/howto/enum.rst')
-rw-r--r-- | Doc/howto/enum.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/howto/enum.rst b/Doc/howto/enum.rst index 4525acb..fc8ea55 100644 --- a/Doc/howto/enum.rst +++ b/Doc/howto/enum.rst @@ -372,6 +372,11 @@ below):: >>> Color.BLUE == 2 False +.. warning:: + + It is possible to reload modules -- if a reloaded module contains + enums, they will be recreated, and the new members may not + compare identical/equal to the original members. Allowed members and attributes of enumerations ---------------------------------------------- |