Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Meallia
Copy link
Contributor

@Meallia Meallia commented Oct 30, 2024

The logging.Handler class changed in 3.13 and will now always try to acquire the lock in its handle method. (cf python/cpython#109462)

Removed the optimization that created the handler without a lock.

Also configure the CI to run on Python 3.13.

@Meallia Meallia requested a review from nolar as a code owner October 30, 2024 13:45
@Meallia Meallia force-pushed the py313-logging-lock branch from 4876b80 to 8f23670 Compare October 30, 2024 13:47
Signed-off-by: Jonathan GAYVALLET <[email protected]>
the logging.Handler class changed in 3.13 and will now always
try to acquire the lock in its `handle` method.

Removed the optimization that created the handler without a lock
when running python >= 3.13.

Also configure the CI to run on Python 3.13.

Signed-off-by: Jonathan GAYVALLET <[email protected]>
@nolar nolar enabled auto-merge November 18, 2024 19:34
@nolar nolar mentioned this pull request Nov 18, 2024
@nolar nolar merged commit 6b8ce27 into nolar:main Nov 18, 2024
30 checks passed
@nolar
Copy link
Owner

nolar commented Nov 18, 2024

Thank you for your contribution! Sorry for a delayed response from my side. The change is released as 1.37.3.

@Meallia Meallia deleted the py313-logging-lock branch November 18, 2024 20:13
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.

2 participants