[Python-checkins] cpython: Issue #12760: Add a create mode to open(). Patch by David Townshend.

Nick Coghlan ncoghlan at gmail.com
Tue Jan 10 09:50:11 CET 2012


On Tue, Jan 10, 2012 at 7:40 AM, charles-francois.natali
<python-checkins at python.org> wrote:
> http://hg.python.org/cpython/rev/bf609baff4d3
> changeset:   74315:bf609baff4d3
> user:        Charles-François Natali <neologix at free.fr>
> date:        Mon Jan 09 22:40:02 2012 +0100
> summary:
>  Issue #12760: Add a create mode to open(). Patch by David Townshend.

To help make the 'x' more intuitive, it would be helpful if the mode
was referred to as "exclusive create" in the docs (at least once,
anyway), and the What's New entry stated explicitly that 'x' is used
based on the C11 precedent. Otherwise, I'm sure I'll be far from the
only one thinking "why not 'c'?". People shouldn't have to go read the
tracker item to find out the reason 'x' is used instead of 'c'.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-checkins mailing list