Re: Is the standard output thread-safe?
Hello Fredrik, > Fernando Rodríguez wrote: > >> Is the standard output thread-safe? Can I use print from several >> threads without having to use a mutex? >> > if you use sys.stdout.write on the standard sys.stdout stream, each > write operation is "atomic" (thanks to the GIL). GIL? -- http://mail.python.org/mailman/listinfo/python-list
Blocking a thread for x seconds
Hi, I have a class that descends from threading.Thread. One method should block the thread during x seconds and then call another method. How can I do this? -- http://mail.python.org/mailman/listinfo/python-list
Is the standard output thread-safe?
Hi, Is the standard output thread-safe? Can I use print from several threads without having to use a mutex? Thanks -- http://mail.python.org/mailman/listinfo/python-list
What version of python is running a script
Hi, How can my script tell which version of python is running it? Thanks -- http://mail.python.org/mailman/listinfo/python-list