Try this:
>>> import os
>>> c = os.tmpfile()
>>> c.write('dude')
>>> c.seek(0)
>>> c.read()
'dude'
--
http://mail.python.org/mailman/listinfo/python-list
Thanks everybody, that helped alot.
--
http://mail.python.org/mailman/listinfo/python-list
I keep getting this error "local variable 'f' referenced before
assignment" in the finally block when I run the following code.
try:
f = file(self.filename, 'rb')
f.seek(DATA_OFFSET)
self.__data = f.read(DATA_SIZE)
self.isDataLoaded = True
Yes, pywin32 installs PythonWin.
On Jan 24, 4:07 pm, "W. Watson" <[EMAIL PROTECTED]> wrote:
> W. Watson wrote:
> > I downloaded python-2.5.msi and installed it. I believe its editor is
> > [corrected]IDLE. I understand there's a Win editor called pythonwin. I
> > believe it's
> > in the download