aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-02-01bpo-45925: Update macOS installer to SQLite 3.37.2 (GH-30921)Kumar Aditya
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2022-02-01bpo-46072: Add some object layout and allocation stats (GH-31051)Mark Shannon
2022-02-01bpo-46584: remove check for `py2.3` from `ctypes/test_python_api` (GH-31024)Nikita Sobolev
2022-02-01bpo-46600: ./configure --with-pydebug uses -Og with clang (GH-31052)Victor Stinner
Fix the test checking if the C compiler supports -Og option in the ./configure script to also use -Og on clang which supports it.
2022-02-01bpo-46564: do not create frame object for super object (GH-31002)Kumar Aditya
2022-02-01bpo-44031: fix test_tabnanny failure in non-ascii CWD (GH-31014)Irit Katriel
2022-02-01bpo-46355: What's New: Note that PyFrameObject are private (GH-31032)Petr Viktorin
This adds a slightly more detailed explanation of the change. The most important point is that the changed/removed fields were "subject to change" to begin with.
2022-02-01bpo-46482: add a test for `typing.Annotation.__new__` (GH-30821)Nikita Sobolev
2022-01-31bpo-46542: test_lib2to3 uses support.infinite_recursion() (GH-31035)Victor Stinner
* bpo-46542: test_lib2to3 uses support.infinite_recursion() Fix a Python crash in test_lib2to3 when using Python built in debug mode: limit the recursion limit. The test_all_project_files() test of test_lib2to3 now uses the test.support.infinite_recursion() context manager when processing the infinite_recursion.py file to prevent a crash when Python is built in debug mode. The two test_all_project_files() tests now use subTest() and log the refactored/parsed filename (if test_lib2to3 is run in verbose mode). * Update Lib/lib2to3/tests/data/infinite_recursion.py Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-01-31bpo-46407: Fix long_mod refleak (GH-31025)Ken Jin
2022-01-29fFx refleak in isinstance error path (GH-31005)Ken Jin
2022-01-29Fix a `UnboundLocalError` bug in `test_sysconfig` (GH-31000)Brett Cannon
Accidentally introduced by GH-24502
2022-01-28bpo-29688: document and test `pathlib.Path.absolute()` (GH-26153)Barney Gale
Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Brian Helba <brian.helba@kitware.com>
2022-01-28bpo-43112: detect musl as a separate SOABI (GH-24502)Natanael Copa
musl libc and gnu libc are not ABI compatible so we need set different SOABI for musl and not simply assume that all linux is linux-gnu. Replace linux-gnu with the detected os for the build from config.guess for linux-musl*.
2022-01-28bpo-26552: Fixed case where failing `asyncio.ensure_future` did not close ↵Kumar Aditya
the coroutine (#30288)
2022-01-28bpo-46458: Add tests for context of exception in finally block (GH-30986)Irit Katriel
2022-01-29bpo-46560: Fix a typo in `typing.ParamSpec's` doc string (GH-30995)Zackery Spytz
2022-01-28bpo-46553: allow bare typing.ClassVar annotations (#30983)Gregory Beauregard
These are used in the wild and covered by dataclasses unit tests. Several static type checkers support this pattern.
2022-01-28bpo-33125: Enables building traditional installer for Windows ARM64 (GH-30885)Steve Dower
Also makes a few general improvements to the build process and removes some dead code.
2022-01-28bpo-45925: Update Windows installer to SQLite 3.37.2 (GH-30485)Kumar Aditya
2022-01-28bpo-46072: Add simple stats for Python calls. (GH-30989)Mark Shannon
2022-01-28bpo-46417: _PyStructSequence_FiniType() updates _Py_RefTotal (GH-30988)Victor Stinner
2022-01-28bpo-46329: Split calls into precall and call instructions. (GH-30855)Mark Shannon
* Add PRECALL_FUNCTION opcode. * Move 'call shape' varaibles into struct. * Replace CALL_NO_KW and CALL_KW with KW_NAMES and CALL instructions. * Specialize for builtin methods taking using the METH_FASTCALL | METH_KEYWORDS protocol. * Allow kwnames for specialized calls to builtin types. * Specialize calls to tuple(arg) and str(arg).
2022-01-28bpo-46449: deepfreeze get_code() now returns strong ref (GH-30987)Kumar Aditya
2022-01-28bpo-42238: [doc] Avoid hardcoding fast-moving lines in susp-ignored.csv. ↵Julien Palard
(GH-30981)
2022-01-27bpo-46530: add `"thread_time"` to `test_time.test_get_clock_info` (#30913)Nikita Sobolev
2022-01-27bpo-46407: Optimizing some modulo operations (GH-30653)Crowthebird
Added new internal functions to compute mod without also computing the quotient. The loops can be leaner then, which leads to modestly but reliably faster execution in contexts that know they don't need the quotient. Code by Jeremiah Vivian (Pascual).
2022-01-28bpo-46542: test_json uses support.infinite_recursion() (GH-30972)Victor Stinner
Fix test_json tests checking for RecursionError: modify these tests to use support.infinite_recursion().
2022-01-28bpo-40170: Remove PyHeapType_GET_MEMBERS() macro (GH-30942)Victor Stinner
Remove the PyHeapType_GET_MEMBERS() macro. It was exposed in the public C API by mistake, it must only be used by Python internally. Use the PyTypeObject.tp_members member instead. Rename PyHeapType_GET_MEMBERS() to _PyHeapType_GET_MEMBERS() and move it to the internal C API.
2022-01-27bpo-40170: Move _Py_GetAllocatedBlocks() to pycore_pymem.h (GH-30943)Victor Stinner
Move _Py_GetAllocatedBlocks() and _PyObject_DebugMallocStats() declarations to pycore_pymem.h. These functions are related to memory allocators, not to the PyObject structure.
2022-01-27bpo-46417: signal: move siginfo_type to the module state (GH-30964)Victor Stinner
2022-01-27bpo-42982: update pbkdf2 example & add another link (GH-30966)Gregory P. Smith
Automerge-Triggered-By: GH:gpshead
2022-01-27bpo-46476: Simplify and fix _PyStaticCode_Dealloc (GH-30965)Christian Heimes
2022-01-27bpo-46541: Generate the global objects initializer. (gh-30941)Eric Snow
This change is a prerequisite for generating code for other global objects (like strings in gh-30928). (We borrowed some code from Tools/scripts/deepfreeze.py.) https://bugs.python.org/issue46541
2022-01-27bpo-46098: Add test for multiline syntax error traceback (GH-30695)Russel Webber
2022-01-27bpo-44734: Fix floating point precision in test_turtle (GH-30910)Karolina Surma
2022-01-27bpo-46458: emit code for else of a try block immediately after the try body ↵Irit Katriel
(GH-30751)
2022-01-27bpo-46476: Fix memory leak in code objects generated by deepfreeze (GH-30853)Kumar Aditya
Add _Py_Deepfreeze_Fini() and _PyStaticCode_Dealloc() functions.
2022-01-27bpo-44791: Fix substitution of ParamSpec in Concatenate with different ↵Serhiy Storchaka
parameter expressions (GH-27518) * Substitution with a list of types returns now a tuple of types. * Substitution with Concatenate returns now a Concatenate with concatenated lists of arguments. * Substitution with Ellipsis is not supported.
2022-01-27bpo-46544: Do not leak `x` and `uspace` in textwrap.TextWrapper (GH-30955)Nikita Sobolev
2022-01-27bpo-23556: [doc] Fix inaccuracy in documentation for raise without args. ↵Kinshuk Dua
Improve tests for context in nested except handlers. (GH-29236)
2022-01-27bpo-40280: Use presence of msvcrt module to detect Windows (GH-30930)Christian Heimes
2022-01-27bpo-42982: Improve the text on suggested number of iterations of PBKDF2 ↵Illia Volochii
(GH-24276) Less specific number wording (as there is no one right number - the old 100k is too big for some applications and woefully small for others). We now link to NIST SP 800-132 to tell people what to read in there on how to decide for their application. Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
2022-01-27[doc]: Spotted errors while working on rstlint. (GH-30879)Julien Palard
Also ignored some `make suspicious` false positives while assuring true positives were properly seen by rstlint.
2022-01-26bpo-45162: Revert "Remove many old deprecated unittest features" (GH-30935)Gregory P. Smith
Revert "bpo-45162: Remove many old deprecated unittest features (GH-28268)" This reverts commit b0a6ede3d0bd6fa4ffe413ab4dfc1059201df25b. We're deferring this change until 3.12 while upstream projects that use the legacy assertion method names are fixed. See the issue for links to the discussion. Many upstream projects now have issues and PRs filed.
2022-01-26bpo-46496: news11-10 for bpo45296 (GH-30937)Terry Jan Reedy
2022-01-26bpo-45296: Clarify close, quit, and exit in IDLE (GH-30936)Terry Jan Reedy
In the File menu, 'Close' and 'Exit' are now 'Close Window' (the current one) and 'Exit' is now 'Exit IDLE' (by closing all windows). In Shell, 'quit()' and 'exit()' mean 'close Shell'. If there are no other windows, this also exits IDLE.
2022-01-26bpo-46539: Pass status of special typeforms to forward references (GH-30926)Gregory Beauregard
Previously this didn't matter because there weren't any valid code paths that could trigger a type check with a special form, but after the bug fix for `Annotated` wrapping special forms it's now possible to annotate something like `Annotated['ClassVar[int]', (3, 4)]`. This change would also be needed for proposed future changes, such as allowing `ClassVar` and `Final` to nest each other in dataclasses.
2022-01-27bpo-40170: Remove _Py_GetAllocatedBlocks() function (GH-30940)Victor Stinner
Move _Py_GetAllocatedBlocks() and _PyObject_DebugMallocStats() private functions to the internal C API.
2022-01-27bpo-40170: PyType_SUPPORTS_WEAKREFS() becomes a regular function (GH-30938)Victor Stinner
Convert the PyType_SUPPORTS_WEAKREFS() macro to a regular function. It no longer access the PyTypeObject.tp_weaklistoffset member directly. Add _PyType_SUPPORTS_WEAKREFS() static inline functions, used internally by Python for best performance.