threading.Lock() not working through script

后端 未结 1 718
生来不讨喜
生来不讨喜 2021-01-24 02:36

I\'m experimenting with the threading function in python 3 to get my own pingtesting app/log working, so im following a youtube tutorial

When I\'ve launched a python 3 i

相关标签:
1条回答
  • 2021-01-24 02:57

    Did you happen to name your module (or another module in the working directory) threading.py? It would get imported ahead of the built-in threading, causing this exact problem.

    Trying running:

    print(threading.__file__)
    

    in your module, I suspect you'll find it's not the Python built-in.

    0 讨论(0)
提交回复
热议问题