<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 20, 2016 at 4:27 AM,  <span dir="ltr"><<a href="mailto:keith.briggs@bt.com" target="_blank">keith.briggs@bt.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><code><span>> 'x'</span></code> to exclusive create and write a new file</blockquote></div><br>It means always create  a new file. Don't append and if the file exists, don't overwrite, but throw a FileExistsError Exception.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I think, it could be clarified a bit. It could be stated as "Exclusively create and write a new file. Unlike 'w', if the file already exists, 'x' mode will raise a FileExistsError exception."</div><div class="gmail_extra"><br></div><div class="gmail_extra">-- </div><div class="gmail_extra">Senthil</div><div class="gmail_extra"><br></div></div>