mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
gh-98298, gh-74730: [Enum] update docs (GH-103163)
fix FlagBoundary statements
add warning about reloading modules and enum identity
(cherry picked from commit 5ffc1e5a21
)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
This commit is contained in:
parent
823622212e
commit
cf72cc25f6
3 changed files with 34 additions and 30 deletions
|
@ -371,6 +371,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
|
||||
----------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue