[issue30616] Cannot use functional API to create enum with zero values

2017-08-17 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the bugreport Gerrit Holl and thanks for fixes Dong-hee Na! -- nosy: +haypo resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker

[issue30616] Cannot use functional API to create enum with zero values

2017-07-26 Thread Dong-hee Na
Changes by Dong-hee Na : -- pull_requests: +2941 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30616] Cannot use functional API to create enum with zero values

2017-07-25 Thread Dong-hee Na
Changes by Dong-hee Na : -- pull_requests: +2940 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30616] Cannot use functional API to create enum with zero values

2017-06-24 Thread Ethan Furman
Ethan Furman added the comment: New changeset 504b95047a8ada06ab630abce55ac2f85566ca37 by ethanfurman (Dong-hee Na) in branch '3.6': [3.6] bpo-30616: Functional API of enum allows to create empty enums. (#2304) (#2324) https://github.com/python/cpython/commit/504b95047a8ada06ab630abce55ac2f855

[issue30616] Cannot use functional API to create enum with zero values

2017-06-21 Thread Dong-hee Na
Changes by Dong-hee Na : -- pull_requests: +2373 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30616] Cannot use functional API to create enum with zero values

2017-06-21 Thread Ethan Furman
Ethan Furman added the comment: 3.7 fixed, now need 3.6. -- stage: test needed -> backport needed ___ Python tracker ___ ___ Python-bu

[issue30616] Cannot use functional API to create enum with zero values

2017-06-21 Thread Ethan Furman
Ethan Furman added the comment: New changeset dcc8ce44c74492670e6bfbde588a2acbf8f365e0 by ethanfurman (Dong-hee Na) in branch 'master': bpo-30616: Functional API of enum allows to create empty enums. (#2304) https://github.com/python/cpython/commit/dcc8ce44c74492670e6bfbde588a2acbf8f365e0 ---

[issue30616] Cannot use functional API to create enum with zero values

2017-06-20 Thread Dong-hee Na
Changes by Dong-hee Na : -- pull_requests: +2351 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30616] Cannot use functional API to create enum with zero values

2017-06-09 Thread Ethan Furman
Changes by Ethan Furman : -- assignee: -> ethan.furman components: +Library (Lib) priority: normal -> low stage: -> test needed versions: +Python 3.7 ___ Python tracker ___ ___

[issue30616] Cannot use functional API to create enum with zero values

2017-06-09 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30616] Cannot use functional API to create enum with zero values

2017-06-09 Thread Gerrit Holl
New submission from Gerrit Holl: The OO API allows to create empty enums, i.e. without any values. However, the functional API does not, as this will result in an IndexError as shown below: In [1]: import enum In [2]: class X(enum.IntFlag): pass In [3]: Y = enum.IntFlag("Y", [])