On Jun 7, 2013, at 8:32, Νικόλαος Κούρας <nikos.gr...@gmail.com> wrote:

> Τη Παρασκευή, 7 Ιουνίου 2013 10:09:29 π.μ. UTC+3, ο χρήστης Lele Gaifax 
> έγραψε:
> 
>> As already explained, often a SyntaxError is introduced by *preceeding*
>> "text", so you must look at your code with a "wider eye".
> 
> That what i ahte aabout error reporting. You have some syntax error someplace 
> and error reports you another line, so you have to check the whole code again.
> Well i just did, i see no syntactical errors.
> 
>> Yes: and that usually imply that the *function* accepts (at least) *two*
>> arguments, specifically the source and the target names, right? How many
>> arguments are you actually giving to the os.rename() function above?
> 
> i'm giving it two.
> os.rename( filepath_bytes filepath.encode('utf-8') 

Missing comma, which is, after all, just a matter of syntax so it can't matter, 
right?


> 
> 1st = filepath_bytes
> 2nd = filepath.encode('utf-8')
> 
> Source and Target respectively.
> -- 
> http://mail.python.org/mailman/listinfo/python-list
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to