---
title: "pathlib 0.97 Breaking Changes on PyPI | Since.dev"
description: "What each pathlib release removed, renamed or changed: 21 breaking changes in 2 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/pathlib
last_updated: 2026-12-04
---

# pathlib breaking changes

pathlib 0.97 (December 10, 2013) is its newest release with breaking changes, 20 of them. The first: Removed pathlib.NTPath. Every breaking API change we have recorded in pathlib on PyPI: 21 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `1.0.1`, released September 3, 2014. 

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [0.8](#v-0-8) to [0.97](#v-0-97): 20 breaking changes in 1 version.

## pathlib 0.97 breaking changes

pathlib 0.97, released December 10, 2013: 20 breaking changes.

- **Removed** `pathlib.NTPath`  

pathlib.NTPath was removed in pathlib 0.97 [pypi.org](https://pypi.org/project/pathlib/0.97/)
- **Removed** `pathlib.Path.__enter__`  

Path.\_\_enter\_\_ was removed in pathlib 0.97 [pypi.org](https://pypi.org/project/pathlib/0.97/)
- **Removed** `pathlib.Path.__exit__`  

Path.\_\_exit\_\_ was removed in pathlib 0.97 [pypi.org](https://pypi.org/project/pathlib/0.97/)
- **Removed** `pathlib.Path.__iter__`  

Path.\_\_iter\_\_ was removed in pathlib 0.97 [pypi.org](https://pypi.org/project/pathlib/0.97/)
- **Removed** `pathlib.Path.raw_open`  

Path.raw_open was removed in pathlib 0.97 [pypi.org](https://pypi.org/project/pathlib/0.97/)
- **Removed** `pathlib.Path.restat`  

Path.restat was removed in pathlib 0.97 [pypi.org](https://pypi.org/project/pathlib/0.97/)
- **Removed** `pathlib.PureNTPath`  

pathlib.PureNTPath was removed in pathlib 0.97 [pypi.org](https://pypi.org/project/pathlib/0.97/)
- **Removed** `pathlib.PurePath.__getitem__`  

PurePath.\_\_getitem\_\_ was removed in pathlib 0.97 [pypi.org](https://pypi.org/project/pathlib/0.97/)
- **Removed** `pathlib.PurePath.as_bytes`  

PurePath.as_bytes was removed in pathlib 0.97 [pypi.org](https://pypi.org/project/pathlib/0.97/)
- **Removed** `pathlib.PurePath.ext`  

PurePath.ext was removed in pathlib 0.97 [pypi.org](https://pypi.org/project/pathlib/0.97/)
- **Removed** `pathlib.PurePath.normcase`  

PurePath.normcase was removed in pathlib 0.97 [pypi.org](https://pypi.org/project/pathlib/0.97/)
- **Removed** `pathlib.PurePath.relative`  

PurePath.relative was removed in pathlib 0.97 [pypi.org](https://pypi.org/project/pathlib/0.97/)
- **Renamed** `pathlib.Path.__getattr__`  

Use Path.with_name instead. [pypi.org](https://pypi.org/project/pathlib/0.97/)
- **Renamed** `pathlib.PurePath.join`  

Use PurePath.joinpath instead. [pypi.org](https://pypi.org/project/pathlib/0.97/)
- **Signature changed** `pathlib.Path.cwd`  

Was @classmethod def cwd(cls, use_openat=False); now @classmethod def cwd(cls). [pypi.org](https://pypi.org/project/pathlib/0.97/)
- **Signature changed** `pathlib.Path.group`  

Was group; now def group(self). [pypi.org](https://pypi.org/project/pathlib/0.97/)
- **Signature changed** `pathlib.Path.owner`  

Was owner; now def owner(self). [pypi.org](https://pypi.org/project/pathlib/0.97/)
- **Signature changed** `pathlib.PurePath.__bytes__`  

Was \_\_bytes\_\_; now def \_\_bytes\_\_(self). [pypi.org](https://pypi.org/project/pathlib/0.97/)
- **Signature changed** `pathlib.PurePath.parent`  

Was def parent(self, level=1); now parent. [pypi.org](https://pypi.org/project/pathlib/0.97/)
- **Signature changed** `pathlib.PurePath.parents`  

Was def parents(self); now parents. [pypi.org](https://pypi.org/project/pathlib/0.97/)

## pathlib 0.8 breaking changes

pathlib 0.8, released February 18, 2013: 1 breaking change.

- **Signature changed** `pathlib.Path.touch`  

Was def touch(self, mode=511, exist_ok=True); now def touch(self, mode=438, exist_ok=True). [pypi.org](https://pypi.org/project/pathlib/0.8/)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
