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 '[EMAIL PROTECTED]'.split('@')])" -- http://mail.python.org/mailman/listinfo/python-list