[issue39581] Python Interpreter Doesn't Work Well In Thread Class

2020-02-08 Thread SilentGhost
Change by SilentGhost : -- nosy: +mark.dickinson resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue39581] Python Interpreter Doesn't Work Well In Thread Class

2020-02-08 Thread SilentGhost
SilentGhost added the comment: SyntaxError is produced when there is a syntax problem in the code to be executed, this code is fine from the syntax perspective, so this particular error would not be raised. It is also perfectly fine to have a function call where you have it, the only thing

[issue39581] Python Interpreter Doesn't Work Well In Thread Class

2020-02-08 Thread Mark Dickinson
Mark Dickinson added the comment: There's no other reasonable way for Python to work here. It *is* an error to pass something that's not a callable as a thread "target", but it's a coding error that can only be detected at runtime, not a syntax error that can be detected statically before

[issue39581] Python Interpreter Doesn't Work Well In Thread Class

2020-02-08 Thread 임수진학부생
New submission from 임수진학부생 <21600...@handong.edu>: import threading import time def threadFunc(): while True: print('new thread') time.sleep(2) def main(): th = threading.Thread(target=threadFunc())