Skip to content

Calling long running C# from Python: Do I really need to call PythonEngine.BeginAllowThreads() ? #2424

Discussion options

You must be logged in to vote

In #2209 (reply in thread) @lostmsu answered this question:

This might be confusing. I believe by default now GIL is not held when .NET code is called from Python. So actually in order to work with any Python objects you have to call and hold Py.GIL().

The wiki is outdated.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DareDevilDenis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant