Conversation
|
I also thought of this and I like the idea, but I fear it has some subtleties. I would very much prefer the default to be The default value Another possibility would be to have opposite default values depending on the Python version, which sounds quite dubious to me (but may be the way to go?). I feel this is a bit of a conundrum ... Or am I missing something? |
|
Since |
|
But how should we handle the discrepancy between Python 2 and 3 behavior? |
|
We could explicitly check if the file exists and throw an error if it does in Python 2. |
|
I just realized that there might be a conceptual problem with calling the option How else could we call this argument? The explanation for Another possibility would be to add a Or should we call it |
|
Intuitively, I'd say |
|
#94 will allow |
When specifying exclusive_creation=False, mode='w' is used. See #77.
Add option for exclusive creation to `write`
Write currently always opens the file as
mode='w'.mode='x'would be interesting as well.