Testing for file type

Andrew Robert andrew.arobert at gmail.com
Mon May 22 16:27:09 CEST 2006

Hi Everyone,

Is there a way to test if a file is binary or ascii within Python?

I'd prefer not to text against file extension.

Any help you can provide would be greatly appreciated.


More information about the Python-list mailing list