Re: open() mode args

2011-01-26 Thread mpnordland
thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: open() mode args

2011-01-26 Thread Steven D'Aprano
On Wed, 26 Jan 2011 11:32:03 -0500, mpnordland wrote: > What is the correct file mode to pass to open() when I want to both read > and write on the open file? open("filename", "r+") for text mode, "r+b" for binary mode. If your operating system does not distinguish between the two, you can use e

open() mode args

2011-01-26 Thread mpnordland
What is the correct file mode to pass to open() when I want to both read and write on the open file? -- http://mail.python.org/mailman/listinfo/python-list