Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
35.3k
Star
74.7k
Code
Issues
5k+
Pull requests
2.5k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
cpython
Lib
ntpath.py
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Jun 29, 2026
gh-71450: Document that Tcl sets the HOME variable on Windows (GH-152568)
Show description for 1540584
serhiy-storchaka
and
claude
authored
1540584
View commit details
Copy full SHA for 1540584
View code at this point
Browse repository at this point
Commits on May 25, 2026
gh-150285: Fix too long docstrings in some Python modules (GH-150366)
serhiy-storchaka
authored
01c6d3d
View commit details
Copy full SHA for 01c6d3d
View code at this point
Browse repository at this point
Commits on Dec 8, 2025
Fix pyflakes warnings: variable is assigned to but never used (#142294)
Show description for 0b8c348
vstinner
authored
0b8c348
View commit details
Copy full SHA for 0b8c348
View code at this point
Browse repository at this point
Commits on Oct 31, 2025
gh-136065: Fix quadratic complexity in os.path.expandvars() (GH-134952)
Show description for f029e8d
serhiy-storchaka
and
ambv
authored
f029e8d
View commit details
Copy full SHA for f029e8d
View code at this point
Browse repository at this point
Commits on Jul 30, 2025
gh-71189: Support all-but-last mode in os.path.realpath() (GH-117562)
serhiy-storchaka
authored
9d3b53c
View commit details
Copy full SHA for 9d3b53c
View code at this point
Browse repository at this point
Commits on Jul 23, 2025
gh-136437: Make several functions in `os.path` pos-only (#136949)
sobolevn
authored
99cdf1d
View commit details
Copy full SHA for 99cdf1d
View code at this point
Browse repository at this point
Commits on Jun 3, 2025
gh-135034: Normalize link targets in tarfile, add `os.path.realpath(strict='allow_missing')` (#135037)
Show description for 3612d8f
5 people
authored
3612d8f
View commit details
Copy full SHA for 3612d8f
View code at this point
Browse repository at this point
Commits on May 19, 2025
gh-76023: Make os.path.realpath to ignore WinError 1005 in non-strict mode (GH-128328)
BecoKo
authored
d55e11b
View commit details
Copy full SHA for d55e11b
View code at this point
Browse repository at this point
Commits on Nov 12, 2024
gh-119826: Improved fallback for ntpath.abspath() on Windows (GH-119938)
nineteendo
authored
4b00aba
View commit details
Copy full SHA for 4b00aba
View code at this point
Browse repository at this point
Commits on Jun 12, 2024
gh-120417: Remove unused imports in the stdlib (#120420)
vstinner
authored
4c6d4f5
View commit details
Copy full SHA for 4c6d4f5
View code at this point
Browse repository at this point
Commits on May 24, 2024
gh-118263: Add additional arguments to path_t (Argument Clinic type) in posixmodule (GH-118355)
nineteendo
authored
96b392d
View commit details
Copy full SHA for 96b392d
View code at this point
Browse repository at this point
Commits on May 21, 2024
gh-118507 : Refactor `nt._path_is*` to improve applicability for other cases (GH-118755)
nineteendo
authored
b641825
View commit details
Copy full SHA for b641825
View code at this point
Browse repository at this point
Commits on May 1, 2024
gh-117607: Speedup os.path.relpath() (GH-117608)
nineteendo
authored
a7711a2
View commit details
Copy full SHA for a7711a2
View code at this point
Browse repository at this point
Commits on Apr 25, 2024
gh-102511: Speed up os.path.splitroot() with native helpers (GH-118089)
nineteendo
authored
10bb90e
View commit details
Copy full SHA for 10bb90e
View code at this point
Browse repository at this point
Commits on Apr 14, 2024
gh-117636: Remove redundant type check in `os.path.join()` (#117638)
nineteendo
authored
9ee94d1
View commit details
Copy full SHA for 9ee94d1
View code at this point
Browse repository at this point
Commits on Apr 10, 2024
gh-117686: Improve the performance of ntpath.expanduser() (#117690)
Show description for f90ff03
nineteendo
authored
f90ff03
View commit details
Copy full SHA for f90ff03
View code at this point
Browse repository at this point
Commits on Apr 9, 2024
gh-117648: Improve performance of os.join (#117654)
Show description for 99852d9
nineteendo
and
eendebakpt
authored
99852d9
View commit details
Copy full SHA for 99852d9
View code at this point
Browse repository at this point
Commits on Apr 3, 2024
gh-117381: Improve error messages for ntpath.commonpath() (GH-117382)
nineteendo
authored
2ec6bb4
View commit details
Copy full SHA for 2ec6bb4
View code at this point
Browse repository at this point
Commits on Apr 2, 2024
gh-117349: Micro-optimize a few `os.path` functions (#117350)
Show description for cae4cdd
4 people
authored
cae4cdd
View commit details
Copy full SHA for cae4cdd
View code at this point
Browse repository at this point
Commits on Mar 28, 2024
gh-117335: Handle non-iterables for `ntpath.commonpath` (GH-117336)
nineteendo
authored
14f1ca7
View commit details
Copy full SHA for 14f1ca7
View code at this point
Browse repository at this point
Commits on Mar 25, 2024
gh-117114: Make os.path.isdevdrive available on all platforms (GH-117115)
nineteendo
authored
0821923
View commit details
Copy full SHA for 0821923
View code at this point
Browse repository at this point
Commits on Jan 26, 2024
gh-88569: add `ntpath.isreserved()` (#95486)
Show description for 7e31d6d
4 people
authored
7e31d6d
View commit details
Copy full SHA for 7e31d6d
View code at this point
Browse repository at this point
Commits on Jan 13, 2024
GH-44626, GH-105476: Fix `ntpath.isabs()` handling of part-absolute paths (#113829)
Show description for e4ff131
barneygale
and
jonfoster
authored
e4ff131
View commit details
Copy full SHA for e4ff131
View code at this point
Browse repository at this point
Commits on Oct 5, 2023
gh-82367: Use `FindFirstFile` Win32 API in `ntpath.realpath()` (GH-110298)
Show description for d33aa18
moonsikpark
authored
d33aa18
View commit details
Copy full SHA for d33aa18
View code at this point
Browse repository at this point
Commits on Aug 22, 2023
gh-106242: Make ntpath.realpath errors consistent with abspath when there are embedded nulls (GH-108248)
Show description for de33b5c
zooba
and
gpshead
authored
de33b5c
View commit details
Copy full SHA for de33b5c
View code at this point
Browse repository at this point
Commits on May 29, 2023
gh-104803: Implement ntpath.isdevdrive for checking whether a path is on a Windows Dev Drive (GH-104805)
zooba
authored
bfd20d2
View commit details
Copy full SHA for bfd20d2
View code at this point
Browse repository at this point
Commits on Apr 11, 2023
GH-103220: Fix `ntpath.join()` of partial UNC drive with trailing slash (GH-103221)
barneygale
authored
b57105a
View commit details
Copy full SHA for b57105a
View code at this point
Browse repository at this point
Commits on Apr 7, 2023
GH-88013: Fix TypeError raised by ntpath.realpath in some cases (GH-102813)
aisk
authored
4dc339b
View commit details
Copy full SHA for 4dc339b
View code at this point
Browse repository at this point
Commits on Feb 8, 2023
gh-101196: Make isdir/isfile/exists faster on Windows (GH-101324)
Show description for 86ebd5c
mdboom
and
eryksun
authored
86ebd5c
View commit details
Copy full SHA for 86ebd5c
View code at this point
Browse repository at this point
Commits on Jan 27, 2023
gh-101000: Add os.path.splitroot() (#101002)
Show description for e5b08dd
3 people
authored
e5b08dd
View commit details
Copy full SHA for e5b08dd
View code at this point
Browse repository at this point
Commits on Jan 12, 2023
gh-96290: Support partial/invalid UNC drives in ntpath.normpath() and splitdrive() (GH-100351)
Show description for 005e694
barneygale
and
eryksun
authored
005e694
View commit details
Copy full SHA for 005e694
View code at this point
Browse repository at this point
Commits on Dec 5, 2022
bpo-44817: Ignore additional errors in ntpath.realpath (GH-27574)
Spacetown
authored
124ecd6
View commit details
Copy full SHA for 124ecd6
View code at this point
Browse repository at this point
Commits on Nov 22, 2022
gh-99547: Add isjunction methods for checking if a path is a junction (GH-99548)
csm10495
authored
1b2de89
View commit details
Copy full SHA for 1b2de89
View code at this point
Browse repository at this point
Commits on Sep 7, 2022
gh-89545: Updates platform module to use new internal _wmi module on Windows to directly query OS properties (GH-96289)
zooba
authored
de33df2
View commit details
Copy full SHA for de33df2
View code at this point
Browse repository at this point
Commits on Jun 10, 2022
gh-81790: support "UNC" device paths in `ntpath.splitdrive()` (GH-91882)
barneygale
authored
2ba0fd5
View commit details
Copy full SHA for 2ba0fd5
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.