| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
blocks (#120425)
|
|
|
|
| |
Don't access directly PyObject.ob_type, but use the Py_TYPE() macro
instead.
|
| |
|
|
|
|
|
| |
(#120480)
gh-112346: Describe the "os" byte in gzip output change.
|
|
|
|
| |
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
|
|
|
|
|
|
|
|
| |
(#118597)
Add thread-safety clarifications to the SSLContext documentation. Per the issue:
This issue has also come up [here](https://github.com/psf/requests/pull/6667) where the matter was clarified by @tiran in [this comment](https://github.com/psf/requests/pull/6667):
> `SSLContext` is designed to be shared and used for multiple connections. It is thread safe as long as you don't reconfigure it once it is used by a connection. Adding new certs to the internal trust store is fine, but changing ciphers, verification settings, or mTLS certs can lead to surprising behavior. The problem is unrelated to threads and can even occur in a single-threaded program.
|
| |
|
|
|
|
| |
`test_critical_sections` (#120585)
|
| |
|
|
|
|
|
| |
`socketserver.TCPServer` (GH-120488)
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
|
| |
|
|
|
| |
Add self as IDLE doc owner
|
| |
|
|
|
|
|
| |
(GH-120486)
This matches the output behavior in 3.10 and earlier; the optimization in 3.11 allowed the zlib library's "os" value to be filled in instead in the circumstance when mtime was 0. this keeps things consistent.
|
|
|
|
|
| |
When help() is called with non-string argument, use __qualname__ or
__name__ if available, otherwise use "{typename} object".
|
|
|
|
|
| |
This behavior is rather surprising and it was not clearly specified.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
|
|
|
| |
Make PyType_HasFeature (exported version) atomic
|
|
|
|
| |
`eval_str=True` (#120550)
|
|
|
| |
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
|
| |
|
|
|
|
|
| |
map() requires at least one iterable arg.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
|
|
|
|
|
| |
(#120477)
Use the correct loader for iOS.
|
|
|
|
|
| |
subprocess support (#120476)
Skip tests that require multiprocessing subprocess support.
|
|
|
|
| |
test_interpreters.test_stress (gh-120525)
|
|
|
|
|
|
|
| |
In gh-120009 I used an atexit hook to finalize the _datetime module's static types at interpreter shutdown. However, atexit hooks are executed very early in finalization, which is a problem in the few cases where a subclass of one of those static types is still alive until the final GC collection. The static builtin types don't have this probably because they are finalized toward the end, after the final GC collection. To avoid the problem for _datetime, I have applied a similar approach here.
Also, credit goes to @mgorny and @neonene for the new tests.
FYI, I would have liked to take a slightly cleaner approach with managed static types, but wanted to get a smaller fix in first for the sake of backporting. I'll circle back to the cleaner approach with a future change on the main branch.
|
|
|
|
|
|
|
|
|
|
|
| |
Add __all__ to the following modules:
importlib.machinery, importlib.util and xml.sax.
Add also "# noqa: F401" in collections.abc,
subprocess and xml.sax.
* Sort __all__; remove collections.abc.__all__; remove private names
* Add tests
|
|
|
| |
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
|
|
|
|
|
| |
(GH-120364)
* gh-120361: Add `nonmember` test with enum flags inside to `test_enum`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a `Path.copy()` method that copies the content of one file to another.
This method is similar to `shutil.copyfile()` but differs in the following ways:
- Uses `fcntl.FICLONE` where available (see GH-81338)
- Uses `os.copy_file_range` where available (see GH-81340)
- Uses `_winapi.CopyFile2` where available, even though this copies more metadata than the other implementations. This makes `WindowsPath.copy()` more similar to `shutil.copy2()`.
The method is presently _less_ specified than the `shutil` functions to allow OS-specific optimizations that might copy more or less metadata.
Incorporates code from GH-81338 and GH-93152.
Co-authored-by: Eryk Sun <eryksun@gmail.com>
|
|
|
| |
Add TSAN suppression for set_default_allocator_unlocked
|
| |
|
| |
|
|
|
|
| |
`inspect.get_annotations` (#120270)
|
|
|
|
| |
Add dedicated subsection for `pathlib.Path.rename()`, `replace()`,
`unlink()` and `rmdir()`.
|
|
|
|
|
|
|
|
| |
queues. (GH-120102)
* improve doc for `multiprocessing.Queue.empty`
* add tests for checking emptiness of queues
Co-authored-by: Gregory P. Smith <greg@krypto.org>
|
| |
|
|
|
| |
Check if the DateTime C-API type matches the datetime.date type on main and shared/isolated subinterpreters.
|
|
|
|
|
|
|
|
|
| |
(#120186)
Add dedicated subsection for `pathlib.Path.touch()`, `mkdir()`,
`symlink_to()` and `hardlink_to()`. Also note that `open()`, `write_text()`
and `write_bytes()` are often used to create files.
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
|
| |
|
| |
|
|
|
|
|
| |
Tools such as ruff can ignore "imported but unused" warnings if a
line ends with "# noqa: F401". It avoids the temptation to remove
an import which is used effectively.
|
|
|
|
|
|
| |
`*.md` and `*.ini` files. (#120435)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
|
| |
|
|
|
| |
* stop the world when setting local events
|
|
|
| |
Make PyType_HasFeature atomic
|
|
|
|
|
|
|
|
| |
Remove wheeldata from both sides of the `assertEqual`, so that we're
*actually* ignoring it from the test set.
This test is only making assertions about the source tree, no code is
being executed that would do anything different based on the value of
`WHEEL_PKG_DIR`.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
(gh-120224)
The _strptime module object was cached in a static local variable (in the datetime.strptime() implementation). That's a problem when it crosses isolation boundaries, such as reinitializing the runtme or between interpreters. This change fixes the problem by dropping the static variable, instead always relying on the normal sys.modules cache (via PyImport_Import()).
|