Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2924)

Unified Diff: Lib/_pyio.py

Issue 12760: Add create mode to open()
Patch Set: Created 1 year, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Doc/whatsnew/3.3.rst ('k') | Modules/_io/fileio.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/_pyio.py Wed Jan 11 21:00:48 2012 -0500
+++ b/Lib/_pyio.py Thu Jan 12 07:35:13 2012 +0200
@@ -41,7 +41,7 @@
mode is an optional string that specifies the mode in which the file is
opened. It defaults to 'r' which means open for reading in text mode. Other
common values are 'w' for writing (truncating the file if it already
- exists), 'x' for creating and writing to a new file, and 'a' for appending
+ exists), 'x' for exclusive creation of a new file, and 'a' for appending
(which on some Unix systems, means that all writes append to the end of the
file regardless of the current seek position). In text mode, if encoding is
not specified the encoding used is platform dependent. (For reading and
« no previous file with comments | « Doc/whatsnew/3.3.rst ('k') | Modules/_io/fileio.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld cbc36f91f3f7