Changing filenames from Greeklish => Greek (subprocess complain)
Lele Gaifax
lele at metapensiero.it
Tue Jun 4 15:31:20 EDT 2013
Νικόλαος Κούρας <nikos.gr33k at gmail.com> writes:
> Τη Τρίτη, 4 Ιουνίου 2013 9:18:29 μ.μ. UTC+3, ο χρήστης Lele Gaifax έγραψε:
>> Νικόλαος Κούρας <nikos.gr33k at gmail.com> writes:
>
>> >>> from collections import Counter
>> >>> stmt = "cur.execute('''SELECT url FROM files WHERE url = %s''', ( fullpath, )"
>> >>> chars_count = Counter(stmt)
>> >>> print("Number of '(': %d" % chars_count['('])
>> >>> print("Number of ')': %d" % chars_count[')'])
>> Number of '(': 2
>> Number of ')': 1
>
>
> Hello Lele, you have proven helpfull many times lets hope once more:
With due respect, you need to *improve* your ability to *understand*
what people answer to your questions, otherwise it is a double (at a
minimum) waste of time.
The code above was my (failed) attempt to focus your attention on why
one of your scripts raised a SyntaxError: translating that code in plain
english, that line (the "stmt" variable above) contains *two* open
brackets, and *one* close bracket.
ciao, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele at metapensiero.it | -- Fortunato Depero, 1929.
More information about the Python-list
mailing list