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
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.4k
Star
77.2k
Code
Issues
5k+
Pull requests
2.6k
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
pathlib
types.py
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on May 10, 2026
gh-149611: Explain return values for `Path.write_text()` and `Path.write_bytes()` (#149629)
Show description for a8e3247
omkar-334
and
nedbat
authored
a8e3247
View commit details
Copy full SHA for a8e3247
View code at this point
Browse repository at this point
Commits on Oct 10, 2025
pathlib ABCs: restore `relative_to()` and `is_relative_to()` (#138853)
Show description for 49aaee7
barneygale
authored
49aaee7
View commit details
Copy full SHA for 49aaee7
View code at this point
Browse repository at this point
Commits on Sep 12, 2025
GH-128520: pathlib ABCs: improve protocol for 'openable' objects (#134101)
Show description for 805e336
barneygale
and
encukou
authored
805e336
View commit details
Copy full SHA for 805e336
View code at this point
Browse repository at this point
Commits on May 12, 2025
GH-128520: pathlib ABCs: add `JoinablePath.__vfspath__()` (#133437)
Show description for 5dbd27d
barneygale
authored
5dbd27d
View commit details
Copy full SHA for 5dbd27d
View code at this point
Browse repository at this point
Commits on Apr 28, 2025
GH-128520: pathlib ABCs: raise text encoding warnings at correct stack level (#133051)
Show description for fbffd70
barneygale
authored
fbffd70
View commit details
Copy full SHA for fbffd70
View code at this point
Browse repository at this point
Commits on Mar 24, 2025
GH-128520: pathlib ABCs: tighten up argument types (#131621)
Show description for d372472
barneygale
authored
d372472
View commit details
Copy full SHA for d372472
View code at this point
Browse repository at this point
GH-128520: pathlib ABCs: reject empty pattern in `ReadablePath.glob()` (#127343)
Show description for fbfb0e1
barneygale
authored
fbfb0e1
View commit details
Copy full SHA for fbfb0e1
View code at this point
Browse repository at this point
Commits on Mar 16, 2025
GH-130614: pathlib ABCs: improve support for receiving path metadata (#131259)
Show description for 563ab5c
barneygale
authored
563ab5c
View commit details
Copy full SHA for 563ab5c
View code at this point
Browse repository at this point
Commits on Mar 10, 2025
GH-127381: pathlib ABCs: remove `case_sensitive` argument (#131024)
Show description for 93fc3d3
barneygale
authored
93fc3d3
View commit details
Copy full SHA for 93fc3d3
View code at this point
Browse repository at this point
Commits on Mar 9, 2025
GH-130614: pathlib ABCs: support alternate separator in `full_match()` (#130991)
Show description for bbd6d17
barneygale
authored
bbd6d17
View commit details
Copy full SHA for bbd6d17
View code at this point
Browse repository at this point
GH-130614: pathlib ABCs: retain original separator in `with_name()` (#130990)
Show description for ba64cc5
barneygale
authored
ba64cc5
View commit details
Copy full SHA for ba64cc5
View code at this point
Browse repository at this point
Commits on Mar 3, 2025
GH-128520: Merge `pathlib._abc` into `pathlib.types` (#130747)
Show description for d0eb01c
barneygale
authored
d0eb01c
View commit details
Copy full SHA for d0eb01c
View code at this point
Browse repository at this point
Commits on Feb 8, 2025
GH-125413: Add `pathlib.Path.info` attribute (#127730)
Show description for 718ab66
barneygale
authored
718ab66
View commit details
Copy full SHA for 718ab66
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.