+++++++++++
Python News
+++++++++++
What's New in Python 3.12.0 final?
==================================
*Release date: 2023-10-02*
Core and Builtins
-----------------
- gh-issue-109823: Fix bug where compiler does not adjust labels when
removing an empty basic block which is a jump target.
- gh-issue-109719: Fix missing jump target labels when compiler reorders
cold/warm blocks.
- gh-issue-109627: Fix bug where the compiler does not assign a new jump
target label to a duplicated small exit block.
Library
-------
- gh-issue-110045: Update the :mod:`symtable` module to support the new
scopes introduced by :pep:`695`.
Documentation
-------------
- gh-issue-109209: The minimum Sphinx version required for the documentation
is now 4.2.
Windows
-------
- gh-issue-109991: Update Windows build to use OpenSSL 3.0.11.
macOS
-----
- gh-issue-109991: Update macOS installer to use OpenSSL 3.0.11.
Tools/Demos
-----------
- gh-issue-109991: Update GitHub CI workflows to use OpenSSL 3.0.11 and
multissltests to use 1.1.1w, 3.0.11, and 3.1.3.
What's New in Python 3.12.0 release candidate 3?
================================================
*Release date: 2023-09-18*
Core and Builtins
-----------------
- gh-issue-109496: On a Python built in debug mode, :c:func:`Py_DECREF()`
now calls ``_Py_NegativeRefcount()`` if the object is a dangling pointer
to deallocated memory: memory filled with ``0xDD`` "dead byte" by the
debug hook on memory allocators. The fix is to check the reference count
*before* checking for ``_Py_IsImmortal()``. Patch by Victor Stinner.
- gh-issue-109371: Deopted instructions correctly for tool initialization
and modified the incorrect assertion in instrumentation, when a previous
tool already sets INSTRUCTION events
- gh-issue-105658: Fix bug where the line trace of an except block ending
with a conditional includes an excess event with the line of the
conditional expression.
- gh-issue-109219: Fix compiling type param scopes that use a name which is
also free in an inner scope.
- gh-issue-109341: Fix crash when compiling an invalid AST involving a
:class:`ast.TypeAlias`.
- gh-issue-109195: Fix source location for the ``LOAD_*`` instruction
preceding a ``LOAD_SUPER_ATTR`` to load the ``super`` global (or shadowing
variable) so that it encompasses only the name ``super`` and not the
following parentheses.
- gh-issue-109118: Disallow nested scopes (lambdas, generator expressions,
and comprehensions) within PEP 695 annotation scopes that are nested
within classes.
- gh-issue-109114: Relax the detection of the error message for invalid
lambdas inside f-strings to not search for arbitrary replacement fields to
avoid false positives. Patch by Pablo Galindo
- gh-issue-109118: Fix interpreter crash when a NameError is raised inside
the type parameters of a generic class.
- gh-issue-108976: Fix crash that occurs after de-instrumenting a code
object in a monitoring callback.
- gh-issue-108732: Make iteration variables of module- and class-scoped
comprehensions visible to pdb and other tools that use ``frame.f_locals``
again.
- gh-issue-108959: Fix caret placement for error locations for subscript and
binary operations that involve non-semantic parentheses and spaces. Patch
by Pablo Galindo
Library
-------
- gh-issue-108682: Enum: require ``names=()`` or ``type=...`` to create an
empty enum using the functional syntax.
- gh-issue-108843: Fix an issue in :func:`ast.unparse` when unparsing
f-strings containing many quote types.
Documentation
-------------
- gh-issue-102823: Document the return type of ``x // y`` when ``x`` and
``y`` have type :class:`float`.
Tests
-----
- gh-issue-109396: Fix ``test_socket.test_hmac_sha1()`` in FIPS mode. Use a
longer key: FIPS mode requires at least of at least 112 bits. The previous
key was only 32 bits. Patch by Victor Stinner.
- gh-issue-104736: Fix test_gdb on Python built with LLVM clang 16 on Linux
ppc64le (ex: Fedora 38). Search patterns in gdb "bt" command output to
detect when gdb fails to retrieve the traceback. For example, skip a test
if ``Backtrace stopped: frame did not save the PC`` is found. Patch by
Victor Stinner.
- gh-issue-109237: Fix ``test_site.test_underpth_basic()`` when the working
directory contains at least one non-ASCII character: encode the ``._pth``
file to UTF-8 and enable the UTF-8 Mode to use UTF-8 for the child process
stdout. Patch by Victor Stinner.
- gh-issue-109230: Fix ``test_pyexpat.test_exception()``: it can now be run
from a directory different than Python source code directory. Before, the
test failed in this case. Skip the test if Modules/pyexpat.c source is
not available. Skip also the test on Python implementations other than
CPython. Patch by Victor Stinner.
- gh-issue-109015: Fix test_asyncio, test_imaplib and test_socket tests on
FreeBSD if the TCP blackhole is enabled (``sysctl
net.inet.tcp.blackhole``). Skip the few tests which failed with
``ETIMEDOUT`` which such non standard configuration. Currently, the
`FreeBSD GCP image enables TCP and UDP blackhole
<https://reviews.freebsd.org/D41751>`_ (``sysctl
net.inet.tcp.blackhole=2`` and ``sysctl net.inet.udp.blackhole=1``).
Patch by Victor Stinner.
- gh-issue-91960: Skip ``test_gdb`` if gdb is unable to retrieve Python
frame objects: if a frame is ``<optimized out>``. When Python is built
with "clang -Og", gdb can fail to retrive the *frame* parameter of
``_PyEval_EvalFrameDefault()``. In this case, tests like ``py_bt()`` are
likely to fail. Without getting access to Python frames, ``python-gdb.py``
is mostly clueless on retrieving the Python traceback. Moreover,
``test_gdb`` is no longer skipped on macOS if Python is built with Clang.
Patch by Victor Stinner.
- gh-issue-108962: Skip ``test_tempfile.test_flags()`` if ``chflags()``
fails with "OSError: [Errno 45] Operation not supported" (ex: on FreeBSD
13). Patch by Victor Stinner.
- gh-issue-108851: Fix ``test_tomllib`` recursion tests for WASI buildbots:
reduce the recursion limit and compute the maximum nested array/dict
depending on the current available recursion limit. Patch by Victor
Stinner.
- gh-issue-108851: Add ``get_recursion_available()`` and
``get_recursion_depth()`` functions to the :mod:`test.support` module.
Patch by Victor Stinner.
- gh-issue-108834: Add ``--fail-rerun option`` option to regrtest: if a test
failed when then passed when rerun in verbose mode, exit the process with
exit code 2 (error), instead of exit code 0 (success). Patch by Victor
Stinner.
- gh-issue-108834: Rename regrtest ``--verbose2`` option (``-w``) to
``--rerun``. Keep ``--verbose2`` as a deprecated alias. Patch by Victor
Stinner.
- gh-issue-108834: When regrtest reruns failed tests in verbose mode
(``./python -m test --rerun``), tests are now rerun in fresh worker
processes rather than being executed in the main process. If a test does
crash or is killed by a timeout, the main process can detect and handle
the killed worker process. Tests are rerun in parallel if the ``-jN``
option is used to run tests in parallel. Patch by Victor Stinner.
- gh-issue-103186: Suppress and assert expected RuntimeWarnings in
test_sys_settrace.py
Build
-----
- gh-issue-108740: Fix a race condition in ``make regen-all``. The
``deepfreeze.c`` source and files generated by Argument Clinic are now
generated or updated before generating "global objects". Previously, some
identifiers may miss depending on the order in which these files were
generated. Patch by Victor Stinner.
What's New in Python 3.12.0 release candidate 2?
================================================
*Release date: 2023-09-05
没有合适的资源?快使用搜索试试~ 我知道了~
Python懒人便携版本
共2000个文件
py:1498个
h:214个
tcl:155个
需积分: 5 0 下载量 140 浏览量
2023-11-22
00:09:50
上传
评论
收藏 24.32MB RAR 举报
温馨提示
Windows上专为懒人使用,Python3.12 32位绿色便携包,仅仅包含Pip,解压即可使用。压缩包仅仅24M,比Sourceforget还小 WINDOWS上 打造自己的移动Python环境 最终成品
资源推荐
资源详情
资源评论
收起资源包目录
Python懒人便携版本 (2000个子文件)
browse 2KB
nmakehlp.c 21KB
python_lib.cat 122KB
_pydoc.css 1KB
libcrypto-3.dll 3.32MB
tcl86t.dll 1.36MB
tk86t.dll 1.2MB
sqlite3.dll 1.17MB
libssl-3.dll 623KB
tix84.dll 276KB
zlib1.dll 131KB
python3.dll 66KB
libffi-8.dll 34KB
logo.eps 34KB
pwrdLogo.eps 29KB
python.exe 99KB
earth.gif 50KB
logoLarge.gif 11KB
earthris.gif 6KB
tai-ku.gif 5KB
logoMed.gif 4KB
pwrdLogo200.gif 3KB
pwrdLogo175.gif 3KB
pwrdLogo150.gif 2KB
logo100.gif 2KB
tcllogo.gif 2KB
logo64.gif 2KB
pwrdLogo100.gif 2KB
pwrdLogo75.gif 1KB
pycore_global_objects_fini_generated.h 115KB
pycore_unicodeobject_generated.h 91KB
pycore_runtime_init_generated.h 46KB
object.h 37KB
unicodeobject.h 35KB
unicodeobject.h 35KB
abstract.h 33KB
pycore_ast.h 31KB
pycore_obmalloc.h 27KB
pycore_global_strings.h 26KB
pyport.h 26KB
dynamic_annotations.h 22KB
pyconfig.h 22KB
object.h 21KB
pycore_opcode.h 20KB
pycore_atomic.h 17KB
pystate.h 17KB
code.h 16KB
pycore_code.h 16KB
pycore_object.h 15KB
pyerrors.h 13KB
opcode.h 13KB
pytime.h 12KB
datetime.h 10KB
pycore_frame.h 9KB
objimpl.h 9KB
pycore_blocks_output_buffer.h 9KB
pycore_pymath.h 9KB
pycore_fileutils.h 8KB
pycore_interp.h 8KB
abstract.h 8KB
initconfig.h 8KB
pycore_long.h 8KB
pycore_gc.h 8KB
pycore_runtime.h 8KB
funcobject.h 7KB
codecs.h 7KB
pycore_ast_state.h 7KB
pycore_symtable.h 7KB
modsupport.h 7KB
pycore_dict.h 6KB
pycore_import.h 6KB
pymacro.h 6KB
ceval.h 6KB
pycore_bitutils.h 6KB
pycore_runtime_init.h 6KB
pycore_initconfig.h 6KB
pybuffer.h 5KB
pycore_ceval.h 5KB
methodobject.h 5KB
pythonrun.h 5KB
longintrepr.h 5KB
pythread.h 5KB
dictobject.h 5KB
longobject.h 5KB
pystate.h 5KB
pycore_flowgraph.h 5KB
pycore_typeobject.h 5KB
bytesobject.h 4KB
pyerrors.h 4KB
modsupport.h 4KB
pycore_pystate.h 4KB
pycore_hashtable.h 4KB
pyhash.h 4KB
pycore_call.h 4KB
pymem.h 4KB
dictobject.h 4KB
pycore_hamt.h 4KB
pycore_traceback.h 4KB
pthread_stubs.h 4KB
pycore_compile.h 3KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
gsmhai
- 粉丝: 3
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功