Re: os.tmpfile()
Try this: import os c = os.tmpfile() c.write('dude') c.seek(0) c.read() 'dude' -- http://mail.python.org/mailman/listinfo/python-list
try...except...finally problem in Python 2.5
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 except: self.isDataLoaded = False finally: f.close() Can someone tell me what's wrong with the code? Am I doing something wrong? I'm somewhat new to python but this makes sense to me. -- http://mail.python.org/mailman/listinfo/python-list
Re: try...except...finally problem in Python 2.5
Thanks everybody, that helped alot. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Windows Editors
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 pywin32-210.win32-py2.5.exe, but I'm not sure if this exe file has just the editor or all of Python. Comments? If not how do I get the PythonWin editor by itself? BTW, one of the features I did not like of IDE is the limited file Print command. It puts everything in 16pt type, and gives no choice over what pages should be printed. Maybe there's an option?I don't see any responses that address regarding pywin32-210.win32-py2.5.exe, so it looks like I'll have to undbundle it and see for myself. -- http://mail.python.org/mailman/listinfo/python-list