| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
(#108670)
|
|
|
| |
Co-authored-by: Erlend E. Aasland <erlend@python.org>
|
|
|
|
|
|
|
| |
(GH-103243)" (GH-108667)
This reverts commit 85b0b0cd947c5218260fb2bc2014c8c8de172d33.
It broke builtbots.
|
|
|
|
| |
Move the private _Py_ForgetReference() function to the internal C API
(pycore_object.h).
|
| |
|
|
|
|
|
| |
This reverts commit 7659128b9d7a30ddbcb063bc12e2ddb0f1f119e0.
It broke tests on the Debian and macOS buildbots.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
(#108637)
|
|
|
|
|
|
|
| |
- 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>
|
|
|
| |
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).
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
positional-only (GH-108636)
|
|
|
|
| |
(#108629)
|
|
|
|
| |
(#108624)
|
|
|
|
|
| |
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.
|
|
|
| |
Use PyTuple_Size() instead of PyTuple_GET_SIZE().
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
| |
make it easier to see exactly which options from mypy's `--strict` mode can't currently be enabled
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
threads (#108497)
|
|
|
|
| |
Fix test_peg_generator by exporting the
_Py_UniversalNewlineFgetsWithSize() function.
|
|
|
|
| |
Move the private _PyObject_GetState() function to the internal C API
(pycore_object.h).
|
|
|
|
| |
Move the following private API to the internal C API
(pycore_signal.h): _PyOS_IsMainThread() and _PyOS_SigintEvent().
|
|
|
|
| |
Move the private _PyErr_SetKeyError() function to the internal C API
(pycore_pyerrors.h).
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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.
|
|
|
|
| |
Move the private function to the internal C API (pycore_pythread.h)
and no longer exports it.
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
It's not needed to declare it in Include/iterobject.h: just use
"extern" where it's used (only in object.c).
|
|
|
|
| |
Move _PyCapsule_SetTraverse() definition to a new internal header
file: pycore_capsule.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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".
|
|
|
|
|
|
| |
* Rename _PyUnstable_GetUnaryIntrinsicName() to
PyUnstable_GetUnaryIntrinsicName()
* Rename _PyUnstable_GetBinaryIntrinsicName()
to PyUnstable_GetBinaryIntrinsicName().
|
| |
|
|
|
|
| |
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
|
| |
|
|
|
| |
Co-authored-by: Victor Stinner <vstinner@python.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|