New Features:
dict objects must preserve insertion-order
bytes.fromhex() and bytearray.fromhex() now ignore all ASCII whitespace, not only spaces
str, bytes, and bytearray gained support for the new isascii() method, which can be used to
test if a string or bytes contain only the ASCII characters
ImportError now displays module name and module __file__ path when from ... import ... fails
object.__format__(x, '') is now equivalent to str(x) rather than format(str(self), '')
types.TracebackType can now be
instantiated from Python code, and the tb_next attribute on tracebacks is now writable
-m switch, sys.path[0] is now eagerly expanded to the full starting directory path,
rather than being left as the empty directory (which allows imports from the current working directory
at the time when an import occurs)
-X importtime option or the PYTHONPROFILEIMPORTTIME environment variable can be used to
show the timing of each module import
Changes to built-in modules:
Notes
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。