Skip to content

[pull] main from python:main#19

Merged
pull[bot] merged 26 commits intoMu-L:mainfrom
python:main
Jan 17, 2024
Merged

[pull] main from python:main#19
pull[bot] merged 26 commits intoMu-L:mainfrom
python:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Jan 16, 2024

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

erlend-aasland and others added 23 commits January 16, 2024 12:35
…tions (#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
…pported (#114108)

gh-114107: Fix symlink test if symlinks aren't supported
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Passing allow_code=False prevents serialization and de-serialization of
code objects which is incompatible between Python versions.
Also, don't skip the whole collect_windows() if ctypes is missing.

Log also ctypes.windll.shell32.IsUserAnAdmin().
This comment appears to have been mistakenly copied from what is now
called iobase_check_closed() in commit 4d9aec0.

Also unite the iobase_check_closed() code with the relevant comment.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Remove excess words in the first and third sentences.
…g the junction (GH-114089)

This avoids impact on later parts of the application which may be able to do things they otherwise shouldn't.
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
The substantive change is on line 577/593. Rest is header/footer stuff ignored when displaying.
Skip .pth files with names starting with a dot or hidden file attribute.
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
Also fix tests found failing under a pydebug build of WASI thanks to `make test` working due to this change.
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
…113747)

* 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
)

We propagate the `OSError` from the `is_dir()` call on the top-level
directory, and suppress all others.
…#114152)

- 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>
"compatability" => "compatibility"
…110312)

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>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
@pull pull bot added the ⤵️ pull label Jan 17, 2024
Kaniee and others added 3 commits January 16, 2024 20:17
…gh-107404)

* Simplify __post_init__ example usage. It applies to all base classes, not just dataclasses.
…tion (#114153)

The first parameter is named 'fn', not 'func'.
)

This matches Firefox format.  Edge double-spaces non-simple
list but I think it looks worse.
@pull pull bot merged commit e07a400 into Mu-L:main Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.