summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo in multiprocessing docs (#108666)kato89662023-08-301-1/+1
|
* gh-108669: unittest: Fix documentation for TestResult.collectedDurations ↵Sebastian Rittau2023-08-301-1/+1
| | | | (#108670)
* gh-108590: Fix sqlite3.iterdump for invalid Unicode in TEXT columns (#108657)Corvin2023-08-303-2/+41
| | | Co-authored-by: Erlend E. Aasland <erlend@python.org>
* Revert "gh-103224: Use the realpath of the Python executable in `test_venv` ↵Serhiy Storchaka2023-08-301-5/+3
| | | | | | | (GH-103243)" (GH-108667) This reverts commit 85b0b0cd947c5218260fb2bc2014c8c8de172d33. It broke builtbots.
* gh-106320: Remove private _Py_ForgetReference() (#108664)Victor Stinner2023-08-302-5/+5
| | | | Move the private _Py_ForgetReference() function to the internal C API (pycore_object.h).
* Mention Ellipsis pickling in the docs (#103660)sterliakov2023-08-301-1/+2
|
* Revert "Use non alternate name for Kyiv (GH-108533)" (GH-108649)Serhiy Storchaka2023-08-291-1/+1
| | | | | This reverts commit 7659128b9d7a30ddbcb063bc12e2ddb0f1f119e0. It broke tests on the Debian and macOS buildbots.
* gh-108278: Deprecate passing the first param of sqlite3.Connection callback ↵Erlend E. Aasland2023-08-297-22/+206
| | | | | | | | | | | | APIs by keyword (#108632) Deprecate passing the callback callable by keyword for the following sqlite3.Connection APIs: - set_authorizer(authorizer_callback) - set_progress_handler(progress_handler, ...) - set_trace_callback(trace_callback) The affected parameters will become positional-only in Python 3.15.
* gh-108455: peg_generator: install two stubs packages before running mypy ↵Alex Waygood2023-08-294-6/+17
| | | | (#108637)
* gh-107801: Improve the accuracy of io.IOBase.seek docs (#108268)Erlend E. Aasland2023-08-293-14/+23
| | | | | | | - Add param docstrings - Link to os.SEEK_* constants - Mention the return value in the initial paragraph Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-108488: Initialize JUMP_BACKWARD cache to 0, not 17 (#108591)Guido van Rossum2023-08-293-3/+6
| | | This mis-initialization caused the executor optimization to kick in sooner than intended. It also set the lower 4 bits of the counter to `1` -- those bits are supposed to be reserved (the actual counter is in the upper 12 bits).
* gh-107557: Remove unnecessary SAVE_IP instructions (#108583)Guido van Rossum2023-08-295-231/+392
| | | | | Also remove NOP instructions. The "stubs" are not optimized in this fashion (their SAVE_IP should always be preserved since it's where to jump next, and they don't contain NOPs by their nature).
* test_sys: remove debug print() (#108642)Victor Stinner2023-08-291-1/+0
|
* gh-108638: Fix stat.filemode() when _stat is missing (#108639)Victor Stinner2023-08-292-3/+13
| | | | | | Change the pure Python implementation of stat.filemode() for unknown file type: use "?", as done by the _stat.filemode(). test_stat skips TestFilemodeCStat if the _stat extension is missing.
* Use non alternate name for Kyiv (GH-108533)Jochen Sprickerhof2023-08-291-1/+1
| | | | | | | | | | | tzdata provides Kiev as an alternative to Kyiv: https://sources.debian.org/src/tzdata/2023c-10/backward/?hl=314#L314 But Debian moved it to the tzdata-legacy package breaking the test: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050530 This patch switches to the name provided by tzdata.
* gh-108635: Make parameters of some implementations of special methods ↵Serhiy Storchaka2023-08-298-254/+36
| | | | positional-only (GH-108636)
* gh-108455: peg generator: Use `strict_optional=True` for `grammar_parser` ↵Nikita Sobolev2023-08-292-4/+1
| | | | (#108629)
* gh-108623: Fix compile warning in `Modules/_multiprocessing/semaphore.c` ↵Nikita Sobolev2023-08-291-0/+5
| | | | (#108624)
* gh-108494: Don't build _testclinic_limited with TraceRefs (#108608)Victor Stinner2023-08-293-1/+46
| | | | | If Python is built with ./configure --with-trace-refs, don't build the _testclinic_limited extension. The limited C API (Py_LIMITED_API) is not compatible with Py_TRACE_REFS.
* gh-108494: Argument Clinic: fix option group for Limited C API (#108574)Victor Stinner2023-08-291-3/+9
| | | Use PyTuple_Size() instead of PyTuple_GET_SIZE().
* gh-108455: peg_generator: make the mypy config slightly stricter (#108627)Alex Waygood2023-08-294-8/+12
| | | | | | | | | * Enable `--no-implicit-reexport` * Enable the `truthy-bool` error code * Enable the `ignore-without-code` error code * Explicitly note that `--warn-unreachable` cannot yet be enabled
* gh-108455: Simplify the peg_generator mypy config (#108620)Alex Waygood2023-08-291-18/+8
| | | make it easier to see exactly which options from mypy's `--strict` mode can't currently be enabled
* gh-108617: Extend interactive session tests for sqlite3 (GH-108556)Serhiy Storchaka2023-08-291-6/+32
|
* gh-108550: Fix sqlite3 CLI regression from gh-108551 (#108618)Erlend E. Aasland2023-08-291-1/+1
|
* gh-108558: Improve sqlite3 row factory tests (#108578)Edward Schauman-Haigh2023-08-291-14/+14
| | | | | | | | | Add test_sqlite_row_keys() to explicitly test sqlite3.Row.keys(). Cleanups: - Reduce test noise by converting docstrings to regular comments - Reduce boilerplate code by adding a setUp() method to RowFactoryTests Co-authored-by: Erlend E. Aasland <erlend@python.org>
* GH-106176, GH-104702: Fix reference leak when importing across multiple ↵Brett Cannon2023-08-292-12/+107
| | | | threads (#108497)
* gh-106320: Fix test_peg_generator: _Py_UniversalNewlineFgetsWithSize() (#108609)Victor Stinner2023-08-291-1/+2
| | | | Fix test_peg_generator by exporting the _Py_UniversalNewlineFgetsWithSize() function.
* gh-106320: Remove private _PyObject_GetState() (#108606)Victor Stinner2023-08-292-6/+4
| | | | Move the private _PyObject_GetState() function to the internal C API (pycore_object.h).
* gh-106320: Remove private _PyOS_IsMainThread() function (#108605)Victor Stinner2023-08-292-9/+11
| | | | Move the following private API to the internal C API (pycore_signal.h): _PyOS_IsMainThread() and _PyOS_SigintEvent().
* gh-106320: Remove private _PyErr_SetKeyError() (#108607)Victor Stinner2023-08-293-4/+5
| | | | Move the private _PyErr_SetKeyError() function to the internal C API (pycore_pyerrors.h).
* gh-106320: Remove private _PyLong_New() function (#108604)Victor Stinner2023-08-292-8/+11
| | | | | | | | | Move the following private API to the internal C API (pycore_long.h): * _PyLong_Copy() * _PyLong_FromDigits() * _PyLong_New() No longer export most of these functions.
* gh-106320: Remove private _PyGILState_GetInterpreterStateUnsafe() (#108603)Victor Stinner2023-08-292-9/+8
| | | | | The remove private _PyGILState_GetInterpreterStateUnsafe() function from the public C API: move it the internal C API (pycore_pystate.h). No longer export the function.
* gh-106320: Remove private _PyThread_at_fork_reinit() function (#108601)Victor Stinner2023-08-292-7/+8
| | | | Move the private function to the internal C API (pycore_pythread.h) and no longer exports it.
* gh-106320: Remove private _Py_UniversalNewlineFgetsWithSize() (#108602)Victor Stinner2023-08-292-1/+2
| | | | | The remove private _Py_UniversalNewlineFgetsWithSize() function from the public C API: move it the internal C API (pycore_fileutils.h). No longer export the function.
* gh-106320: Remove private pythonrun API (#108599)Victor Stinner2023-08-299-24/+48
| | | | | | | | | | | Remove these private functions from the public C API: * _PyRun_AnyFileObject() * _PyRun_InteractiveLoopObject() * _PyRun_SimpleFileObject() * _Py_SourceAsString() Move them to the internal C API: add a new pycore_pythonrun.h header file. No longer export these functions.
* gh-106320: Remove _PyAnextAwaitable_Type from the public C API (#108597)Victor Stinner2023-08-294-9/+6
| | | | It's not needed to declare it in Include/iterobject.h: just use "extern" where it's used (only in object.c).
* gh-108240: Add pycore_capsule.h internal header file (#108596)Victor Stinner2023-08-297-5/+24
| | | | Move _PyCapsule_SetTraverse() definition to a new internal header file: pycore_capsule.h.
* gh-106320: Remove private _Py_Identifier API (#108593)Victor Stinner2023-08-298-46/+66
| | | | | | | | | | | | | | | Remove the private _Py_Identifier type and related private functions from the public C API: * _PyObject_GetAttrId() * _PyObject_LookupSpecialId() * _PyObject_SetAttrId() * _PyType_LookupId() * _Py_IDENTIFIER() * _Py_static_string() * _Py_static_string_init() Move them to the internal C API: add a new pycore_identifier.h header file. No longer export these functions.
* Fix misc doc typos (#108592)xzmeng2023-08-298-9/+9
|
* gh-108494: Build _testclinic_limited on Windows (#108589)Victor Stinner2023-08-285-62/+195
| | | | | | | | | | | | | | Add _testclinic_limited project to the Visual Studio solution: * In "PCbuild/", copy "_asyncio.vcxproj" to "_testclinic_limited.vcxproj", replace "RootNamespace" with "_testclinic_limited", replace "_asyncio.c" with "_testclinic_limited.c". * Open Visual Studio, open "PCbuild\pcbuild.sln", add the existing "PCbuild\_testclinic_limited.vcxproj" project to the solution. * Add a dependency from "python" project to the "_testclinic_limited" project. * Save and exit Visual Studio. * Add ";_testclinic_limited" to "<TestModules Include="...">" in "PCbuild\pcbuild.proj".
* gh-107149: Rename _PyUnstable_GetUnaryIntrinsicName() function (#108441)Victor Stinner2023-08-283-6/+6
| | | | | | * Rename _PyUnstable_GetUnaryIntrinsicName() to PyUnstable_GetUnaryIntrinsicName() * Rename _PyUnstable_GetBinaryIntrinsicName() to PyUnstable_GetBinaryIntrinsicName().
* GH-107603: Clinic: Pass specific attributes to ``print_block()`` (#108581)Adam Turner2023-08-282-12/+18
|
* gh-108455: Run `mypy` on `Tools/peg_generator` (#108456)Nikita Sobolev2023-08-286-11/+23
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-106670: Allow Pdb to move between chained exceptions (#106676)Matthias Bussonnier2023-08-285-20/+526
|
* gh-108494: Argument clinic: Improve the `parse_file()` API (#108575)Alex Waygood2023-08-282-27/+13
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-108487: Move assert(self != NULL) down beyond DEOPT_IF() (#108510)Guido van Rossum2023-08-283-2/+3
|
* gh-108278: Deprecate passing the three first params as keyword args for ↵Erlend E. Aasland2023-08-286-6/+112
| | | | | | | | | | | sqlite3 UDF creation APIs (#108281) Deprecate passing name, number of arguments, and the callable as keyword arguments, for the following sqlite3.Connection APIs: - create_function(name, nargs, callable, ...) - create_aggregate(name, nargs, callable) The affected parameters will become positional-only in Python 3.15.
* gh-108494: Argument Clinic: fix support of Limited C API (GH-108536)Serhiy Storchaka2023-08-2810-114/+147
|
* gh-104683: Argument Clinic: Refactor the module and class resolver (#108552)Erlend E. Aasland2023-08-282-18/+12
|
* gh-108550: Speed up sqlite3 tests (#108551)Erlend E. Aasland2023-08-284-101/+74
| | | | | | | | | | | | | Refactor the CLI so we can easily invoke it and mock command-line arguments. Adapt the CLI tests so we no longer have to launch a separate process. Disable the busy handler for all concurrency tests; we have full control over the order of the SQLite C API calls, so we can safely do this. The sqlite3 test suite now completes ~8 times faster than before. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>