Re: Multithreading / multiprocess

2009-04-12 Thread TennesseeLeeuwenburg
On Apr 12, 2:59 am, a...@pythoncraft.com (Aahz) wrote: > In article > <57065c62-2024-47b5-a07e-1d60ff85b...@y10g2000prc.googlegroups.com>, > > tleeuwenb...@gmail.com wrote: > > >Is there anyway to begin a thread and execute a finite number of lines > >of code, or a finite amount of time within it

Re: Multithreading / multiprocess

2009-04-12 Thread TennesseeLeeuwenburg
On Apr 11, 10:39 pm, "Diez B. Roggisch" wrote: > tleeuwenb...@gmail.com schrieb: > > > Is there anyway to begin a thread and execute a finite number of lines > > of code, or a finite amount of time within it? > > > For example, say I create three child threads and I want to guarantee > > equal tim

Re: TypeError: object cannot be interpreted as an index

2009-04-08 Thread TennesseeLeeuwenburg
On Apr 8, 8:44 pm, Piet van Oostrum wrote: > > "tleeuwenb...@gmail.com" (tc) wrote: > >tc> What, exactly, needs to be in place for an object to be a valid > >tc> dictionary key? > > It must have __hash__ and __cmp__ or __eq__ methods. Newstyle classes > inherit these from object. > -- > Piet