changeset: 100504:f9dc71b566fb branch: 3.5 parent: 100501:5564cf3ba523 user: Steve Dower date: Sat Mar 12 08:25:22 2016 -0800 files: Doc/library/ctypes.rst Misc/NEWS description: Issue #23606: Adds note to ctypes documentation regarding cdll.msvcrt. diff -r 5564cf3ba523 -r f9dc71b566fb Doc/library/ctypes.rst --- a/Doc/library/ctypes.rst Sat Mar 12 08:06:23 2016 -0800 +++ b/Doc/library/ctypes.rst Sat Mar 12 08:25:22 2016 -0800 @@ -61,6 +61,12 @@ 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 diff -r 5564cf3ba523 -r f9dc71b566fb Misc/NEWS --- a/Misc/NEWS Sat Mar 12 08:06:23 2016 -0800 +++ b/Misc/NEWS Sat Mar 12 08:25:22 2016 -0800 @@ -284,6 +284,8 @@ 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.