[Tutor] checking if data files are good, readable, and exist

Alan Gauld alan.gauld at btinternet.com
Wed Jul 23 02:34:17 CEST 2008

"bob gailer" <bgailer at gmail.com> wrote 

>> But that isn't. Python just reads the data and interprets it
>> as text if you specify a text file - the default - or as raw data
>> if you use rb.

> But it DOES handle line-ends in an OS independent manner. 

OK, I'll grant you that small piece of data manipulation. :-)

(Although it could be argued that even that is just translating 
two bytes into one character in the set.)

Alan G.

More information about the Tutor mailing list