Temporary files

While reading Real Word Haskell, I read about the openTempFile function and realized I didn’t know the Python equivalent.  I haven’t had to use temporary files in Python too often, and when I have, I mostly created them using my own naming scheme.  The tempfile module has functions that create files for temporary storage which are destroyed when the file is closed.  I might go revisit some of my old code and see if I can improve on things using this.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s