Copying non-existing files

Rustom Mody rustompmody at gmail.com
Thu May 22 01:53:29 EDT 2014


On Wednesday, May 21, 2014 8:15:10 PM UTC+5:30, Chris Angelico wrote:
> On Thu, May 22, 2014 at 12:14 AM, Rustom Mody wrote:
> 
> > d ++ "\\" ++ f
> 
> ITYM:
> 
> d + "\\" + f
> 
> or possibly:
> 
> d + "/" + f

Heh!
I had a vague feeling it looked strange -- stack corrupted while context switching
from haskell

To OP:
No you should use none of the above. Use join
https://docs.python.org/2/library/os.path.html#os.path.join



More information about the Python-list mailing list