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
On this page
Latest version 4.4.2, released October 28, 2026. Source repository
Its 4.0.0 release requires Python 3.10 or later. Python end of life dates.
portalocker 4.4.1 breaking changes
- 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
portalocker 4.0.0 breaking changes
- Removed
Python 3.10 or later is now required. Upgrade Python before installing this version. github.com - Removed
portalocker.portalocker.FlockLocker.LOCKER
portalocker.portalocker.FlockLocker.LOCKER was removed in portalocker 4.0.0 pypi.org - Removed
portalocker.portalocker.LockfLocker.LOCKER
portalocker.portalocker.LockfLocker.LOCKER was removed in portalocker 4.0.0 pypi.org - 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 - Behavior changed
open_atomic
On POSIX, publishing now raises FileExistsError instead of replacing a destination created while the context was open. github.com - 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 - 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 - Default changed
Shared locks on Windows now need portalocker[win32] installed; exclusive locks work without it. github.com - Signature changed
portalocker.BoundedSemaphore
Was class BoundedSemaphore(LockBase); now class BoundedSemaphore(LockBase['Lock | None']). pypi.org - Signature changed
portalocker.BoundedSemaphore.__delete__
Was def __delete__(self, instance: LockBase) -> None; now def __delete__(self, instance: LockBase[AcquireReturnT]) -> None. pypi.org
And 15 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.