You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RunSimpleString variarible not visible in Eval #474
How to use Eval() variarible after RunSimpleString()
Details
PythonEngine initialize very good.
After PythonEngine.RunSimpleString("a=1") code PythonEngine.RunSimpleString("print(a)") printing char "1".
On PythonEngine.Eval this command run this exception "name "a" is not defined".
On Fri, May 26, 2017, 3:42 AM grig27 ***@***.***> wrote:
Environment
- Pythonnet version: 2.3.0.0
- Python version: 2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32
bit (Intel)]
- Operating System: Windows 7
Details
How to use Eval() variarible after RunSimpleString()
Details
PythonEngine initialize vary good.
After PythonEngine.RunSimpleString("a=1") code
PythonEngine.RunSimpleString("print(a)") printing char "1".
On PythonEngine.Eval this command run this exception "name "a" is not
defined".
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#474>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHgZ5daqURIHuEuknplqRVtIZG1BQu_4ks5r9pBhgaJpZM4NnU_l>
.
Activity
den-run-ai commentedon May 26, 2017
den-run-ai commentedon May 27, 2017
Here is how eval supposed to be used with local variables:
pythonnet/src/embed_tests/pyrunstring.cs
Line 34 in 8ce4e0e
I'm going to keep this issue open, so that the corresponding docs can be added.
filmor commentedon Jul 11, 2017
Since
RunSimpleStringis obsolete now andPyScopeprovides a much nicer interface, I'll close this.