Re: [Python.NET] PythonEngine a singleton?

Denis Akhiyarov <[email protected]> Sat, 17 Mar 2018 03:11:09 +0000
Newsgroups gmane.comp.python.dotnet
Message-ID <CALxxJLTn5yF+m6wohF=5iUoRDqSYV+TLyKrwZ7oE9U7XAs+bkg@mail.gmail.com>
You should treat PythonEngine as Singleton, for your use case search for
PyScope in pythonnet repo on GitHub:

https://github.com/pythonnet/pythonnet/search?utf8=✓&q=pyscope&type=

On Fri, Mar 16, 2018, 1:40 PM Phat Loc <[email protected]> wrote:

> Hi All,
>
> I new to to Python and PythonDotNet. However, I am able to embed it in a
> clr application. Should the PythonEngine be treated as sigleton? When does
> it make sense to create an instance of the PythonEngine versus just
> calling the static methods?
>
> Thanks,
>
> Phat
> _________________________________________________
> Python.NET mailing list - [email protected]
> https://mail.python.org/mailman/listinfo/pythondotnet
>

_________________________________________________
Python.NET mailing list - [email protected]
https://mail.python.org/mailman/listinfo/pythondotnet