GeezerVison is showing github.com — gh-134664: Document cleanup_socket parameter in asyncio.start_unix_server() by ashm-dev · Pull Request #134750 · python/cpython
Conversation
ashm-dev
commented
May 26, 2025
•
edited by github-actions
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
This PR adds documentation for the cleanup_socket parameter in asyncio.start_unix_server() function, which was added in Python 3.13 with a default value of True. This parameter controls whether the Unix socket is automatically removed from the filesystem when the server is closed.
Details
In Python 3.13, a feature was added where Unix sockets are automatically cleaned up by default when using asyncio.start_unix_server(). This was considered a breaking change, but it wasn't properly documented at the time of implementation.
This PR:
- Adds the
cleanup_socket parameter to the function signature in the documentation
- Adds a description of what the parameter does
- Adds a version note indicating this was added in Python 3.13
Related Issues
Closes #134664
Related to #133354
📚 Documentation preview 📚: https://cpython-previews--134750.org.readthedocs.build/
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
efimov-mikhail reacted with thumbs up emoji
…nix_server()
Document that in Python 3.13, the cleanup_socket parameter was added to
asyncio.start_unix_server() with a default value of True. This parameter
controls whether the Unix socket is automatically removed from the
filesystem when the server is closed.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks @ashm-dev for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖
|
ashm-dev reacted with hooray emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|