From f83ffbcdcd733dae45f2b62f878e2b5f7fa8ec9d Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Tue, 25 Aug 2009 16:43:44 -0400 Subject: [PATCH] open() is a function (well not really, but calling it a method in one sentence and a function in the next just seems wrong) --- files.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files.html b/files.html index 76b4342..65266d5 100644 --- a/files.html +++ b/files.html @@ -279,7 +279,7 @@ ValueError: zero length field name in format

You can write to files in much the same way that you read from them. First you open a file and get a stream object, then you use methods on the stream object to write data to the file, then you close the file. -

To open a file for writing, use the open() method and specify the write mode. There are two file modes for writing: +

To open a file for writing, use the open() function and specify the write mode. There are two file modes for writing: