In Windows existiert das ctypes.cdll.msvcrt
Objekt automatisch, wenn ich das Ctypes-Modul importiere, und es stellt die msvcrt
Microsoft C++ - Laufzeitbibliothek according to the docs dar.Verschiedene Versionen von msvcrt in ctypes
Allerdings merke ich, dass es auch eine find_msvcrt Funktion gibt, die "return the filename of the VC runtype library used by Python"
wird.
Weiter heißt es, "If you need to free memory, for example, allocated by an extension module with a call to the free(void *), it is important that you use the function in the same library that allocated the memory."
So ist meine Frage, was ist der Unterschied zwischen der ctypes.cdll.msvcrt
Bibliothek, die ich schon habe und die, die ich mit der find_msvcrt
Funktion laden kann? Unter welchen Umständen könnten sie nicht dieselbe Bibliothek sein?
verwandt: [Was sind die Unterschiede zwischen den Möglichkeiten zum Zugriff auf msvcrt in Python auf Windows?] (Https://Stackoverflow.com/q/30790494/4279) – jfs