Simple threading in Python 2.6 using thread.start_new_thread()

前端 未结 5 2185
野的像风
野的像风 2020-12-15 09:04

I\'m following a tutorial on simple threading. They give this example and when I try to use it I\'m getting unintelligible errors from the interpreter. Can you please tell m

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-15 09:22

    I tried it in Python 2.5 on a mac, after changing

    except Exception as errtxt:
    

    to

    except Exception, errtxt:
    

    The program did not throw an exception but also did not print anything. Not sure if that is helpful, but I do find it curious...

提交回复
热议问题