(An Unofficial) Python Tutorial Wiki

putting the community back in "maintained by the community"

4hw7

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?

Comments

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.