4hw7
last updated 2 years ago by lac #
Can you explain that, or point me at a URL? I'm confused. I guess my problem is that I think of all functions as actions. Does this mean we should change the text so that when we are creating the file for the first time we call file('myfile.txt', mode) but when we subsequently use it we still refer to it as open?
Also can you explain how I could indent this comment?

The guido pronouncement is here: <http://mail.python.org/pipermail/python-dev/2004-July/045967.html> (at the bottom).
Also see the first post in that thread: <http://mail.python.org/pipermail/python-dev/2004-July/045921.html>
The recommended use is "open" when you're opening a file (or something similar), and "file" when you want to refer to the actual type (e.g. for type testing).
To indent comments, click "reply" on the comment you're replying to.
effbot 2 years ago #