Python 3.19 中待移除的項目

  • ctypes

    • 在非 Windows 平台上,透過設定 _pack_ 而沒有設定 _layout_ 來隱式地切換到與 MSVC 相容的結構佈局。

  • hashlib:

    • In hash function constructors such as new() or the direct hash-named constructors such as md5() and sha256(), their optional initial data parameter could also be passed a keyword argument named data= or string= in various hashlib implementations.

      Support for the string keyword argument name is now deprecated and slated for removal in Python 3.19.

      Before Python 3.13, the string keyword parameter was not correctly supported depending on the backend implementation of hash functions. Prefer passing the initial data as a positional argument for maximum backwards compatibility.