NamedTemporaryFile does not match documentation

J

Jason Friedman

Python 3.2.2 (default, Feb 14 2012, 08:06:31)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2
Type "help", "copyright", "credits" or "license" for more information.Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'str' does not support the buffer interface

Or, maybe I am reading the documentation incorrectly. My goal is to
be able to write to that temporary file along the lines of "f.write()"
or "with open(f) as writer ...".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top