mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Rename thread to _thread and dummy_thread to _dummy_thread. Issue #2875.
This commit is contained in:
parent
3b4b45bfe5
commit
2067bfdf25
56 changed files with 161 additions and 169 deletions
|
@ -6,9 +6,9 @@
|
|||
# http://bugs.python.org/issue595601
|
||||
# http://bugs.python.org/issue815646
|
||||
|
||||
import thread
|
||||
import _thread
|
||||
|
||||
while 1:
|
||||
f = open("multithreaded_close.tmp", "w")
|
||||
thread.start_new_thread(f.close, ())
|
||||
_thread.start_new_thread(f.close, ())
|
||||
f.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue