MySQLdbd error. Perhpas it isn't installed?

Chris Angelico rosuav at gmail.com
Thu Mar 28 04:57:15 CET 2013


On Thu, Mar 28, 2013 at 2:54 PM, Νίκος Γκρ33κ <nikos.gr33k at gmail.com> wrote:
> this worked
>
> quote = random.choice( list( open( "/home/nikos/www/data/private/quotes.txt", 'rb') ) )
>
> and also this
>
> f = open( "/home/nikos/www/" + page, 'rb' )
>
> i dont know why python 3 needs 'rb' though.
>
> Now ima having problem with this:
>
> htmldata = htmldata % (quote, music)
>
> it says soemthign about wrong operand....

http://www.joelonsoftware.com/articles/Unicode.html

Read it.

ChrisA



More information about the Python-list mailing list