| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Éric <merwok@netwok.org>
|
|
|
| |
Use different versions in the examples for when extensions do and do not need to be recompiled to make the examples easier to understand.
|
| |
|
| |
|
|
|
|
| |
This change renames the dataclass __replace__ method's first argument
name from 'obj' to 'self'.
|
|
|
|
|
| |
`Lib/test/test_doctest/` (#112109)
Co-authored-by: Brett Cannon <brett@python.org>
|
| |
|
| |
|
|
|
| |
Co-authored-by: Erlend E. Aasland <erlend@python.org>
|
|
|
|
|
| |
(GH-114067)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
|
|
|
|
|
|
|
|
|
| |
directory (GH-114236)
* gh-104522: Fix test_subprocess failure when build Python in the root home directory
EPERM is raised when setreuid() fails.
EACCES is set in execve() when the test user has not access to sys.executable.
|
| |
|
|
|
|
|
| |
Prefix 'dict' with 'o', 'g', or 'l' for 'object', 'global', or 'local'.
Suffix 'object' with '_'.
|
|
|
| |
Ordered keys are no longer unlike 'real dict's.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#114186)
gh-113205: test_multiprocessing.test_terminate: Test the API works on threadpools
Threads can't be forced to terminate (without potentially corrupting too much
state), so the expected behaviour of `ThreadPool.terminate` is to wait for
the currently executing tasks to finish.
The entire test was skipped in GH-110848 (0e9c364f4ac18a2237bdbac702b96bcf8ef9cb09).
Instead of skipping it entirely, we should ensure the API eventually succeeds:
use a shorter timeout.
For the record: on my machine, when the test is un-skipped, the task manages to
start in about 1.5% cases.
|
|
|
|
|
|
|
| |
Only set filename to cwd if it was caused by failed chdir(cwd).
_fork_exec() now returns "noexec:chdir" for failed chdir(cwd).
Co-authored-by: Robert O'Shea <PurityLake@users.noreply.github.com>
|
|
|
| |
This reverts commit 05e142b1543eb9662d6cc33722e7e16250c9219f.
|
|
|
|
| |
directory name includes a dot (GH-114217)
|
|
|
|
| |
(GH-113129)
|
|
|
|
| |
Instead of checking if a directory does not exist and thereafter
creating it, directly call os.makedirs() with the exist_ok=True.
|
| |
|
|
|
|
| |
opposite (GH-105106)
|
|
|
|
| |
(GH-114160)
|
| |
|
| |
|
|\ |
|
| | |
|
| |
| |
| |
| | |
(GH-111630)
|
| |
| |
| |
| | |
(GH-104283)
|
| | |
|
|/ |
|
| |
|
|
|
|
|
|
|
|
|
| |
Tkinter is a fact, not necessarily a feature.
Reorganize editor key bindings in a logical order
and remove those that do not work, at least on Windows.
Improve shell bindings list.
|
|
|
|
|
| |
This matches Firefox format. Edge double-spaces non-simple
list but I think it looks worse.
|
|
|
|
|
| |
(#114153)
The first parameter is named 'fn', not 'func'.
|
|
|
|
|
| |
(gh-107404)
* Simplify __post_init__ example usage. It applies to all base classes, not just dataclasses.
|
|
|
| |
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
|
|
|
|
|
|
| |
This is a very soft deprecation of `PurePath.as_uri()`. We instead document
it as a `Path` method, and add a couple of sentences mentioning that it's
also available in `PurePath`.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
|
|
|
| |
"compatability" => "compatibility"
|
|
|
|
|
|
|
|
| |
- Align the argument spec for fnmatch functions with the actual
implementation.
- Update Sphinx markup to recent recommandations.
- Add link to 'iterable' glossary entry.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
|
|
|
|
| |
We propagate the `OSError` from the `is_dir()` call on the top-level
directory, and suppress all others.
|
|
|
|
| |
exhaustion (GH-114148)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gh-112529: Track if debug allocator is used as underlying allocator
The GC implementation for free-threaded builds will need to accurately
detect if the debug allocator is used because it affects the offset of
the Python object from the beginning of the memory allocation. The
current implementation of `_PyMem_DebugEnabled` only considers if the
debug allocator is the outer-most allocator; it doesn't handle the case
of "hooks" like tracemalloc being used on top of the debug allocator.
This change enables more accurate detection of the debug allocator by
tracking when debug hooks are enabled.
* Simplify _PyMem_DebugEnabled
|
|
|
| |
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
|
|
|
| |
Also fix tests found failing under a pydebug build of WASI thanks to `make test` working due to this change.
|
|
|
|
|
|
| |
As of #108553, the `_avoid_backslashes` code path is dead
`scape_newlines` was introduced in #110271. Happy to drop the typo fix
if we don't want it
|
|
|
|
| |
Skip .pth files with names starting with a dot or hidden file attribute.
|
|
|
| |
The substantive change is on line 577/593. Rest is header/footer stuff ignored when displaying.
|
|
|
|
|
|
|
|
|
| |
Align the multiprocessing shared memory docs with Diatáxis's
recommendations for references.
- use a parameter list for the SharedMemory.__init__() argument spec
- use the imperative mode
- use versionadded, not versionchanged, for added parameters
- reflow touched lines according to SemBr
|
|
|
|
|
| |
junction (GH-114089)
This avoids impact on later parts of the application which may be able to do things they otherwise shouldn't.
|