https://github.com/python/cpython/commit/9f153a2acf949cee1d70915d5158e91fda991bcf commit: 9f153a2acf949cee1d70915d5158e91fda991bcf branch: 3.12 author: Miss Islington (bot) <[email protected]> committer: AA-Turner <[email protected]> date: 2024-08-14T22:30:44+01:00 summary:
[3.12] gh-123005: Add version added in enum.Flag.__len__ (GH-123007) (#123025) gh-123005: Add version added in enum.Flag.__len__ (GH-123007) (cherry picked from commit 8e2dc7f380c7ffe6b0fe525b4d0558aaed9d7145) Co-authored-by: Damien <[email protected]> files: M Doc/library/enum.rst diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index 3d0747bf5c7faf..6e2872b9c70731 100644 --- a/Doc/library/enum.rst +++ b/Doc/library/enum.rst @@ -560,6 +560,8 @@ Data Types >>> len(white) 3 + .. versionadded:: 3.11 + .. method:: __bool__(self): Returns *True* if any members in flag, *False* otherwise:: _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
