Windows では、ctypes.cdll.msvcrt
ctypes モジュールをインポートするとオブジェクトが自動的に存在し、docs に従ってmsvcrt
Microsoft C++ ランタイム ライブラリを表します。
ただし、 find_msvcrt関数もあることに気付きました"return the filename of the VC runtype library used by Python"
。
さらに、次のように述べています。"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."
ctypes.cdll.msvcrt
だから私の質問は、私がすでに持っているライブラリとfind_msvcrt
関数でロードできるライブラリの違いは何ですか? どのような特定の状況下で、それらが同じライブラリではない可能性がありますか?