]> granicus.if.org Git - python/commit
bpo-31801: Enum: add _ignore_ as class option (#5237)
authorEthan Furman <ethan@stoneleaf.us>
Mon, 22 Jan 2018 15:56:37 +0000 (07:56 -0800)
committerGitHub <noreply@github.com>
Mon, 22 Jan 2018 15:56:37 +0000 (07:56 -0800)
commita4b1bb4801f7a941ff9e86b96da539be1c288833
treea5cd81d18b3d10dc8f8b6cdf7d51e8172d5f7ff9
parent579e0b80b953b8a47385bc50844dbaac45d6f437
bpo-31801:  Enum:  add _ignore_ as class option (#5237)

* bpo-31801:  Enum:  add _ignore_ as class option

_ignore_ is a list, or white-space seperated str, of names that will not
be candidates for members; these names, and _ignore_ itself, are removed
from the final class.

* bpo-31801:  Enum:  add documentation for _ignore_

* bpo-31801: Enum: remove trailing whitespace

* bpo-31801: Enum: fix bulleted list format

* bpo-31801: add version added for _ignore_
Doc/library/enum.rst
Lib/enum.py
Lib/test/test_enum.py
Misc/NEWS.d/next/Library/2018-01-18-13-47-40.bpo-31801.3UGH1h.rst [new file with mode: 0644]