| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
| |
Remove excess words in the first and third sentences.
|
|
|
|
|
|
|
|
| |
This comment appears to have been mistakenly copied from what is now
called iobase_check_closed() in commit 4d9aec022063.
Also unite the iobase_check_closed() code with the relevant comment.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
| |
Also, don't skip the whole collect_windows() if ctypes is missing.
Log also ctypes.windll.shell32.IsUserAnAdmin().
|
| |
|
|
|
|
|
| |
Passing allow_code=False prevents serialization and de-serialization of
code objects which is incompatible between Python versions.
|
|
|
| |
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
|
|
|
|
|
| |
(#114108)
gh-114107: Fix symlink test if symlinks aren't supported
|
| |
|
|
|
|
|
|
|
|
|
| |
(#114103)
- add :class: and :mod: markups where needed
- fix incorrect escaping of a star in ShareableList arg spec
- mark up parameters with stars: *val*
- mark up list of built-in types using list markup
- remove unneeded parentheses from :meth: markups
|
|
|
|
| |
(GH-114079)
|
|
|
|
| |
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
|
|
|
|
|
| |
__getattr__ (GH-113359)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
|
| |
|
|
|
|
| |
- use PyErr_SetString() iso. PyErr_Format() in parse_tuple_and_keywords()
- fix misspelled format specifier in CHECK_SIGNNESS() macro
|
|
|
|
|
|
|
|
| |
If *trackfd* is False, the file descriptor specified by *fileno*
will not be duplicated.
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
|
|
| |
urrlib.request.getproxies_environment() (#108771)
Small performance improvement of getproxies_environment() when there are many environment variables. In a benchmark with 5k environment variables not related to proxies, and 5 specifying proxies, we get a 10% walltime improvement.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This fixes `_PyInterpreterState_GetAllocatedBlocks()` and
`_Py_GetGlobalAllocatedBlocks()` in the free-threaded builds. The
gh-113263 change that introduced multiple mimalloc heaps per-thread
broke the logic for counting the number of allocated blocks. For subtle
reasons, this led to reported reference count leaks in the refleaks
buildbots.
|
|
|
|
|
|
|
|
|
|
| |
`PyComplex_RealAsDouble()`/`PyComplex_ImagAsDouble` now try to convert
an object to a `complex` instance using its `__complex__()` method
before falling back to the ``__float__()`` method.
PyComplex_ImagAsDouble() also will not silently return 0.0 for
non-complex types anymore. Instead we try to call PyFloat_AsDouble()
and return 0.0 only if this call is successful.
|
|
|
|
| |
not themselves. (GH-114078)
|
|
|
|
|
| |
Add some constants to module 'stat' that are used on macOS.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
| |
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
|
|
|
|
| |
(GH-113991)
|
| |
|
|
|
|
|
| |
This allows users of the `pathlib-abc` PyPI package to use `posixpath` or
`ntpath` as a path module in versions of Python lacking
`os.path.splitroot()` (3.11 and before).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Path modules provide a subset of the `os.path` API, specifically those
functions needed to provide `PurePathBase` functionality. Each
`PurePathBase` subclass references its path module via a `pathmod` class
attribute.
This commit adds a new `PathModuleBase` class, which provides abstract
methods that unconditionally raise `UnsupportedOperation`. An instance of
this class is assigned to `PurePathBase.pathmod`, replacing `posixpath`.
As a result, `PurePathBase` is no longer POSIX-y by default, and
all its methods raise `UnsupportedOperation` courtesy of `pathmod`.
Users who subclass `PurePathBase` or `PathBase` should choose the path
syntax by setting `pathmod` to `posixpath`, `ntpath`, `os.path`, or their
own subclass of `PathModuleBase`, as circumstances demand.
|
|
|
|
| |
`library/http.client.rst` (#114060)
|
|
|
|
|
|
|
|
| |
Establish Tools/clinic/libclinic/utils.py and move the following
functions over there:
- compute_checksum()
- create_regex()
- write_file()
|