Changing filenames from Greeklish => Greek (subprocess complain)
Michael Weylandt
michael.weylandt at gmail.com
Fri Jun 7 03:42:43 EDT 2013
On Jun 7, 2013, at 8:32, Νικόλαος Κούρας <nikos.gr33k at 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
More information about the Python-list
mailing list