Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-46370: Move the static initializer for _PyRuntime to its own header ↵ | Eric Snow | 2022-01-13 | 9 | -583/+611 |
| | | | | | file. (gh-30587) https://bugs.python.org/issue46370 | ||||
* | bpo-40479: Fix typo, flag must be set for OpenSSL < 3.0.0 (GH-30584) | Christian Heimes | 2022-01-13 | 1 | -1/+1 |
| | |||||
* | bpo-46070: _PyGC_Fini() untracks objects (GH-30577) | Victor Stinner | 2022-01-13 | 2 | -0/+29 |
| | | | | | | | Py_EndInterpreter() now explicitly untracks all objects currently tracked by the GC. Previously, if an object was used later by another interpreter, calling PyObject_GC_UnTrack() on the object crashed if the previous or the next object of the PyGC_Head structure became a dangling pointer. | ||||
* | bpo-44133: Link Python executable with object files (GH-30556) | Victor Stinner | 2022-01-13 | 6 | -85/+131 |
| | | | | | | | | | | | | | | When Python is built without --enable-shared, the "python" program is now linked to object files, rather than being linked to the Python library (libpython.a), to make sure that all symbols are exported. Previously, the linker omitted some symbols like the Py_FrozenMain() function. When Python is configured with --without-static-libpython, the Python static library (libpython.a) is no longer built. * Check --without-static-libpython earlier in configure.ac * Add LINK_PYTHON_OBJS and LINK_PYTHON_DEPS variables to Makefile. * test_capi now ensures that the "Py_FrozenMain" symbol is exported. | ||||
* | bpo-46355: Document PyFrameObject and PyThreadState changes (GH-30558) | Victor Stinner | 2022-01-13 | 1 | -0/+104 |
| | | | | Document PyFrameObject and PyThreadState changes in What's New in Python 3.11 and explain how to port code. | ||||
* | bpo-46358: modernize `test_asyncio` (GH-30562) | Nikita Sobolev | 2022-01-13 | 3 | -39/+17 |
| | |||||
* | bpo-46359: Modernize `test_typing` by removing checks for EOL Python ↵ | Nikita Sobolev | 2022-01-13 | 1 | -20/+9 |
| | | | | | versions (GH-30563) Also removes unused tests meant for older versions of Python. | ||||
* | bpo-46328: Add sys.exception() (GH-30514) | Irit Katriel | 2022-01-13 | 7 | -18/+146 |
| | |||||
* | bpo-46344: Fix trace bug in else of try and try-star blocks (GH-30544) | Irit Katriel | 2022-01-13 | 3 | -32/+56 |
| | |||||
* | bpo-40479: Fix hashlib's usedforsecurity for OpenSSL 3.0.0 (GH-30455) | Christian Heimes | 2022-01-13 | 9 | -249/+358 |
| | |||||
* | bpo-46315: Add ifdef HAVE_ feature checks for WASI compatibility (GH-30507) | Christian Heimes | 2022-01-13 | 14 | -14/+90 |
| | |||||
* | bpo-46345: Add a test case for implicit `Optional` class attribute (GH-30535) | Nikita Sobolev | 2022-01-12 | 1 | -0/+6 |
| | |||||
* | bpo-45953: Statically allocate the main interpreter (and initial thread ↵ | Eric Snow | 2022-01-12 | 8 | -34/+115 |
| | | | | | | | | | state). (gh-29883) Previously, the main interpreter was allocated on the heap during runtime initialization. Here we instead embed it into _PyRuntimeState, which means it is statically allocated as part of the _PyRuntime global. The same goes for the initial thread state (of each interpreter, including the main one). Consequently there are fewer allocations during runtime/interpreter init, fewer possible failures, and better memory locality. FYI, this also helps efforts to consolidate globals, which in turns helps work on subinterpreter isolation. https://bugs.python.org/issue45953 | ||||
* | bpo-46342: make @typing.final introspectable (GH-30530) | Jelle Zijlstra | 2022-01-12 | 4 | -1/+93 |
| | | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> | ||||
* | bpo-40280: Allow to compile _testcapi as builtin module (GH-30559) | Christian Heimes | 2022-01-12 | 4 | -6/+7 |
| | |||||
* | bpo-46020: Optimize long_pow for the common case (GH-30555) | Tim Peters | 2022-01-12 | 1 | -6/+13 |
| | | | | This cuts a bit of overhead by not initializing the table of small odd powers unless it's needed for a large exponent. | ||||
* | bpo-46348: modernize `test_typing` (GH-30547) | Nikita Sobolev | 2022-01-12 | 2 | -64/+14 |
| | |||||
* | bpo-40280: Add --with-emscripten-target to build for browser or node (GH-30552) | Christian Heimes | 2022-01-12 | 7 | -22/+164 |
| | | | Co-authored-by: Ethan Smith <ethan@ethanhs.me> | ||||
* | bpo-46347: Yet another fix in the erorr path of PyEval_EvalCodeEx (#30554) | Yury Selivanov | 2022-01-12 | 1 | -1/+0 |
| | |||||
* | bpo-46347: Fix PyEval_EvalCodeEx to correctly cleanup in error paths (#30551) | Yury Selivanov | 2022-01-11 | 1 | -13/+9 |
| | |||||
* | bpo-46303: Fix fileutils.h compiler warnings (GH-30550) | Victor Stinner | 2022-01-11 | 2 | -1/+11 |
| | | | | Add missing pycore_fileutils.h include in _tkinter.c and _testconsole.c. | ||||
* | bpo-46347: Fix memory leak in PyEval_EvalCodeEx. (#30546) | Yury Selivanov | 2022-01-11 | 2 | -7/+1 |
| | | | First introduced in 0332e569c12d3dc97171546c6dc10e42c27de34b | ||||
* | bpo-46307: Add string.Template.get_identifiers() method (GH-30493) | Ben Kehoe | 2022-01-11 | 4 | -0/+100 |
| | | | | | Add `string.Template.get_identifiers()` method that returns the identifiers within the template. By default, raises an error if it encounters an invalid identifier (like `substitute()`). The keyword-only argument `raise_on_invalid` can be set to `False` to ignore invalid identifiers (like `safe_substitute()`). Automerge-Triggered-By: GH:warsaw | ||||
* | bpo-45953: Statically allocate and initialize global bytes objects. (gh-30096) | Eric Snow | 2022-01-11 | 5 | -96/+294 |
| | | | | | The empty bytes object (b'') and the 256 one-character bytes objects were allocated at runtime init. Now we statically allocate and initialize them. https://bugs.python.org/issue45953 | ||||
* | [doc] Add license_url for python-docs-theme 2022.1. (GH-30527) | Julien Palard | 2022-01-11 | 2 | -2/+3 |
| | |||||
* | bpo-46339: Fix crash in the parser when computing error text for multi-line ↵ | Pablo Galindo Salgado | 2022-01-11 | 3 | -2/+18 |
| | | | | | f-strings (GH-30529) Automerge-Triggered-By: GH:pablogsal | ||||
* | closes bpo-46253: Change Py_UNICODE to Py_UCS4 in the C API docs to match ↵ | Julian Gilbey | 2022-01-11 | 1 | -17/+17 |
| | | | | the current source code (GH-30387) | ||||
* | Remove unused `Any` from `Concatenate` example in typing docs (GH-30516) | Michael Oliver | 2022-01-11 | 1 | -1/+1 |
| | |||||
* | News item for issue 46314. (GH-30515) | Mark Shannon | 2022-01-11 | 1 | -0/+2 |
| | |||||
* | bpo-46331: Do not set line number of instruction storing doc-string. (GH-30518) | Mark Shannon | 2022-01-11 | 3 | -0/+22 |
| | |||||
* | bpo-46303: Move fileutils.h private functions to internal C API (GH-30484) | Victor Stinner | 2022-01-11 | 13 | -258/+289 |
| | | | | | | | | | | Move almost all private functions of Include/cpython/fileutils.h to the internal C API Include/internal/pycore_fileutils.h. Only keep _Py_fopen_obj() in Include/cpython/fileutils.h, since it's used by _testcapi which must not use the internal C API. Move EncodeLocaleEx() and DecodeLocaleEx() functions from _testcapi to _testinternalcapi, since the C API moved to the internal C API. | ||||
* | bpo-46310: simplify `for` loop in `asyncio/windows_events` (GH-30334) | Nikita Sobolev | 2022-01-11 | 1 | -1/+1 |
| | |||||
* | bpo-46205: exit if no workers are alive in runtest_mp (GH-30470) | Sam Gross | 2022-01-11 | 2 | -8/+11 |
| | |||||
* | bpo-46244: Remove __slots__ from typing.TypeVar, .ParamSpec (#30444) | Arie Bovenberg | 2022-01-10 | 2 | -6/+2 |
| | | | | | | | | | | | * add missing __slots__ to typing._TypeVarLike * add news entry * remove slots from _TypeVarLike base classes * cleanup diff * fix broken link in blurb | ||||
* | bpo-45331: [Enum] add rule to docs that mixin type must be subclassable ↵ | Nikita Sobolev | 2022-01-10 | 1 | -4/+7 |
| | | | | (GH-30521) | ||||
* | bpo-46327: [Enum] remove skipped tests (GH-30512) | Nikita Sobolev | 2022-01-10 | 1 | -11/+0 |
| | |||||
* | bpo-46301: [Enum] fix refleak tests (GH30510) | Nikita Sobolev | 2022-01-10 | 1 | -44/+58 |
| | |||||
* | bpo-46332: use raise..from instead of assigning __cause__ and raising (GH-30517) | Irit Katriel | 2022-01-10 | 1 | -5/+2 |
| | |||||
* | bpo-46314: Remove extra RESUME when compiling a lamdba. (GH-30513) | Mark Shannon | 2022-01-10 | 2 | -144/+157 |
| | |||||
* | bpo-46270: Describe the `in` and `not in` operators as membership tests. ↵ | Raymond Hettinger | 2022-01-10 | 1 | -4/+6 |
| | | | | (GH-30504) | ||||
* | bpo-23882: unittest: Drop PEP 420 support from discovery. (GH-29745) | Inada Naoki | 2022-01-10 | 5 | -78/+44 |
| | |||||
* | bpo-46272: Fix two heading comments in python.gram (GH-30499) | Mark Dickinson | 2022-01-09 | 1 | -3/+3 |
| | | | One typo fix and one heading change, both in comments. No functional changes. | ||||
* | bpo-37295: Use constant-time comb() and perm() for larger n depending on k ↵ | Serhiy Storchaka | 2022-01-09 | 2 | -134/+190 |
| | | | | (GH-30305) | ||||
* | bpo-40280: Disable epoll_create in Emscripten config.site (GH-30494) | Ethan Smith | 2022-01-09 | 1 | -1/+1 |
| | | | Co-authored-by: nick.pope@infogrid.io | ||||
* | Add a (conservative) timeout for Windows builds on GitHub Actions (GH-30301) | Mark Dickinson | 2022-01-09 | 1 | -0/+2 |
| | |||||
* | bpo-46308: Fix unportable test(1) operator in configure script (GH-30490) | Thomas Klausner | 2022-01-09 | 2 | -2/+2 |
| | |||||
* | bpo-46306: simplify `CodeType` attribute access in `doctest.py` (GH-30481) | Nikita Sobolev | 2022-01-08 | 2 | -1/+3 |
| | | | | | Assume co_firstlineno always exists on types.CodeType objects. Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | ||||
* | bpo-46301: [Enum] test uncomparable values in `_convert_` (GH-30472) | Nikita Sobolev | 2022-01-08 | 1 | -0/+35 |
| | | | add tests that cover different types, and same non-comparable types | ||||
* | bpo-46261: Update `sqlite3.Cursor.lastrowid` docs (GH-30407) | Erlend Egeberg Aasland | 2022-01-08 | 1 | -8/+9 |
| | |||||
* | bpo-46290: Fix parameter names in dataclasses docs (GH-30450) | Zsolt Dollenstein | 2022-01-08 | 1 | -12/+12 |
| |