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
This repository was archived by the owner on Jul 22, 2023. It is now read-only.
/pythonnetPublic archive
forked frompythonnet/pythonnet

Commitf20bcf6

Browse files
ftreurnifilmor
authored andcommitted
Fix so that Runtime.PyModuleType is retrieved via Python.dll (pythonnet#904) (pythonnet#929)
1 parent1ce630e commitf20bcf6

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

‎AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
- David Lassonde ([@lassond](https://github.com/lassond))
2828
- David Lechner ([@dlech](https://github.com/dlech))
2929
- Dmitriy Se ([@dmitriyse](https://github.com/dmitriyse))
30+
- Florian Treurniet ([@ftreurni](https://github.com/ftreurni))
3031
- He-chien Tsai ([@t3476](https://github.com/t3476))
3132
- Inna Wiesel ([@inna-w](https://github.com/inna-w))
3233
- Ivan Cronyn ([@cronan](https://github.com/cronan))

‎CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ This document follows the conventions laid out in [Keep a CHANGELOG][].
1919

2020
###Fixed
2121

22+
- Fixed runtime that fails loading when using pythonnet in an environment
23+
together with Nuitka
24+
2225
##[2.4.0][]
2326

2427
###Added
@@ -61,7 +64,7 @@ This document follows the conventions laid out in [Keep a CHANGELOG][].
6164
- Fixed conversion of 'float' and 'double' values ([#486][i486])
6265
- Fixed 'clrmethod' for python 2 ([#492][i492])
6366
- Fixed double calling of constructor when deriving from .NET class ([#495][i495])
64-
- Fixed`clr.GetClrType` when iterating over`System` members ([#607][p607])
67+
- Fixed`clr.GetClrType` when iterating over`System` members ([#607][p607])
6568
- Fixed`LockRecursionException` when loading assemblies ([#627][i627])
6669
- Fixed errors breaking .NET Remoting on method invoke ([#276][i276])
6770
- Fixed PyObject.GetHashCode ([#676][i676])

‎src/runtime/runtime.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ internal static void Initialize(bool initSigs = false)
205205
PyNotImplemented=PyObject_GetAttrString(op,"NotImplemented");
206206
PyBaseObjectType=PyObject_GetAttrString(op,"object");
207207

208-
PyModuleType=PyObject_Type(op);
209208
PyNone=PyObject_GetAttrString(op,"None");
210209
PyTrue=PyObject_GetAttrString(op,"True");
211210
PyFalse=PyObject_GetAttrString(op,"False");
@@ -302,6 +301,7 @@ internal static void Initialize(bool initSigs = false)
302301
dllLocal=loader.Load(_PythonDll);
303302
}
304303
_PyObject_NextNotImplemented=loader.GetFunction(dllLocal,"_PyObject_NextNotImplemented");
304+
PyModuleType=loader.GetFunction(dllLocal,"PyModule_Type");
305305

306306
if(dllLocal!=IntPtr.Zero)
307307
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp