On Jueves septiembre 20 2012 11:12:44 Rolando Cañer Roblejo escribió:
> Hi all,
>
> Is it possible for me to put a limit in the amount of processor usage (%
> CPU) that my current python script is using? Is there any module useful
> for this task? I saw Resource module but I think it is not the mo
ecommend you to
have a look at properties and descriptors (I love them).
For a general way to deal with attributes: the __getattr__ (to handle
undefined attributes), __getattribute__ (to handle *every* attribute; be
careful with loops), and __setattr__ (to catch *every* attribute assignmet,
same warning concerning loops).
Hope it helps.
BR,
DPalao
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I'm trying to use multiprocessing to parallelize a code. There is a number of
tasks (usually 12) that can be run independently. Each task produces a numpy
array, and at the end, those arrays must be combined.
I implemented this using Queues (multiprocessing.Queue): one for input and
anoth
El Martes Noviembre 29 2011, DPalao escribió:
> Hello,
> I'm trying to use multiprocessing to parallelize a code. There is a number
> of tasks (usually 12) that can be run independently. Each task produces a
> numpy array, and at the end, those arrays must be combined.
> I im
El Lunes Diciembre 5 2011, [email protected] escribió:
> On Mon, 5 Dec 2011 09:02:08 +0100, DPalao
>
> wrote:
> >El Martes Noviembre 29 2011, DPalao escribió:
> >> Hello,
> >> I'm trying to use multiprocessing to parallelize a code. There is a
> >&g
Hi Lie,
Thank you for the reply.
El Lunes Diciembre 5 2011, Lie Ryan escribió:
> On 11/30/2011 06:09 AM, DPalao wrote:
> > Hello,
> > I'm trying to use multiprocessing to parallelize a code. There is a
> > number of tasks (usually 12) that can be run independently. Each
Dear all,
I'm trying to use shelve to store some data, but sheve itself tries to import
bsddb, which results in:
> File "/usr/lib64/python2.6/shelve.py", line 239, in open
> return DbfilenameShelf(filename, flag, protocol, writeback)
> File "/usr/lib64/python2.6/shelve.py", line 223, in _
El Wednesday February 16 2011, DPalao escribió:
> Dear all,
> I'm trying to use shelve to store some data, but sheve itself tries to
> import
>
> bsddb, which results in:
> > File "/usr/lib64/python2.6/shelve.py", line 239, in open
> >
> >