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

Commitc63d7c9

Browse files
gh-101614: Don't treat python3_d.dll as a Python DLL when checking extension modules for incompatibility (GH-101615)
(cherry picked from commit3a88de7)Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
1 parentc51cd54 commitc63d7c9

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Correctly handle extensions built against debug binaries that reference ``python3_d.dll``.

‎Python/dynload_win.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,15 @@ static char *GetPythonImport (HINSTANCE hModule)
123123
!strncmp(import_name,"python",6)) {
124124
char*pch;
125125

126-
#ifndef_DEBUG
127-
/* In a release version, don't claim that python3.dll is
128-
a Python DLL. */
126+
/* Don't claim that python3.dll is a Python DLL. */
127+
#ifdef_DEBUG
128+
if (strcmp(import_name,"python3_d.dll")==0) {
129+
#else
129130
if (strcmp(import_name,"python3.dll")==0) {
131+
#endif
130132
import_data+=20;
131133
continue;
132134
}
133-
#endif
134135

135136
/* Ensure python prefix is followed only
136137
by numbers to the end of the basename */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp