Skip to content

Commit b274a2b

Browse files
Incorporate suggestion by @Shrey-N
Co-authored-by: Shrey Naithani <shrey.naithani@shelllite.tech>
1 parent aada866 commit b274a2b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/ctypes/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
from struct import calcsize as _calcsize
2020

2121
if __version__ != _ctypes_version:
22-
raise SystemError("Version number mismatch", __version__, _ctypes_version)
22+
raise SystemError(
23+
f"ctypes version mismatch: Python={__version__}, _ctypes={_ctypes_version}"
24+
)
2325

2426
if _os.name == "nt":
2527
from _ctypes import COMError, CopyComPointer, FormatError

0 commit comments

Comments
 (0)