Re: tempfile.NamedTemporaryFile use case?

2010-12-31 Thread Alice Bevan–McGregor
I'm a bad person, but one use case I have is for shuffling templates around such that: * An inherited ('parent') template can be stored in a database. * The 'views' of my application are told to either use the real master template or the db parent template. * The rendering engine loads the par

tempfile.NamedTemporaryFile use case?

2010-12-31 Thread Roy Smith
What is the use case for tempfile.NamedTemporaryFile? As far as I can tell, the only way it differs from TemporaryFile is that it is guaranteed to have a name in the file system. BUT, it's not guaranteed that you can open the file a second time via that name. So, what's the point? In what si