On Mar 9, 2015 7:25 PM, "Steven D'Aprano" <st...@pearwood.info> wrote:
> What I really want is an option to open() that only
> opens a new file, and fails if the file already exists.

If I'm not mistaken, this is the 'x' open mode, added in Python 3.4 (or
maybe 3.3, I forget).

--
Zach
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to