Re: Is the standard output thread-safe?

2006-03-09 Thread Fernando Rodríguez
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&quo

Blocking a thread for x seconds

2006-03-09 Thread Fernando Rodríguez
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?

2006-03-09 Thread Fernando Rodríguez
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

2006-03-07 Thread Fernando Rodríguez
Hi, How can my script tell which version of python is running it? Thanks -- http://mail.python.org/mailman/listinfo/python-list