scott-griffiths/bitstring

File Close documentation

Closed this issue · 3 comments

Add a sentence to the 'filename.tofile' operation that informs to the user that after the file is written it does not close and a 'filename.close()' is required.

Thanks, yes that's reasonable. I can't quite remember why the tofile method exists if I'm honest - if the user has to do the open and close they might as well just write the result of tobytes() instead.