Message399693
The output is different now.
I update the script for python 3:
---------------------------------------------
import _thread as thread
import time
def start():
print("Secondary thread ID:", thread.get_ident())
import threading
print("Main thread ID:", thread.get_ident())
thread.start_new_thread(start, ())
time.sleep(1)
---------------------------------------------
and the output is:
---------------------------------------------
Main thread ID: 4432801280
Secondary thread ID: 123145384259584
Exception ignored in: <module 'threading' from '/Users/iritkatriel/src/cpython-perf/Lib/threading.py'>
Traceback (most recent call last):
File "/Users/iritkatriel/src/cpython-perf/Lib/threading.py", line 1512, in _shutdown
assert tlock.locked()
^^^^^^^^^^^^^^^^^^^^^
AssertionError:
--------------------------------------------- |
|
Date |
User |
Action |
Args |
2021-08-16 22:17:30 | iritkatriel | set | recipients:
+ iritkatriel, gregory.p.smith, guettli, amaury.forgeotdarc, Rhamphoryncus, pitrou, bronger, cwalther, brian.curtin, cmcqueen1975, alexis, Laurent.Mazuel, eric.snow, hasenpfeffer |
2021-08-16 22:17:30 | iritkatriel | set | messageid: <1629152250.07.0.980403514342.issue1596321@roundup.psfhosted.org> |
2021-08-16 22:17:30 | iritkatriel | link | issue1596321 messages |
2021-08-16 22:17:30 | iritkatriel | create | |
|