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

2017-11-07 Thread Ilya Polyakovskiy
Change by Ilya Polyakovskiy <ilya.polyakovs...@jetbrains.com>: -- pull_requests: +4274 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

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

2017-11-07 Thread Ilya Polyakovskiy
Change by Ilya Polyakovskiy <ilya.polyakovs...@jetbrains.com>: -- keywords: +patch pull_requests: +4272 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

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

2017-11-07 Thread Ilya Polyakovskiy
Change by Ilya Polyakovskiy <ilya.polyakovs...@jetbrains.com>: -- type: -> behavior ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

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

2017-11-07 Thread Ilya Polyakovskiy
New submission from Ilya Polyakovskiy <ilya.polyakovs...@jetbrains.com>: 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 va