Skip to content

Commit 11d5dd9

Browse files
committed
Fix Python 3.13 compat by adding missing attibute '_is_main_interpreter'
python/cpython#112826 Python 3.13 doesn't have workaround and so eventlet is broken with Python versions higher than 3.12. Fix eventlet#838 Fix eventlet#604
1 parent 33e05ca commit 11d5dd9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Unreleased
22
==========
33

44
* Dropped support for Python 3.7 and earlier.
5+
* Fix Python 3.13 compat by adding missing attibute '_is_main_interpreter' https://github.com/eventlet/eventlet/pull/847
56

67
0.33.3
78
======

eventlet/green/thread.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
LockType = Lock
1616
__threadcount = 0
1717

18+
if hasattr(__thread, "_is_main_interpreter"):
19+
_is_main_interpreter = __thread._is_main_interpreter
1820

1921
if six.PY3:
2022
def _set_sentinel():

0 commit comments

Comments
 (0)