-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-102511: Add C implementation of os.path.splitroot()
#118089
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
c397a23
Add C implementation of `ntpath.splitroot()`
nineteendo 4bd9734
📜🤖 Added by blurb_it.
blurb-it[bot] 0177f70
Follow Pep 7
nineteendo e9cdec5
Merge branch 'speedup-os.path.splitroot' of https://github.com/ninete…
nineteendo bb816e9
Fix memory leak
nineteendo d00131a
Add C implementation of `posixpath.splitroot()`
nineteendo a4e5d15
Revert newlines
nineteendo 7e1433c
Use `_Py_splitroot()`
nineteendo 5491152
Rename to `_path_splitroot` replacing old one
nineteendo 2244d3f
Update Misc/NEWS.d/next/Core and Builtins/2024-04-19-08-50-48.gh-issu…
nineteendo ca0761a
Rename old function to `_path_splitanchor`
nineteendo e1f32e9
Fix header
nineteendo 34d4d90
Direct C call
nineteendo 30d613b
Allow embedded null
nineteendo f78bad0
Fix segmentation fault
nineteendo 5635da5
Fix redefinition
nineteendo 6f62c1f
Python wrapper
nineteendo 2e1b11a
Revert allow embedded null
nineteendo 92d1c95
Revert newline
nineteendo 5d35720
cast constant
nineteendo bb9b34d
Decrement ref counter
nineteendo bb64b18
Simplify exception clause
nineteendo 75e3a70
Remove cast
nineteendo ef0ce7f
Remove fallback
nineteendo df9f974
Update Modules/posixmodule.c
nineteendo 9cd7951
Update Modules/posixmodule.c
nineteendo f87f82b
Update Python/fileutils.c
nineteendo 62a42fb
Follow pep 7
nineteendo 6a74f15
Update Modules/posixmodule.c
nineteendo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/Core and Builtins/2024-04-19-08-50-48.gh-issue-102511.qDEB66.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Speed up :func:`os.path.splitroot` with a native implementation. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.