Re: [Python.NET] Embedding a Python interactive shell in a .NET application

2016-05-17 Thread Nils Becker
Hey, a while ago I wrote something like a light wrapper around Python.NET to embed CPython with numpy/scipy in a .NET GUI. It manages local/global dictionaries, automatically converts simple data types and numpy arrrays<->C# arrays and provides a plotting widget in C# that shows matplotlib plots.

[Python.NET] Decref in RunString

2015-06-08 Thread Nils Becker
Hello there, I have a quick question concerning the "RunString(string code, IntPtr globals, IntPtr locals)" routine. In it the parameter "locals" is decref'ed. Maybe I am missing something (could be, I do not know much about reference counting), but should something which the user passes be decref