henjo/libpsf — pull request #9 by michaelnt (2012-01-23 16:06:25+00:00)
Title: Ghb8 close method

This branch adds a close method to the PSFDataSet to resolve issue #8.

Calling this method calls close on PSFFile, which was modified to unmap the buffer as wekk as closing the file descriptor.

An open check was added to the other methods of PSFDataSet, which re-opens the file if any of these methods are called, after close.

I rebased this branch against your master but couldn't build the python extension without the (unmerged) setup.py changes, so the testing was before the rebase.