On Wed, Nov 23, 2016 at 6:20 AM, Victor Stinner
<victor.stin...@gmail.com> wrote:
> It's not bug but a feature :-) Python doesn't protect yourself against
> mistakes :-)

AIUI the normal way to protect yourself is to unlink (remove) the file
and create it from scratch, rather than truncate it.

ChrisA
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to