summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* gh-64662: Fix NEWS entry and remove What's New entry (#108565)Erlend E. Aasland2023-08-282-4/+1
|
* Fix typo in typing docs: Remove redundant backtick (#108559)nikkie2023-08-281-1/+1
|
* GH-108202: Combine documentation of ``calendar`` constants (#108492)Adam Turner2023-08-283-63/+52
|
* gh-64662: Add virtual table support to sqlite3.Connection.iterdump (#108340)Erlend E. Aasland2023-08-274-7/+38
| | | Co-authored-by: Aviv Palivoda <palaviv@gmail.com>
* gh-108465: Use compiler basename when determining compiler flags (#108392)John Micco2023-08-272-6/+12
| | | | | | Note: GNU Autoconf discourages the use of 'basename', and recommends 'expr' instead. Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-107801: Document io.TextIOWrapper.tell (#108265)Erlend E. Aasland2023-08-273-4/+21
|
* gh-108542: Fix incorrect module name in NEWS entry for gh-105475 (#108543)Ori Avtalion2023-08-271-1/+1
|
* gh-108322: Optimize statistics.NormalDist.samples() (gh-108324)Raymond Hettinger2023-08-273-5/+14
|
* Clarify distinction between datetime module and class in deprecation ↵Clément Robert2023-08-271-4/+4
| | | | messages (GH-108073)
* Fix grammatical error in stringprep documentation (#108414)Matthew James Kraai2023-08-271-1/+1
| | | | | Remove the word "them", which didn't make grammatical sense. Co-authored-by: KRAAI, MATTHEW [VISUS] <mkraai@its.jnj.com>
* gh-105052:update timeit function's description (#105060)R2023-08-273-8/+17
| | | | | --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-107453: Document errno.{ECANCELED,EOWNERDEAD,ENOTRECOVERABLE,ENOTSUP} ↵qqwqqw6892023-08-271-0/+28
| | | | | | (#107486) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-107265: Fix initialize/remove_tools for ENTER_EXECUTOR case (gh-108482)Dong-hee Na2023-08-271-4/+32
|
* gh-108295: Fix crashes with TypeVar weakrefs (#108517)Jelle Zijlstra2023-08-273-0/+14
|
* gh-107913: Fix possible losses of OSError error codes (GH-107930)Serhiy Storchaka2023-08-2617-75/+129
| | | | | | Functions like PyErr_SetFromErrno() and SetFromWindowsErr() should be called immediately after using the C API which sets errno or the Windows error code.
* gh-107406: Add better `struct.Struct` repr (#107407)denballakh2023-08-264-0/+29
|
* gh-106320: Remove private AC converter functions (#108505)Victor Stinner2023-08-2641-62/+88
| | | | | | | | | | | | | | Move these private functions to the internal C API (pycore_abstract.h): * _Py_convert_optional_to_ssize_t() * _PyNumber_Index() Argument Clinic now emits #include "pycore_abstract.h" when these functions are used. The parser of the c-analyzer tool now uses a list of files which use the limited C API, rather than a list of files using the internal C API.
* gh-106320: Remove private _PyLong_FileDescriptor_Converter() (#108503)Victor Stinner2023-08-2613-10/+43
| | | | | | | | | Move the private _PyLong converter functions to the internal C API * _PyLong_FileDescriptor_Converter(): moved to pycore_fileutils.h * _PyLong_Size_t_Converter(): moved to pycore_long.h Argument Clinic now emits includes for pycore_fileutils.h and pycore_long.h when these functions are used.
* gh-106320: Remove private _PyLong converter functions (#108499)Victor Stinner2023-08-2614-14/+46
| | | | | | | | | | | Move these private functions to the internal C API (pycore_long.h): * _PyLong_UnsignedInt_Converter() * _PyLong_UnsignedLongLong_Converter() * _PyLong_UnsignedLong_Converter() * _PyLong_UnsignedShort_Converter() Argument Clinic now emits #include "pycore_long.h" when these functions are used.
* gh-108494: AC supports pos-only args in limited C API (#108498)Victor Stinner2023-08-254-5/+82
| | | | AC now checks for "#define Py_LIMITED_API" pattern to use the limited C API.
* gh-107603: Argument Clinic can emit includes (#108486)Victor Stinner2023-08-251-17/+41
| | | | | | * Add Clinic.add_include() method * Add CConverter.include and CConverter.add_include() * Printer.print_block() gets a second parameter: clinic. * Remove duplicated declaration of "clinic" global variable.
* gh-108494: Argument Clinic partial supports of Limited C API (#108495)Victor Stinner2023-08-257-13/+208
| | | | | | | | | | Argument Clinic now has a partial support of the Limited API: * Add --limited option to clinic.c. * Add '_testclinic_limited' extension which is built with the limited C API version 3.13. * For now, hardcode in clinic.py that "_testclinic_limited.c" targets the limited C API.
* GH-106581: Fix instrumentation in tier 2 (GH-108493)Brandt Bucher2023-08-254-12/+20
|
* gh-107901: add the HAS_EVAL_BREAK instruction flag (#108375)Irit Katriel2023-08-253-21/+28
|
* gh-104504: Cases generator: enable mypy's `possibly-undefined` error code ↵Alex Waygood2023-08-252-5/+10
| | | | (#108454)
* gh-102211: Document `re.{Pattern,Match}`’s existence (#102212)Philipp A2023-08-251-30/+37
| | | | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-108311: Fix test_store_attr_with_hint by disabling optimizer in decorator ↵Guido van Rossum2023-08-251-0/+14
| | | | | | | | | (#108312) See https://github.com/python/cpython/issues/108311#issuecomment-1693569380 --------- Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
* gh-107265: Revert "Ensure _PyCode_Quicken does not handle ENTER_EXECUTOR" ↵Dong-hee Na2023-08-251-2/+0
| | | | | | | (#108485) This reverts commit d6ac5c7b105fe57266bd71248e3ada41fedb5ba9. Reason: the assert we just added could be triggered (see issue).