[issue31801] vars() manipulation encounters problems with Enum

2018-09-10 Thread Ethan Furman
Change by Ethan Furman : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue31801] vars() manipulation encounters problems with Enum

2018-01-22 Thread Ethan Furman
Ethan Furman added the comment: New changeset a4b1bb4801f7a941ff9e86b96da539be1c288833 by Ethan Furman in branch 'master': bpo-31801: Enum: add _ignore_ as class option (#5237) https://github.com/python/cpython/commit/a4b1bb4801f7a941ff9e86b96da539be1c288833 --

[issue31801] vars() manipulation encounters problems with Enum

2018-01-18 Thread Ethan Furman
Change by Ethan Furman : -- keywords: +patch pull_requests: +5083 stage: needs patch -> patch review ___ Python tracker ___

[issue31801] vars() manipulation encounters problems with Enum

2018-01-18 Thread Ethan Furman
Change by Ethan Furman : -- stage: test needed -> needs patch ___ Python tracker ___ ___

[issue31801] vars() manipulation encounters problems with Enum

2017-11-15 Thread Eric Wieser
Eric Wieser added the comment: Not necessarily an argument against this feature, but two workarounds exist for this already: 1. Use `nonlocal` to prevent `value` going into the class namespace: value = None class BaudRate(enum.Enum):

[issue31801] vars() manipulation encounters problems with Enum

2017-10-16 Thread Ethan Furman
New submission from Ethan Furman : The following code should work (from https://stackoverflow.com/a/46780742/208880): class BaudRate(Enum): cls = vars() regexp = r"(?:^|,)B(?P\d+)" rates = sorted(map(int, re.findall(regexp,