[issue35717] enum.Enum error on sys._getframe(2)

2019-01-30 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-30 Thread STINNER Victor
STINNER Victor added the comment: I was confused with PR, so here you have: * master: https://github.com/python/cpython/pull/11523 * 3.7: https://github.com/python/cpython/pull/11669 Both are merged, so I close the issue. Thanks Rémi Lapeyre for the fix! --

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1c79891026c57046f5ac596080ea60c515e0560a by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-35717: Fix KeyError exception raised when using enums and compile (GH-11523) (GH-11669)

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +11478, 11479, 11480 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +11478, 11479 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +11478 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-24 Thread miss-islington
miss-islington added the comment: New changeset 1fd06f1eca80dcbf3a916133919482a8327f3da4 by Miss Islington (bot) (Rémi Lapeyre) in branch 'master': bpo-35717: Fix KeyError exception raised when using enums and compile (GH-11523)

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-11 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +11108 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-11 Thread STINNER Victor
STINNER Victor added the comment: > That PR does not go with this issue. ;) It does. You removed the link to PR 11523 which is a fix for this issue. -- ___ Python tracker

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-11 Thread Ethan Furman
Change by Ethan Furman : -- pull_requests: -11107 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-11 Thread STINNER Victor
STINNER Victor added the comment: > Hi, PR https://github.com/python/cpython/pull/11521 should fix the issue. It's PR 11523. -- ___ Python tracker ___

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-11 Thread Ethan Furman
Ethan Furman added the comment: That PR does not go with this issue. ;) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-11 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi, PR https://github.com/python/cpython/pull/11521 should fix the issue. -- ___ Python tracker ___

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-11 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +11107 stage: test needed -> patch review ___ Python tracker ___ ___

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-11 Thread Ethan Furman
Ethan Furman added the comment: Marking this as "easy". It needs a test showing the failing behavior, then the fix. -- keywords: +easy ___ Python tracker ___

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-11 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-11 Thread Ethan Furman
Ethan Furman added the comment: Looks like the following code: if module is None: try: module = sys._getframe(2).f_globals['__name__'] except (AttributeError, ValueError) as exc: pass needs to have `KeyError` added to the

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-11 Thread STINNER Victor
STINNER Victor added the comment: The bug has been reported in my perf project: https://github.com/vstinner/perf/issues/49 -- ___ Python tracker ___

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-11 Thread STINNER Victor
New submission from STINNER Victor : sys._getframe(2) fails in the following example: code = "from enum import Enum; Enum('Animal', 'ANT BEE CAT DOG')" code = compile(code, "", "exec") global_ns = {} local_ls = {} exec(code, global_ns, local_ls) Error with Python 3.7.2 (Fedora 29): Traceback