diff options
author | Steve Dower <steve.dower@microsoft.com> | 2016-03-12 16:26:29 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2016-03-12 16:26:29 (GMT) |
commit | 6d6b986d90ce80d89391876b5c1b81eab2546bb0 (patch) | |
tree | b089a28cf3546b7030c89eeb821b9fce01e1db2b | |
parent | 11b3918164fa53be2e9bcebf62f49955fdb5fa5d (diff) | |
parent | d669b6bd0ac449c1d311f83dfed9abc34704db17 (diff) | |
download | cpython-6d6b986d90ce80d89391876b5c1b81eab2546bb0.zip cpython-6d6b986d90ce80d89391876b5c1b81eab2546bb0.tar.gz cpython-6d6b986d90ce80d89391876b5c1b81eab2546bb0.tar.bz2 |
Issue #23606: Adds note to ctypes documentation regarding cdll.msvcrt.
-rw-r--r-- | Doc/library/ctypes.rst | 6 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index 58e1ea3..4a7309e 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -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 @@ -772,6 +772,8 @@ IDLE Documentation ------------- +- Issue #23606: Adds note to ctypes documentation regarding cdll.msvcrt. + - Issue #24952: Clarify the default size argument of stack_size() in the "threading" and "_thread" modules. Patch from Mattip. |