Python 3.13 中待移除的項目¶
模組(請見 PEP 594):
aifcaudioopcgicgitbchunkcryptimghdrmailcapmsilibnisnntplibossaudiodevpipessndhdrspwdsunautelnetlibuuxdrlib
其他模組:
lib2to3和 2to3 程式 (gh-84540)
API:
configparser.LegacyInterpolation(gh-90765)locale.resetlocale()(gh-90817)turtle.RawTurtle.settiltangle()(gh-50096)unittest.findTestCases()(gh-50096)unittest.getTestCaseNames()(gh-50096)unittest.makeSuite()(gh-50096)unittest.TestProgram.usageExit()(gh-67048)webbrowser.MacOSX(gh-86421)classmethod描述器鏈接 (gh-89519)importlib.resources的已棄用方法:contents()is_resource()open_binary()open_text()path()read_binary()read_text()
請改用
importlib.resources.files()。請參閱 importlib-resources: Migrating from Legacy (gh-106531)