Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd7d703a

Browse files
committed
mention the need for PythonEngine.Initialize and BeginAllowThreads in the README
1 parenta5e9b55 commitd7d703a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ Embedding Python in .NET
5050
(internal, derived from ``MissingMethodException``) upon calling ``Initialize``.
5151
Typical values are ``python38.dll`` (Windows), ``libpython3.8.dylib`` (Mac),
5252
``libpython3.8.so`` (most other Unix-like operating systems).
53+
- Then call ``PythonEngine.Initialize()``. If you plan to use Python objects from
54+
multiple threads, also call ``PythonEngine.BeginAllowThreads()``.
5355
- All calls to python should be inside a
5456
``using (Py.GIL()) {/* Your code here */}`` block.
5557
- Import python modules using ``dynamic mod = Py.Import("mod")``, then

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp