[issue31968] exec(): method's default arguments from dict-inherited globals

2019-06-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue31968] exec(): method's default arguments from dict-inherited globals

2019-06-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 059b9ea5ac98f432e41b05d1fa5aab4ffa22df4d by Raymond Hettinger (Anthony Shaw) in branch 'master': bpo-31968: Documentation -- add clarification on the globals dict for exec() (GH-13140) https://github.com/python/cpython/commit/059b9ea5ac98f43

[issue31968] exec(): method's default arguments from dict-inherited globals

2019-05-06 Thread anthony shaw
anthony shaw added the comment: Added a PR for the documentation clarification. -- nosy: +anthonypjshaw ___ Python tracker ___ ___

[issue31968] exec(): method's default arguments from dict-inherited globals

2019-05-06 Thread anthony shaw
Change by anthony shaw : -- pull_requests: +13053 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31968] exec(): method's default arguments from dict-inherited globals

2017-11-07 Thread Ilya Polyakovskiy
Change by Ilya Polyakovskiy : -- pull_requests: +4274 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue31968] exec(): method's default arguments from dict-inherited globals

2017-11-07 Thread Ilya Polyakovskiy
Change by Ilya Polyakovskiy : -- keywords: +patch pull_requests: +4272 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue31968] exec(): method's default arguments from dict-inherited globals

2017-11-07 Thread R. David Murray
R. David Murray added the comment: Yes, that's the way it works (and is intended to work, for performance reasons). The documentation on this could be improved...while it does say globals must be a dict and that locals can be any mapping object, it does it in a sentence that is a bit confusi

[issue31968] exec(): method's default arguments from dict-inherited globals

2017-11-07 Thread Ilya Polyakovskiy
Change by Ilya Polyakovskiy : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue31968] exec(): method's default arguments from dict-inherited globals

2017-11-07 Thread Ilya Polyakovskiy
New submission from Ilya Polyakovskiy : I'm using exec() to run code with globals object inherited from dict. The problem is overloaded __getitem__ doesn't called to load default argument for class methods. Here the example. Let's assume we create some variable storage for code execution clas