help with my first use of a class

Bruno Desthuilliers onurb at xiludom.gro
Fri Oct 20 13:19:59 CEST 2006

Fredrik Lundh wrote:
> Bruno Desthuilliers wrote:
>> First, notice that you *don't* need a class here to avoid globals.
>> Learning to use function as *functions* (ie: taking arguments and
>> returning values) instead of procedure would help:
>> def random_quote(cursor):
>>  c.execute ("SELECT COUNT(Quote) FROM PythonQuoteQuery")
> make that "cursor.execute" (etc)

oops, sorry - not enough coffein, I guess.
Thanks for the correction.

bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"

More information about the Python-list mailing list