Re: Import statements for timeit module

2005-11-11 Thread bruno at modulix
ChaosKCW wrote: > So timeit is mostly useless then ? > I wouldn't say so. -- 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

Re: Import statements for timeit module

2005-11-11 Thread Scott David Daniels
bruno at modulix wrote: > ChaosKCW wrote: > >>Hi >> >>I was wondering if someone could help with the import statements needed >>to use the timeit module in the following code. I need to access the >>"cur" object. >> >>Thanks, >> ...> > 'cur' is local to the function, so it's not an attribute of yo

Re: Import statements for timeit module

2005-11-11 Thread ChaosKCW
So timeit is mostly useless then ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Import statements for timeit module

2005-11-11 Thread Alex Martelli
ChaosKCW <[EMAIL PROTECTED]> wrote: > So timeit is mostly useless then ? No, it's a precious jewel, but if you want to use it you must allow it to import the code you want it to run. Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: Import statements for timeit module

2005-11-11 Thread bruno at modulix
ChaosKCW wrote: > Hi > > I was wondering if someone could help with the import statements needed > to use the timeit module in the following code. I need to access the > "cur" object. > > Thanks, > > import cx_Oracle > import timeit > > def VerifyTagIntegrity(con, TableOwner): > cur = con.c

Import statements for timeit module

2005-11-11 Thread ChaosKCW
Hi I was wondering if someone could help with the import statements needed to use the timeit module in the following code. I need to access the "cur" object. Thanks, import cx_Oracle import timeit def VerifyTagIntegrity(con, TableOwner): cur = con.cursor() sql = 'select (select count(*)