Skip to content

Issue 280 fix log lock with a non none dummy lock#281

Merged
eldipa merged 2 commits intomasterfrom
Issue-280-Fix-Log-Lock-With-a-Non-None-Dummy-Lock
Mar 15, 2026
Merged

Issue 280 fix log lock with a non none dummy lock#281
eldipa merged 2 commits intomasterfrom
Issue-280-Fix-Log-Lock-With-a-Non-None-Dummy-Lock

Conversation

@eldipa
Copy link
Collaborator

@eldipa eldipa commented Mar 15, 2026

No description provided.

eldipa added 2 commits April 16, 2023 10:40
In Python 3.13, the Python's loggin.StreamHandler uses its lock
without using explicitly its `acquire` and `release` methods so when
the class uses the lock, it finds a `None` and it crashes.

`None` was set by XStreamHandler to avoid the cost of it (because
the mutual exclusion is solved by downstream code (concerns set)
and the lock is not really needed).

Now, we use a _DummyRLock to emulate a real reentrant lock but
with zero cost as designed.

Closes #280
@eldipa eldipa self-assigned this Mar 15, 2026
@eldipa eldipa merged commit 0a093b3 into master Mar 15, 2026
0 of 54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant