On Thu, 06 Jun 2013 13:56:36 -0700, Νικόλαος Κούρας wrote: > SyntaxError: invalid syntax > > > Dont know how to add a bytestremed path to a bytestream filename
Nikos, READ THE ERROR MESSAGE!!! The error doesn't say anything about *adding*. It is a SyntaxError. Please stop flooding us with dozens and dozens of trivial posts asking the same questions over and over again. There are well over 120 posts in this thread, it is impossible for anyone to keep track of it. * Do not send a new post every time you make a small change to the code. * Do not send a new post every time you make a typo and get a SyntaxError. * READ THE ERROR MESSAGES and try to understand them first. * SyntaxError means YOU HAVE MADE A TYPING MISTAKE. * SyntaxError means that your code is not executed at all. Not a single line of code is run. If no code is running, the problem cannot possibly be with "add" or some other operation. If your car will not start, the problem cannot be with the brakes. If your program will not start, the problem cannot be with adding two byte strings. * You can fix syntax errors yourself. READ THE CODE that has the syntax error and LOOK FOR WHAT IS WRONG. Then fix it. * Don't tell us when you have fixed it. Nobody cares. Just fix it. Here is the line of code again: old_path = b'/home/nikos/public_html/data/apps/' + b'filename') There is a syntax error in this line of code. Hint: here are some simple examples of the same syntax error: a = b + c) x = y * z) alist.sort()) assert 1+1 == 2) Can you see the common factor? Each of those lines will give the same syntax error as your line. -- Steven -- http://mail.python.org/mailman/listinfo/python-list