summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-42047: Add native thread ID for DragonFlyBSD (#22714)David CARLIER2022-05-185-3/+11
| | | | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-91755: Remove doc of C API private refcount functions (#92918)Victor Stinner2022-05-181-6/+0
| | | These functions should only be used by Python internals.
* gh-92780: Improve sqlite3.Connection.create_collation docs (#92790)Erlend Egeberg Aasland2022-05-181-11/+8
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-91755: Document Py_IncRef and Py_DecRef as C functions (#91805)Charlie Zhao2022-05-181-4/+10
| | | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-40838: document `getdoc`, `getmodule`, `getsourcefile` in `inspect` ↵Nikita Sobolev2022-05-182-2/+7
| | | | | | returns `None` (#30575) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-92841: Fix asyncio's RuntimeError: Event loop is closed (GH-92842)Oleg Iarygin2022-05-172-1/+3
|
* bpo-38704: Prevent installation on unsupported Windows versions (GH-17950)Zackery Spytz2022-05-172-1/+1
|
* gh-89898: Fix test_threading.test_args_argument() (#92885)Victor Stinner2022-05-171-0/+1
| | | | | | | | | | | | | Join the thread to not leak threads running in the background to the next test. Fix the following warning on the "AMD64 FreeBSD Shared 3.11" buildbot: test_args_argument (test.test_threading.ThreadTests.test_args_argument) ... Warning -- threading_cleanup() failed to cleanup 1 threads (count: 1, dangling: 2) Warning -- Dangling thread: <_MainThread(MainThread, started 35026161664)> Warning -- Dangling thread: <Thread(Thread-134 (<lambda>), started 35314998016)> ok
* gh-89653: Add assertions on PyUnicode_READ() index (#92883)Victor Stinner2022-05-171-1/+9
| | | | Add assertions on the index argument of PyUnicode_READ(), PyUnicode_READ_CHAR() and PyUnicode_WRITE() functions.
* gh-89653: PEP 670: Fix PyUnicode_READ() cast (#92872)Victor Stinner2022-05-172-1/+33
| | | | _Py_CAST() cannot be used with a constant type: use _Py_STATIC_CAST() instead.
* Fix NULL check in test_type_from_ephemeral_spec in_testcapimodule.c (GH-92863)Dennis Sweeney2022-05-171-1/+1
|
* gh-92536: Update unicode struct size to ensure MemoryError is raised (GH-92867)Dennis Sweeney2022-05-171-10/+6
|
* gh-92782: unify the style of CFG traversal algorithms in the compiler (GH-92784)Irit Katriel2022-05-171-38/+45
|
* Summarize stats: Increase number of predecessor/successor pairs shown from 3 ↵Mark Shannon2022-05-171-3/+3
| | | | to 5. (GH-92853)
* Fix NULL test in _testinternalcapi (GH-92861)Dennis Sweeney2022-05-171-1/+1
|
* re docs: fix source code link (#92819)谭九鼎2022-05-171-1/+1
|
* gh-92265: set meta_path and path_hooks correctly in ↵Filipe Laíns2022-05-161-1/+2
| | | | | | | | test_reload_namespace_changed (GH-92275) Previously, we were blocking the frozen imports and forcing the source version to be used, but we did not fix up sys.meta_path or sys.path_hooks, causing the frozen importers to leak into the source version of the test.
* gh-92547: Remove deprecated sqlite3 features (#92548)Erlend Egeberg Aasland2022-05-168-121/+16
| | | | | | | | | | The following sqlite3 features were deprecated in 3.10, scheduled for removal in 3.12: - sqlite3.OptimizedUnicode (gh-23163) - sqlite3.enable_shared_cache (gh-24008) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Signed-off-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-90473: Skip tests that don't apply to Emscripten and WASI (GH-92846)Christian Heimes2022-05-1614-24/+49
|
* Improve object stats (#92845)Mark Shannon2022-05-1610-55/+106
| | | | | * Add incref/decref stats * Show ratios for allocation in summary
* gh-92671: Don't omit parentheses when unparsing empty tuples (GH-92673)Batuhan Taskaya2022-05-163-1/+9
|
* gh-92820: Skip test_cppext if _ctypes is missing (#92844)Victor Stinner2022-05-163-4/+22
| | | Add @test.support.requires_venv_with_pip decorator.
* Speedup: build docs in parallel (GH-92733)Hugo van Kemenade2022-05-162-4/+4
|
* gh-81548: Clarify the deprecation of octal sequences affect byte strings ↵Pablo Galindo Salgado2022-05-161-2/+2
| | | | | (GH-92643) Automerge-Triggered-By: GH:pablogsal
* gh-90473: WASI: Mark tests that require os.pipe() (GH-92837)Christian Heimes2022-05-164-0/+14
|
* gh-87670: Add web.archive redirects from effbot (GH-92816)Stanley2022-05-163-4/+5
|
* gh-92530: Fix an issue that occurred after interrupting ↵Serhiy Storchaka2022-05-162-7/+16
| | | | | | | | threading.Condition.notify (GH-92534) If Condition.notify() was interrupted just after it released the waiter lock, but before removing it from the queue, the following calls of notify() failed with RuntimeError: cannot release un-acquired lock.
* Restore default role check in `make check`. (#92290)Ezio Melotti2022-05-154-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | * Restore default role check in `make check`. * Options first, then files. * Update `make.bat` too. * Add a comment explaining the extra options. * No reason to ignore the README.rst. * Enable default-role check in sphinx-lint. Co-authored-by: Julien Palard <julien@palard.fr> * Update sphinx-lint default-role check. * Fix use of the default role in the docs. * Update make.bat to check for the default role too. * Fix comment in make.bat. Co-authored-by: Julien Palard <julien@palard.fr>
* gh-89668: Optimize ZipFile file header processing algorithm to avoid ↵Jan Wolski2022-05-151-1/+1
| | | | unneeded IO(gh-25966)
* gh-92781: Avoid mixing declarations and code in C API (#92783)Victor Stinner2022-05-156-11/+20
| | | | | Avoid mixing declarations and code in the C API to fix the compiler warning: "ISO C90 forbids mixed declarations and code" [-Werror=declaration-after-statement].
* gh-90473: Fail subprocess early on Emscripten/WASI (GH-92802)Christian Heimes2022-05-142-6/+13
|
* GH-92804: Fix memory leak in memoryview iterator (gh-92805)Kumar Aditya2022-05-143-3/+6
|
* gh-90861: Memory optimization for set.issubset (gh-92799)Dong-hee Na2022-05-141-5/+5
|
* gh-92611: Link to PEP 594 sections & add key detail in doc deprecation ↵CAM Gerlach2022-05-1321-22/+46
| | | | notices (GH-92612)
* Fix numbers.Real.__rdivmod__ doc string (#31991)Géry Ogam2022-05-131-3/+3
|
* gh-91249: Remove .bat extension in documentation for when activating venv on ↵yashlad6812022-05-131-1/+1
| | | | Windows. (GH-92770)
* bpo-9182: Add a section on specifying positional arguments (#31810)slateny2022-05-132-2/+34
|
* Fix small typo (#92721)Gabi Nagy2022-05-131-1/+1
|
* gh-92446: Argparse choices should be a sequence (#92450)1809092022-05-131-1/+1
|
* Document Py_ssize_t. (GH-92512)Julien Palard2022-05-1310-24/+31
| | | | | | It fixes 252 errors from a Sphinx nitpicky run (sphinx-build -n). But there's 8182 errors left. Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-85858: Remove PyUnicode_InternImmortal() function (#92579)Victor Stinner2022-05-137-67/+27
| | | | | | | | | | | | | | | | | Remove the PyUnicode_InternImmortal() function and the SSTATE_INTERNED_IMMORTAL macro. The PyUnicode_InternImmortal() function is still exported in the stable ABI. The function is removed from the API. PyASCIIObject.state.interned size is now a single bit, rather than 2 bits. Keep SSTATE_NOT_INTERNED and SSTATE_INTERNED_MORTAL macros for backward compatibility, but no longer use them internally since the interned member is now a single bit and so can only have two values (interned or not interned). Update stats of _PyUnicode_ClearInterned().
* gh-89653: Use int type for Unicode kind (#92704)Victor Stinner2022-05-1313-52/+49
| | | | Use the same type that PyUnicode_FromKindAndData() kind parameter type (public C API): int.
* GH-92236: Remove spurious "line" event when starting coroutine or generator. ↵Mark Shannon2022-05-134-0/+107
| | | | (GH-92722)
* gh-89653: PEP 670: Convert PyUnicode_KIND() macro to function (#92705)Victor Stinner2022-05-133-10/+21
| | | | | | | | In the limited C API version 3.12, PyUnicode_KIND() is now implemented as a static inline function. Keep the macro for the regular C API and for the limited C API version 3.11 and older to prevent introducing new compiler warnings. Update _decimal.c and stringlib/eq.h for PyUnicode_KIND().
* gh-90473: Increase stack size, disable obmalloc on WASI (GH-92732)Christian Heimes2022-05-135-10/+44
|
* gh-92536: Doc update about Py_UNICODE removal (GH-92756)Inada Naoki2022-05-132-3/+3
|
* gh-92584: test_cppext uses setuptools (#92639)Victor Stinner2022-05-122-67/+77
| | | | Rewrite test_cppext to run in a virtual environment and to build the C++ extension with setuptools rather than distutils.
* gh-92311: Add tests for frame_setlineno jumping over listcomps (#92741)Dennis Sweeney2022-05-121-0/+48
|
* Check result of utc_to_seconds and skip fold probe in pure Python (#91582)Paul Ganssle2022-05-125-38/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `utc_to_seconds` call can fail, here's a minimal reproducer on Linux: TZ=UTC python -c "from datetime import *; datetime.fromtimestamp(253402300799 + 1)" The old behavior still raised an error in a similar way, but only because subsequent calculations happened to fail as well. Better to fail fast. This also refactors the tests to split out the `fromtimestamp` and `utcfromtimestamp` tests, and to get us closer to the actual desired limits of the functions. As part of this, we also changed the way we detect platforms where the same limits don't necessarily apply (e.g. Windows). As part of refactoring the tests to hit this condition explicitly (even though the user-facing behvior doesn't change in any way we plan to guarantee), I noticed that there was a difference in the places that `datetime.utcfromtimestamp` fails in the C and pure Python versions, which was fixed by skipping the "probe for fold" logic for UTC specifically — since UTC doesn't have any folds or gaps, we were never going to find a fold value anyway. This should prevent some failures in the pure python `utcfromtimestamp` method on timestamps close to 0001-01-01. There are two separate news entries for this because one is a potentially user-facing change, the other is an internal code correctness change that, if anything, changes some error messages. The two happen to be coupled because of the test refactoring, but they are probably best thought of as independent changes. Fixes GH-91581
* Add notes for maintaining ABCs (#92736)Raymond Hettinger2022-05-122-0/+51
|