Re: TIming

2006-05-29 Thread WIdgeteye
On Tue, 30 May 2006 04:34:03 +, Tim Roberts wrote: > WIdgeteye <[EMAIL PROTECTED]> wrote: >>HI, >>I am trying to write a little program that will run a program on scedule. >>I am having trouble understanding the datetime, time, sched modules. What >>I would like is something like this: >> >>If

Re: Large Dictionaries

2006-05-29 Thread Martin v. Löwis
Roy Smith wrote: > My guess would be that each resize grows the table by a constant > factor, which IIRC, works out to amortized O(n). Right. For <5 entries, the size is multiplied by 4 each time, and doubled each time for large dictionaries. > It's not as good as > creating the dict the rig

Re: TIming

2006-05-29 Thread John McMonagle
Tue, 2006-05-30 at 00:23 -0500, WIdgeteye wrote: > On Tue, 30 May 2006 04:34:03 +, Tim Roberts wrote: > > > WIdgeteye <[EMAIL PROTECTED]> wrote: > >>HI, > >>I am trying to write a little program that will run a program on scedule. > >>I am having trouble understanding the datetime, time, sched

TypeCheck vs IsInstance in C API

2006-05-29 Thread Kirk McDonald
I'm examining the C API, and I have a question. http://docs.python.org/api/object.html There are two functions that appear to do nearly same thing, and I just want to be certain I'm not missing something. First is PyObject_IsInstance: int PyObject_IsInstance(PyObject *inst, PyObject *cls);

<    1   2