This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eamanu
Recipients eamanu, paul.moore, schperplata, steve.dower, tim.golden, zach.ware
Date 2019-03-26.01:05:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1553562301.87.0.336757991122.issue36426@roundup.psfhosted.org>
In-reply-to
Content
I test on 3.5 and 3.8 running not in an func and I don't have the problem:

Python 3.8.0a2+ (heads/bpo-36287:ba8f342623, Mar 25 2019, 21:57:16) 
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> a = 'bar'
>>> b = 42
>>> c  = a + ' = c'
>>> c
'bar = c'
>>> exec(c)
>>> 'bar' in locals()
True
>>> print(locals()['bar'])
bar = c
>>> print(bar)
bar = c
>>> print("'bar' OK:", bar)
'bar' OK: bar = c
History
Date User Action Args
2019-03-26 01:05:01eamanusetrecipients: + eamanu, paul.moore, tim.golden, zach.ware, steve.dower, schperplata
2019-03-26 01:05:01eamanusetmessageid: <1553562301.87.0.336757991122.issue36426@roundup.psfhosted.org>
2019-03-26 01:05:01eamanulinkissue36426 messages
2019-03-26 01:05:01eamanucreate