[IPython-dev] Updates to CVS: tab completion and Windows coloring

Gary Bishop gb at cs.unc.edu
Tue Dec 9 14:04:02 CST 2003

On Sun, 07 Dec 2003 16:53:39 -0700 "Fernando Perez" 
<fperez at colorado.edu> wrote:

> Just a quick question before I commit this version:  is the filename 
> generated by mktemp guaranteed to be in a directory the user has write 
> access to?  If not, an IOError exception could be triggered when trying 
> to actually write to the file, couldn't it?  That's about the only 
> thing that I can think of to keep the try blocks in there.  But I'd 
> prefer it if you are right, because it would save a double try in the code.

I checked the code for tempname and it can raise IOError if it cannot 
find a temp directory. This would be a pretty terrible circumstance 
where lots of Python stuff wouldn't work but may well be worth 
protecting against.


More information about the IPython-dev mailing list