[Tutor] Example for read and readlines()

Alan Gauld alan.gauld at yahoo.co.uk
Sun Nov 11 05:02:40 EST 2018


On 11/11/2018 09:40, Steven D'Aprano wrote:

>> f3 = open ( r"/a/b/c/d/test/test_2814__2018_10_05_12_12_45/logA.log", 'r' )
> 
> Don't use raw strings r"..." for pathnames.

Umm, Why not?

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list