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

# portalocker breaking changes

portalocker 4.4.1 (October 16, 2026) is its newest release with breaking changes. The first: Behavior changed open_atomic. Every breaking API change we have recorded in portalocker on PyPI: 26 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 `4.4.2`, released October 28, 2026. [Source repository](https://github.com/wolph/portalocker)

Its 4.0.0 release requires [Python 3.10](https://since.dev/calendar/python/3.10.md) or later. [Python end of life dates](https://since.dev/calendar/python.md).

- From [4.0.0](#v-4-0-0) to [4.4.1](#v-4-4-1): 1 breaking change in 1 version.

## portalocker 4.4.1 breaking changes

portalocker 4.4.1, released October 16, 2026: 1 breaking change.

- **Behavior changed** `open_atomic`  

A relative destination is now resolved to an absolute path when the context is entered, so changing the working directory in the body no longer breaks publication. The yielded handle's name and the paths in FileExistsError messages are now... [github.com](https://github.com/wolph/portalocker/releases/tag/v4.4.1)

## portalocker 4.0.0 breaking changes

portalocker 4.0.0, released August 1, 2026: 25 breaking changes.

- **Removed**  

Python 3.10 or later is now required. Upgrade Python before installing this version. [github.com](https://github.com/wolph/portalocker/releases/tag/v4.0.0)
- **Removed** `portalocker.portalocker.FlockLocker.LOCKER`  

portalocker.portalocker.FlockLocker.LOCKER was removed in portalocker 4.0.0 [pypi.org](https://pypi.org/project/portalocker/4.0.0/)
- **Removed** `portalocker.portalocker.LockfLocker.LOCKER`  

portalocker.portalocker.LockfLocker.LOCKER was removed in portalocker 4.0.0 [pypi.org](https://pypi.org/project/portalocker/4.0.0/)
- **Behavior changed**  

str() of POSIX lock exceptions now shows a 2-tuple repr instead of the bare OSError text. Update code that parses these messages. [github.com](https://github.com/wolph/portalocker/releases/tag/v4.0.0)
- **Behavior changed** `open_atomic`  

On POSIX, publishing now raises FileExistsError instead of replacing a destination created while the context was open. [github.com](https://github.com/wolph/portalocker/releases/tag/v4.0.0)
- **Behavior changed** `PidFileLock.release`  

Calling release on an object that does not hold the lock now does nothing instead of unlinking the lock file. [github.com](https://github.com/wolph/portalocker/releases/tag/v4.0.0)
- **Behavior changed** `TemporaryFileLock.release`  

Calling release on an object that does not hold the lock now does nothing instead of unlinking the lock file. [github.com](https://github.com/wolph/portalocker/releases/tag/v4.0.0)
- **Default changed**  

Shared locks on Windows now need portalocker\[win32\] installed; exclusive locks work without it. [github.com](https://github.com/wolph/portalocker/releases/tag/v4.0.0)
- **Signature changed** `portalocker.BoundedSemaphore`  

Was class BoundedSemaphore(LockBase); now class BoundedSemaphore(LockBase\['Lock | None'\]). [pypi.org](https://pypi.org/project/portalocker/4.0.0/)
- **Signature changed** `portalocker.BoundedSemaphore.__delete__`  

Was def \_\_delete\_\_(self, instance: LockBase) -> None; now def \_\_delete\_\_(self, instance: LockBase\[AcquireReturnT\]) -> None. [pypi.org](https://pypi.org/project/portalocker/4.0.0/)

And 15 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## 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.
