[issue1793] ctypes.util.find_msvcrt() function

Thomas Heller report at bugs.python.org
Fri Jan 11 15:59:38 CET 2008


New submission from Thomas Heller:

I'm uploading this patch for discussion, in case someone cares.

This code (for Windows) adds a function ctypes.util.find_msvcrt().  This
function returns the filename of the MSVC runtime library that the
current Python executable uses.  If calling functions from the C runtime
library, it is very important to use the SAME dll that Python uses.

Further, this patch changes ctypes.util.find_library(name) so that the
MSVC runtime library name is returned when searching for "c" or "m".

----------
assignee: theller
components: Extension Modules
files: ctypes-util.patch
keywords: patch
messages: 59713
nosy: theller
severity: normal
status: open
title: ctypes.util.find_msvcrt() function
type: rfe
versions: Python 2.6
Added file: http://bugs.python.org/file9123/ctypes-util.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1793>
__________________________________


More information about the Python-bugs-list mailing list