Writing to same file from two threads

Antoine Pitrou solipsis at pitrou.net
Fri Mar 1 15:54:14 CET 2013


Steven D'Aprano <steve+comp.lang.python <at> pearwood.info> writes:
> 
> On Wed, 27 Feb 2013 13:26:18 +0000, Antoine Pitrou wrote:
> 
> > For the record, binary files are thread-safe in Python 3, but text files
> > are not.
> 
> Where is this documented please?

In the documentation, of course ;)
http://docs.python.org/3.3/library/io.html#multi-threading

Regards

Antoine.







More information about the Python-list mailing list