[docs] [issue12760] Add create mode to open()

STINNER Victor report at bugs.python.org
Wed Aug 24 23:34:40 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

>    open(filename, 'w',
>         fd_opener=lambda path, mode: os.open(path, mode|os.O_CREAT)

I prefer open(name, "c").

> it doesn't fill a use case: actually, avoiding race conditions
> is an important use case, ...

It may help the issue #8604 (and maybe #8828).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12760>
_______________________________________


More information about the docs mailing list