summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-65961: Do not rely solely on `__cached__` (GH-97990)Brett Cannon2022-10-061-2/+2
| | | Make sure `__spec__.cached` (at minimum) can be used.
* Add Pynche's move to the What's new in 3.11 (#97974)Barry Warsaw2022-10-061-0/+4
| | | | | | | | | * Add Pynche's move to the What's new in 3.11 * Update Doc/whatsnew/3.11.rst Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-93738: Disallow pre-v3 syntax in the C domain (#97962)Adam Turner2022-10-062-2/+2
| | | Also, disable using invalid sphinx-lint 0.6.2.
* gh-95986: Fix the example using match keyword (#95989)1809092022-10-061-0/+1
|
* gh-65961: Raise `DeprecationWarning` when `__package__` differs from ↵Brett Cannon2022-10-051-0/+12
| | | | | | | `__spec__.parent` (#97879) Also remove `importlib.util.set_package()` which was already slated for removal. Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* gh-97850: Remove all known instances of module_repr() (#97876)Barry Warsaw2022-10-051-0/+5
| | | Remove all known instances of module_repr()
* gh-93738: Documentation C syntax (:c:type:<C type> -> :c:expr:<C type>) (#97768)Adam Turner2022-10-059-29/+29
| | | | | :c:type:`<C type>` -> :c:expr:`<C type>` Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-93738: Documentation C syntax (Function glob patterns -> literal markup) ↵Adam Turner2022-10-051-3/+3
| | | | (#97774)
* gh-74696: Pass root_dir to custom archivers which support it (GH-94251)Serhiy Storchaka2022-10-051-0/+9
| | | | Co-authored-by: Éric <merwok@netwok.org>
* gh-95913: Copyedit/improve Implementation Changes What's New section (#97720)C.A.M. Gerlach2022-10-051-17/+27
| | | | | | | | | | | * Add and refine reST/Sphinx syntax for implementation changes section * Clarify and refine wording in the Implementation Changes section * Elide unnecessary comma Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-93738: Documentation C syntax (:c:type: to :c:expr:, misc. cases) (#97775)Adam Turner2022-10-041-2/+2
| | | | | * :c:type: to :c:expr: * Update Doc/whatsnew/2.4.rst
* gh-93738: Documentation C syntax (Use `c:struct`) (#97772)Adam Turner2022-10-042-2/+2
| | | Use `c:struct`
* gh-95913: Copyedit/improve Other Language Changes What's New section (#97719)C.A.M. Gerlach2022-10-041-31/+36
| | | | | | | | | | | | | | | * Add/refine cross references to items in other lang changes section * Unify context manager exception changes into single non-repetitive item * More clearly describe the intent and consequences of the -P option * Apply minor clarifications & copyedits to rest of section * Tweak the formatting of module references Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-93738: Documentation C syntax (:c:type:`Py_UNICODE*` -> ↵Adam Turner2022-10-041-1/+1
| | | | | :c:expr:`Py_UNICODE*`) (#97784) :c:type:`Py_UNICODE*` -> :c:expr:`Py_UNICODE*`
* gh-95913: Move py.exe to appropriate What's New section & refine text (#97718)C.A.M. Gerlach2022-10-041-22/+26
| | | | | | | | | | | | | | | * Move Windows py.exe improvements from Typing section to New Features * Add ref target label and use literal for py.exe * Be clearer/explict about what legacy version arg components reprisent * Apply other minor clarity and textual fixes to py.exe launcher text * Refine phrasing of legacy sentence of py.exe desc Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-58451: Add optional delete_on_close parameter to NamedTemporaryFile ↵Ev2geny2022-10-041-0/+5
| | | | (GH-97015)
* GH-95913: Update what's new in 3.11 for asyncio (#97806)Guido van Rossum2022-10-041-16/+40
| | | | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-97669: Remove outdated example scripts (#97675)Victor Stinner2022-10-041-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove outdated example scripts of the Tools/scripts/ directory. A copy can be found in the old-demos project: https://github.com/gvanrossum/old-demos Removed scripts (39): * byext.py * byteyears.py * cleanfuture.py * copytime.py * crlf.py * db2pickle.py * dutree.doc * dutree.py * find-uname.py * find_recursionlimit.py * finddiv.py * findlinksto.py * findnocoding.py * fixcid.py * fixdiv.py * fixheader.py * fixnotice.py * fixps.py * get-remote-certificate.py * google.py * highlight.py * ifdef.py * import_diagnostics.py * lfcr.py * linktree.py * lll.py * mailerdaemon.py * make_ctype.py * mkreal.py * objgraph.py * pdeps.py * pickle2db.py * pindent.py * pysource.py * reindent-rst.py * rgrep.py * suff.py * texi2html.py * which.py Changes: * Remove test_fixcid, test_lll, test_pdeps and test_pindent of test.test_tools. * Remove get-remote-certificate.py changelog entry, since the script was removed. Note: there is a copy of crlf.py in Lib/test/test_lib2to3/data/.
* gh-97681: Remove Tools/demo/ directory (#97682)Victor Stinner2022-10-031-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the Tools/demo/ directory which contained old demo scripts. A copy can be found in the old-demos project: https://github.com/gvanrossum/old-demos Remove the following old demo scripts: * beer.py * eiffel.py * hanoi.py * life.py * markov.py * mcast.py * queens.py * redemo.py * rpython.py * rpythond.py * sortvisu.py * spreadsheet.py * vector.py Changes: * Remove a reference to the redemo.py script in the regex howto documentation. * Remove a reference to the removed Tools/demo/ directory in the curses documentation. * Update PC/layout/ to remove the reference to Tools/demo/ directory.
* gh-95913: Fix PEP number in PEP 678 What's New ref label (#97739)C.A.M. Gerlach2022-10-031-1/+1
| | | What's New: Fix PEP number in PEP 678 ref target label
* gh-95913: Copyedit/improve New Modules What's New section (#97721)C.A.M. Gerlach2022-10-031-3/+6
| | | | | * Link TOML & WSGI in New Modules section, refine text & add ref label * Further reformat new modules & add PEP link to tomllib
* Fix capitalization of Unix in documentation (#96913)Will Hawkins2022-10-011-1/+1
|
* gh-96348: Deprecate the 3-arg signature of coroutine.throw and ↵Ofey Chan2022-09-301-0/+5
| | | | generator.throw (GH-96428)
* gh-96670: Raise SyntaxError when parsing NULL bytes (#97594)Pablo Galindo Salgado2022-09-271-0/+6
|
* gh-96959: Update more HTTP links (GH-97536)Serhiy Storchaka2022-09-278-10/+10
| | | | Use HTTPS for documents which are available by both HTTP and HTTPS links, but there is no redirection from HTTP to HTTPS or vice versa.
* gh-96959: Update HTTP links which are redirected to HTTPS (GH-96961)Serhiy Storchaka2022-09-242-4/+4
|
* gh-81039: Add small example of f-string's "=}" to tutorial (gh-92291)Stanley2022-09-211-0/+1
|
* gh-96512: Update int_max_str docs to say 3.11 (#96942)Gregory P. Smith2022-09-191-11/+0
| | | | It was unknown if it'd be before 3.11.0 when creating the original changes. It's in 3.11rc2, so 3.11 it is.
* gh-95913: Copyedit, link & format Typing Features section in 3.11 What's New ↵C.A.M. Gerlach2022-09-191-23/+50
| | | | | | | (GH-96097) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-95913: Fix and copyedit New Features section of 3.11 What's New (GH-95915)C.A.M. Gerlach2022-09-191-33/+38
|
* fixes gh-96841: replace Mercurial with VCS (#96879)Benjamin Peterson2022-09-161-2/+2
|
* gh-89536: Use ThinLTO policy if possible (gh-96766)Dong-hee Na2022-09-161-0/+4
|
* GH-91049: Introduce set vectorcall field API for PyFunctionObject (GH-92257)adphrost2022-09-151-0/+4
| | | | Co-authored-by: Andrew Frost <adfrost@fb.com> Co-authored-by: Itamar Ostricher <itamarost@gmail.com>
* Revert accidental removal from 3.12 doc. (gh-96826)Benjamin Peterson2022-09-141-0/+70
|
* closes gh-96734: Update to Unicode 15.0.0. (GH-96809)Benjamin Peterson2022-09-131-70/+6
|
* Add dataclass field default change to 3.11 what's new (#96790)Laurie O2022-09-131-0/+8
| | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-93503: Document the new tracing/profiling APIs in the What's new document ↵Pablo Galindo Salgado2022-09-131-0/+14
| | | | | (#96681) Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-90751: memoryview now supports half-float (#96738)Dong-hee Na2022-09-101-0/+3
| | | | Co-authored-by: Antoine Pitrou <antoine@python.org>
* Fix typo in 3.12 whatsnew (GH-96740)Maksym Medvied2022-09-101-1/+1
|
* gh-96559: Fixes Windows launcher handling of defaults using old-style tags, ↵Steve Dower2022-09-051-0/+22
| | | | and adds What's New section (GH-96595)
* gh-95778: CVE-2020-10735: Prevent DoS by very large int() (#96499)Gregory P. Smith2022-09-021-0/+11
| | | | | | | | | | | | | | | | Integer to and from text conversions via CPython's bignum `int` type is not safe against denial of service attacks due to malicious input. Very large input strings with hundred thousands of digits can consume several CPU seconds. This PR comes fresh from a pile of work done in our private PSRT security response team repo. Signed-off-by: Christian Heimes [Red Hat] <christian@python.org> Tons-of-polishing-up-by: Gregory P. Smith [Google] <greg@krypto.org> Reviews via the private PSRT repo via many others (see the NEWS entry in the PR). <!-- gh-issue-number: gh-95778 --> * Issue: gh-95778 <!-- /gh-issue-number --> I wrote up [a one pager for the release managers](https://docs.google.com/document/d/1KjuF_aXlzPUxTK4BMgezGJ2Pn7uevfX7g0_mvgHlL7Y/edit#). Much of that text wound up in the Issue. Backports PRs already exist. See the issue for links.
* gh-90814: Correct NEWS wording re. optional C11 features (GH-96309)Petr Viktorin2022-08-291-1/+2
| | | | | | | | | | | The previous wording of this entry suggests that CPython won't work if optional compiler features are enabled. That's not the case. The change is that we require C11 rather than C89. Note that PEP 7 does say "Python 3.11 and newer versions use C11 without optional features." It is correct there: that's not a guide for users who compile Python, but for CPython devs who must avoid the features.
* gh-95914: Add Py_UNICODE encode APIs removed in PEP 624 to 3.11 What's New ↵C.A.M. Gerlach2022-08-181-0/+25
| | | | | | | (#96016) * 3.11 Whatsnew: Add Py_UNICODE encode functions removed in PEP 624 * Just use :func: instead of :c:func: for non-resolved funcs so ! works
* gh-90536: Add support for the BOLT post-link binary optimizer (gh-95908)Kevin Modzelewski2022-08-181-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for the BOLT post-link binary optimizer Using [bolt](https://github.com/llvm/llvm-project/tree/main/bolt) provides a fairly large speedup without any code or functionality changes. It provides roughly a 1% speedup on pyperformance, and a 4% improvement on the Pyston web macrobenchmarks. It is gated behind an `--enable-bolt` configure arg because not all toolchains and environments are supported. It has been tested on a Linux x86_64 toolchain, using llvm-bolt built from the LLVM 14.0.6 sources (their binary distribution of this version did not include bolt). Compared to [a previous attempt](https://github.com/faster-cpython/ideas/issues/224), this commit uses bolt's preferred "instrumentation" approach, as well as adds some non-PIE flags which enable much better optimizations from bolt. The effects of this change are a bit more dependent on CPU microarchitecture than other changes, since it optimizes i-cache behavior which seems to be a bit more variable between architectures. The 1%/4% numbers were collected on an Intel Skylake CPU, and on an AMD Zen 3 CPU I got a slightly larger speedup (2%/4%), and on a c6i.xlarge EC2 instance I got a slightly lower speedup (1%/3%). The low speedup on pyperformance is not entirely unexpected, because BOLT improves i-cache behavior, and the benchmarks in the pyperformance suite are small and tend to fit in i-cache. This change uses the existing pgo profiling task (`python -m test --pgo`), though I was able to measure about a 1% macrobenchmark improvement by using the macrobenchmarks as the training task. I personally think that both the PGO and BOLT tasks should be updated to use macrobenchmarks, but for the sake of splitting up the work this PR uses the existing pgo task. * Simplify the build flags * Add a NEWS entry * Update Makefile.pre.in Co-authored-by: Dong-hee Na <donghee.na92@gmail.com> * Update configure.ac Co-authored-by: Dong-hee Na <donghee.na92@gmail.com> * Add myself to ACKS * Add docs * Other review comments * fix tab/space issue * Make it more clear that --enable-bolt is experimental * Add link to bolt's github page Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* gh-95913: Add traceback module additions to what's new in 3.11 (GH-95980)Irit Katriel2022-08-181-0/+14
|
* GH-95589: Dont crash when subclassing extension classes with multiple ↵Mark Shannon2022-08-171-0/+17
| | | | | | | inheritance (GH-96028) * Treat tp_weakref and tp_dictoffset like other opaque slots for multiple inheritance. * Document Py_TPFLAGS_MANAGED_DICT and Py_TPFLAGS_MANAGED_WEAKREF in what's new.
* remove repetitive credit from what's new in 3.11 rst (GH-96024)Irit Katriel2022-08-161-1/+0
|
* gh-95957: Add instructions for Tcl/Tk and OpenSSL on RHEL/CentOS 7 (#95964)Christian Heimes2022-08-161-6/+13
| | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-89313: Add hashlib.file_digest to whatsnew 3.11 (GH-95965)Christian Heimes2022-08-131-0/+4
| | | Automerge-Triggered-By: GH:pablogsal
* bpo-25625: Document contextlib.chdir in the 3.11 what's new (#95962)Pablo Galindo Salgado2022-08-131-0/+7
|