]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #23606: Adds note to ctypes documentation regarding cdll.msvcrt.
authorSteve Dower <steve.dower@microsoft.com>
Sat, 12 Mar 2016 16:25:22 +0000 (08:25 -0800)
committerSteve Dower <steve.dower@microsoft.com>
Sat, 12 Mar 2016 16:25:22 +0000 (08:25 -0800)
Doc/library/ctypes.rst
Misc/NEWS

index 3b0c9562dd46dcbccf33efed01929dd0689c5f9d..828d7ca4a36d67639734739f0aba9cf8f6f3070b 100644 (file)
@@ -61,6 +61,12 @@ convention::
 
 Windows appends the usual ``.dll`` file suffix automatically.
 
+.. note::
+    Accessing the standard C library through ``cdll.msvcrt`` will use an
+    outdated version of the library that may be incompatible with the one
+    being used by Python. Where possible, use native Python functionality,
+    or else import and use the ``msvcrt`` module.
+
 On Linux, it is required to specify the filename *including* the extension to
 load a library, so attribute access can not be used to load libraries. Either the
 :meth:`LoadLibrary` method of the dll loaders should be used, or you should load
index f57aab19755230ebbf483ddb0932b5235d452640..df6ea422a0f777db6a7b39f0af14bd9a278358fd 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -284,6 +284,8 @@ Library
 Documentation
 -------------
 
+- Issue #23606: Adds note to ctypes documentation regarding cdll.msvcrt.
+
 - Issue #25500: Fix documentation to not claim that __import__ is searched for
   in the global scope.