+++++++++++
Python News
+++++++++++
What's New in Python 3.10.0 alpha 7?
====================================
*Release date: 2021-04-05*
Security
--------
- bpo-42988: CVE-2021-3426: Remove the ``getfile`` feature of the
:mod:`pydoc` module which could be abused to read arbitrary files on the
disk (directory traversal vulnerability). Moreover, even source code of
Python modules can contain sensitive data like passwords. Vulnerability
reported by David Schwörer.
- bpo-43285: :mod:`ftplib` no longer trusts the IP address value returned
from the server in response to the PASV command by default. This prevents
a malicious FTP server from using the response to probe IPv4 address and
port combinations on the client network.
Code that requires the former vulnerable behavior may set a
``trust_server_pasv_ipv4_address`` attribute on their :class:`ftplib.FTP`
instances to ``True`` to re-enable it.
- bpo-43439: Add audit hooks for :func:`gc.get_objects`,
:func:`gc.get_referrers` and :func:`gc.get_referents`. Patch by Pablo
Galindo.
Core and Builtins
-----------------
- bpo-27129: Update CPython bytecode magic number.
- bpo-43672: Raise ImportWarning when calling find_loader().
- bpo-43660: Fix crash that happens when replacing ``sys.stderr`` with a
callable that can remove the object while an exception is being printed.
Patch by Pablo Galindo.
- bpo-27129: The bytecode interpreter uses instruction, rather byte, offsets
internally. This reduces the number of EXTENDED_ARG instructions needed
and streamlines instruction dispatch a bit.
- bpo-40645: Fix reference leak in the :mod:`_hashopenssl` extension. Patch
by Pablo Galindo.
- bpo-42134: Calls to find_module() by the import system now raise
ImportWarning.
- bpo-41064: Improve the syntax error for invalid usage of double starred
elements ('**') in f-strings. Patch by Pablo Galindo.
- bpo-43575: Speed up calls to ``map()`` by using the :pep:`590`
``vectorcall`` calling convention. Patch by Dong-hee Na.
- bpo-42137: The import system now prefers using ``__spec__`` for
``ModuleType.__repr__`` over ``module_repr()``.
- bpo-43452: Added micro-optimizations to ``_PyType_Lookup()`` to improve
cache lookup performance in the common case of cache hits.
- bpo-43555: Report the column offset for :exc:`SyntaxError` for invalid
line continuation characters. Patch by Pablo Galindo.
- bpo-43517: Fix misdetection of circular imports when using ``from pkg.mod
import attr``, which caused false positives in non-trivial multi-threaded
code.
- bpo-43497: Emit SyntaxWarnings for assertions with tuple constants, this
is a regression introduced in python3.7
- bpo-39316: Tracing now has correct line numbers for attribute accesses
when the the attribute is on a different line from the object. Improves
debugging and profiling for multi-line method chains.
- bpo-35883: Python no longer fails at startup with a fatal error if a
command line argument contains an invalid Unicode character. The
:c:func:`Py_DecodeLocale` function now escapes byte sequences which would
be decoded as Unicode characters outside the [U+0000; U+10ffff] range.
- bpo-43410: Fix a bug that was causing the parser to crash when emiting
syntax errors when reading input from stdin. Patch by Pablo Galindo
- bpo-43406: Fix a possible race condition where ``PyErr_CheckSignals``
tries to execute a non-Python signal handler.
- bpo-42128: Add ``__match_args__`` to :c:type:`structsequence` based
classes. Patch by Pablo Galindo.
- bpo-43390: CPython now sets the ``SA_ONSTACK`` flag in ``PyOS_setsig`` for
the VM's default signal handlers. This is friendlier to other in-process
code that an extension module or embedding use could pull in (such as
Golang's cgo) where tiny thread stacks are the norm and ``sigaltstack()``
has been used to provide for signal handlers. This is a no-op change for
the vast majority of processes that don't use sigaltstack.
- bpo-43287: Speed up calls to ``filter()`` by using the :pep:`590`
``vectorcall`` calling convention. Patch by Dong-hee Na.
- bpo-37448: Add a radix tree based memory map to track in-use obmalloc
arenas. Use to replace the old implementation of address_in_range(). The
radix tree approach makes it easy to increase pool sizes beyond the OS
page size. Boosting the pool and arena size allows obmalloc to handle a
significantly higher percentage of requests from its ultra-fast paths.
It also has the advantage of eliminating the memory unsanitary behavior of
the previous address_in_range(). The old address_in_range() was marked
with the annotations _Py_NO_SANITIZE_ADDRESS, _Py_NO_SANITIZE_THREAD, and
_Py_NO_SANITIZE_MEMORY. Those annotations are no longer needed.
To disable the radix tree map, set a preprocessor flag as follows:
`-DWITH_PYMALLOC_RADIX_TREE=0`.
Co-authored-by: Tim Peters <tim.peters@gmail.com>
- bpo-29988: Only handle asynchronous exceptions and requests to drop the
GIL when returning from a call or on the back edges of loops. Makes sure
that :meth:`__exit__` is always called in with statements, even for
interrupts.
Library
-------
- bpo-43720: Document various stdlib deprecations in imp, pkgutil, and
importlib.util for removal in Python 3.12.
- bpo-43433: :class:`xmlrpc.client.ServerProxy` no longer ignores query and
fragment in the URL of the server.
- bpo-31956: The :meth:`~array.array.index` method of :class:`array.array`
now has optional *start* and *stop* parameters.
- bpo-40066: Enum: adjust ``repr()`` to show only enum and member name (not
value, nor angle brackets) and ``str()`` to show only member name. Update
and improve documentation to match.
- bpo-42136: Deprecate all module_repr() methods found in importlib as their
use is being phased out by Python 3.12.
- bpo-35930: Raising an exception raised in a "future" instance will create
reference cycles.
- bpo-41369: Finish updating the vendored libmpdec to version 2.5.1. Patch
by Stefan Krah.
- bpo-43422: Revert the _decimal C API which was added in bpo-41324.
- bpo-43577: Fix deadlock when using :class:`ssl.SSLContext` debug callback
with :meth:`ssl.SSLContext.sni_callback`.
- bpo-43571: It's now possible to create MPTCP sockets with IPPROTO_MPTCP
- bpo-43542: ``image/heic`` and ``image/heif`` were added to
:mod:`mimetypes`.
- bpo-40645: The :mod:`hmac` module now uses OpenSSL's HMAC implementation
when digestmod argument is a hash name or builtin hash function.
- bpo-43510: Implement :pep:`597`: Add ``EncodingWarning`` warning, ``-X
warn_default_encoding`` option, :envvar:`PYTHONWARNDEFAULTENCODING`
environment variable and ``encoding="locale"`` argument value.
- bpo-43521: ``ast.unparse`` can now render NaNs and empty sets.
- bpo-42914: :func:`pprint.pprint` gains a new boolean
``underscore_numbers`` optional argument to emit integers with thousands
separated by an underscore character for improved readability (for example
``1_000_000`` instead of ``1000000``).
- bpo-41361: :meth:`~collections.deque.rotate` calls are now slightly faster
due to faster argument parsing.
- bpo-43423: :func:`subprocess.communicate` no longer raises an IndexError
when there is an empty stdout or stderr IO buffer during a timeout on
Windows.
- bpo-27820: Fixed long-standing bug of smtplib.SMTP where doing AUTH LOGIN
with initial_response_ok=False will fail.
The cause is that SMTP.auth_login _always_ returns a password if provided
with a challenge string, thus non-compliant with the standard for AUTH
LOGIN.
Also fixes bug with the test for smtpd.
- bpo-43445: Add frozen modules to :data:`sys.stdlib_module_names`. For
example, add ``"_frozen_importlib"`` and ``"_frozen_importlib_external"``
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
由于Python官方原因, Python.3.10无法在win8以下系统(包括win7)中运行, 这是我整理的兼容win7的Python 3.10版本。本安装包还提供了一些工具和补丁, 帮助python兼容win7系统。 经测试, 本Python.3.10支持运行IDLE, 支持使用pip安装、运行pygame等库, 功能完备。本python为32位版本。 Python 3.10的新功能: 优化了SyntaxError等错误消息的显示; with语句的使用更灵活。 下载后安装软件方法: 1.将"python 3.10 安装及卸载(拖入python.exe运行).py"拖入python.exe运行, 输入a, 选择安装, 即可安装python 3.10。 (如果运行不了, 双击"重置sys.path.reg", 导入注册表) 2.双击"运行 IDLE (Python 3.10).bat", 检验IDLE运行是否正常。 3.打开cmd, 转到"Python安装目录\Scripts"目录下, 输入"pip install pygame", 检验pip运行是否正常。
资源详情
资源评论
资源推荐
收起资源包目录
Python 3.10 下载 (含兼容win7补丁)(32位版本) (2000个子文件)
nmakehlp.c 21KB
_pydoc.css 102B
unicodeobject.h 44KB
unicodeobject.h 36KB
pyport.h 32KB
pycore_ast.h 31KB
abstract.h 29KB
object.h 27KB
dynamic_annotations.h 22KB
pyconfig.h 21KB
object.h 20KB
pycore_atomic.h 17KB
abstract.h 14KB
pyerrors.h 12KB
pystate.h 11KB
modsupport.h 10KB
pycore_interp.h 10KB
datetime.h 10KB
pytime.h 9KB
longobject.h 9KB
pymath.h 8KB
objimpl.h 8KB
initconfig.h 8KB
code.h 7KB
codecs.h 7KB
pycore_gc.h 7KB
pycore_ast_state.h 6KB
pythread.h 6KB
pycore_object.h 6KB
ceval.h 6KB
pycore_initconfig.h 6KB
opcode.h 5KB
pycore_symtable.h 5KB
pycore_bitutils.h 5KB
pystate.h 5KB
pyerrors.h 5KB
pycore_pylifecycle.h 5KB
pycore_runtime.h 5KB
pymacro.h 5KB
pythonrun.h 5KB
floatobject.h 4KB
pyhash.h 4KB
funcobject.h 4KB
pycore_hashtable.h 4KB
methodobject.h 4KB
bytesobject.h 4KB
pycore_pystate.h 4KB
fileutils.h 4KB
dictobject.h 4KB
pymem.h 4KB
longintrepr.h 4KB
Python.h 4KB
dictobject.h 4KB
pycore_ceval.h 4KB
pymem.h 3KB
setobject.h 3KB
pycore_bytes_methods.h 3KB
objimpl.h 3KB
genobject.h 3KB
pycore_pymem.h 3KB
frameobject.h 3KB
pycore_hamt.h 3KB
import.h 3KB
descrobject.h 3KB
pymacconfig.h 3KB
pycore_asdl.h 3KB
pycore_traceback.h 3KB
weakrefobject.h 3KB
pycore_condvar.h 3KB
memoryobject.h 3KB
pycore_pyarena.h 3KB
token.h 3KB
bytesobject.h 3KB
sliceobject.h 3KB
py_curses.h 3KB
moduleobject.h 2KB
typeslots.h 2KB
pycore_atomic_funcs.h 2KB
pyexpat.h 2KB
pydtrace.h 2KB
pylifecycle.h 2KB
pycore_pyerrors.h 2KB
compile.h 2KB
structmember.h 2KB
pycore_pathconfig.h 2KB
context.h 2KB
pylifecycle.h 2KB
complexobject.h 2KB
warnings.h 2KB
listobject.h 2KB
pycapsule.h 2KB
classobject.h 2KB
tupleobject.h 2KB
fileobject.h 2KB
pycore_gil.h 2KB
bytearrayobject.h 1KB
pystrtod.h 1KB
errcode.h 1KB
ceval.h 1KB
pycore_fileutils.h 1KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
qfcy_
- 粉丝: 9947
- 资源: 21
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- yolov5,SSD 可能使用到的一些代码
- 基于c51单片机+DS1302+DHT11温湿度模块+LCD1602显示的万年历硬件原理图+BOM+软件程源码序+仿真图.zip
- NSGA2的MATLAB代码
- Messagepassingtest_GCN_DGL.py
- Sh,Docker 运维好帮手,一招通过 sh 脚本批量快速启动和重启多个Docker 容器
- PCF2123.pdf
- 打开注册表操作.doc
- Windows 常见运行运行库32+64
- WMJUL8iC.html
- 基于3KW光伏并网单相逆变器设计(TMS320F28035控制板+显示板+STM32F103功率板)硬件(原理图+PCB)工程
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论2