FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-117338: Handle leading `//` for `posixpath.realpath` by nineteendo · Pull Request #117340 · python/cpython · GitHub

Repository navigation

gh-117338: Handle leading // for posixpath.realpath - #117340

Closed
nineteendo wants to merge 3 commits into
python:mainfrom
nineteendo:fix-posixpath.realpath
Closed

nineteendo wants to merge 3 commits into
python:mainfrom
nineteendo:fix-posixpath.realpath

Conversation

nineteendo commented Mar 28, 2024 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

Benchmark:

python -m timeit -s "from test import realpath1" "realpath1('foo/../../..')" && python -m timeit -s "from test import realpath2" "realpath2('foo/../../..')"
10000 loops, best of 5: 23.5 usec per loop # before
10000 loops, best of 5: 23.6 usec per loop # after
# -> no difference

nineteendo marked this pull request as ready for review March 28, 2024 20:35
nineteendo marked this pull request as draft March 28, 2024 21:23
nineteendo mentioned this pull request Mar 29, 2024
16 tasks done
nineteendo closed this Mar 29, 2024
nineteendo deleted the fix-posixpath.realpath branch March 29, 2024 08:14
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL