[issue38799] race condition in multiprocessing.Pool with maxtasksperchild=1

2020-01-18 Thread Jacopo Tediosi
Jacopo Tediosi added the comment: Happening to me on Python3.9 too Also when calling pool.terminate(), causing my script to hang -- nosy: +Jacopo Tediosi versions: +Python 3.9 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue38

[issue29022] Aritmetic error

2016-12-20 Thread Jacopo
New submission from Jacopo: $ python Python 2.7.3 (default, Jun 21 2016, 18:38:19) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> 69.90 + 2.90 72.81 -- components: Inter

[issue22672] float arguments in scientific notation not supported by argparse

2014-10-25 Thread Jacopo Nespolo
Jacopo Nespolo added the comment: Ned Deily: I don't quite know how to use unittest, but I'll try to look into it. paul j3: There I proposed leaving '_negative_number_matcher' unchanged, but only use it to set '_has_negative_number_optionals'. I don't know argparse internals but, if I

[issue22672] float arguments in scientific notation not supported by argparse

2014-10-24 Thread Jacopo Nespolo
Jacopo Nespolo added the comment: a better patch -- Added file: http://bugs.python.org/file37007/argparse.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22672

[issue22672] float arguments in scientific notation not supported by argparse

2014-10-24 Thread Jacopo Nespolo
Jacopo Nespolo added the comment: test program that checks handling of a bunch of numbers. -- Added file: http://bugs.python.org/file37008/test_argparse.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22672

[issue22672] float arguments in scientific notation not supported by argparse

2014-10-22 Thread Jacopo Nespolo
Changes by Jacopo Nespolo j.nesp...@gmail.com: -- nosy: +bethard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22672 ___ ___ Python-bugs-list

[issue22672] float arguments in scientific notation not supported by argparse

2014-10-19 Thread Jacopo Nespolo
New submission from Jacopo Nespolo: Argparse fails to recognise negative numbers in scientific notation as valid numbers. Example: Suppose the program test.py has this option. par.add_argument('-a', type=float) then './test.py -a -1e5' will fail, as well as -1.0e-4, -.5E+4 and variations

Re: PYTHONPATH: dev and prod

2013-06-13 Thread jacopo
On Wednesday, June 12, 2013 5:10:05 PM UTC+1, rusi wrote: On Jun 12, 6:29 pm, jacopo jacopo.pe...@gmail.com wrote: 1. How you run -- 'launch' -- the code -- from py and from prod when I have to test I use python any_script.py  but in production there is a c++ program that is able

Re: PYTHONPATH: dev and prod

2013-06-12 Thread jacopo
:14:43 PM UTC+1, rusi wrote: On Jun 11, 9:28 pm, jacopo jacopo.pe...@gmail.com wrote: I am developing my code in the path: /py/myscripts /py/mylib In order to import mylib, I need to add /py/mylib to PYTHONPATH. Now I want to save a snapshot of the current code

Re: PYTHONPATH: dev and prod

2013-06-12 Thread jacopo
, 2013 6:14:43 PM UTC+1, rusi wrote: On Jun 11, 9:28 pm, jacopo jacopo.pe...@gmail.com wrote: I am developing my code in the path: /py/myscripts /py/mylib In order to import mylib, I need to add /py/mylib to PYTHONPATH. Now I want to save a snapshot of the current code

Re: PYTHONPATH: dev and prod

2013-06-12 Thread jacopo
1. How you run -- 'launch' -- the code -- from py and from prod when I have to test I use python any_script.py but in production there is a c++ program that is able to wrap and run python code (the technical details are a bit beyond my knowledge) 2. What error you get when I run as python

PYTHONPATH: dev and prod

2013-06-11 Thread jacopo
/prod/myscripts/any_script.py, every import will look at PYTHONPATH and therefore it will load the modules from /py/mylib. On the contrary I want to load it from /prod/mylib. Is there an elegant way to cope with this? thanks, Jacopo -- http://mail.python.org/mailman/listinfo/python-list

RabbitMQ vs ApacheQpid (AMQP)

2009-10-13 Thread jacopo
is already handled by the Messaging system and I don’t need to take care of it in my components (they keep waiting for a message, when they get it they are fully engaged in processing and they cannot do much more). Thanks, Jacopo -- http://mail.python.org/mailman/listinfo/python-list

Twisted PB vs JMS

2009-10-05 Thread jacopo
technologies. I wonder if they target different problems (it doesn’t look to me). Is anyone able to sketch advantages of one solution against the other? Thanks, Jacopo -- http://mail.python.org/mailman/listinfo/python-list

Re: Re: Twisted PB: returning result as soon as ready

2009-09-28 Thread jacopo . pecci
to different severs and collect and process results from a client as soon as they are ready. To achieve true parallelism it looks more complex than expected. Many thank, Jacopo -- http://mail.python.org/mailman/listinfo/python-list

Twisted PB: returning result as soon as ready

2009-09-25 Thread jacopo
as soon as ready and therefore parallelize things? thanks, Jacopo SERVER: fibo=Fibonacci() fact=pb.PBServerFactory(fibo) reactor.listenTCP(port, fact) reactor.run() CLIENT: fact=pb.PBClientFactory() reactor.connectTCP(host, port, fact) d=fact.getRootObject() n1=1 d.addCallback(lambda obj

Re: Twisted: 1 thread in the reactor pattern

2009-09-24 Thread jacopo
for a short enough period of time that it doesn't matter that the reactor is prevented from accepting new connections (or what have you) for the duration of their execution.” ?! Don’t we have (c) and (e) running at the same time here? How is it possible to have only one Thread? Thanks, Jacopo -- http

Re: Twisted: 1 thread in the reactor pattern

2009-09-24 Thread jacopo
immediately. So the reactor is responding somehow. Isn’t it?! On the Server I am using: reactor.listenTCP(port, pb.PBServerFactory (MyClass())) Could you suggest me any doc to better understand? Thanks, Jacopo -- http://mail.python.org/mailman/listinfo/python-list

Twisted 100% event driven or hybrid?

2009-09-23 Thread jacopo
of the clearest i have read so far. http://www.artima.com/weblogs/viewpost.jsp?thread=230001 Grazie, Jacopo -- http://mail.python.org/mailman/listinfo/python-list

Twisted: 1 thread in the reactor pattern

2009-09-23 Thread jacopo
. For the time being I recommend this doc which has been the most useful to me so far. http://www.artima.com/weblogs/viewpost.jsp?thread=230001 Thanks, Jacopo -- http://mail.python.org/mailman/listinfo/python-list

Re: Accessing objects at runtime.

2009-09-14 Thread jacopo
in a web page?! Is there a reason to link objects to different URLs or I could link many of them to the same URL? Thanks, Jacopo -- http://mail.python.org/mailman/listinfo/python-list

Re: Accessing objects at runtime.

2009-09-14 Thread jacopo
implemented this in a mock example it seems to work. Clean and simple! Jacopo -- http://mail.python.org/mailman/listinfo/python-list

Accessing objects at runtime.

2009-09-10 Thread jacopo
suggestion. Regads, Jacopo -- http://mail.python.org/mailman/listinfo/python-list

Accessing objects at runtime.

2009-09-10 Thread jacopo
suggestion. Regads, Jacopo -- http://mail.python.org/mailman/listinfo/python-list

Re: Accessing objects at runtime.

2009-09-10 Thread jacopo
are still in memory and I could inspect all I want. BUT I don’t want to stop the system. So even the shell would be blocked to type something. Thanks, Jacopo -- http://mail.python.org/mailman/listinfo/python-list

starting a client remotely

2009-08-31 Thread jacopo
you have any suggestion? regards, jacopo -- http://mail.python.org/mailman/listinfo/python-list

Re: Return value of multiprocessing manager registerred function

2009-08-31 Thread jacopo
this newsgroup with questions... yet :) Regards, Jacopo On Aug 26, 4:22 am, Terry terry.yin...@gmail.com wrote: Hi, I'm using the multiprocessing.manager to run proceduresremotely. It all worked fine except I hope to have a different return value type. The remote function calls always return a proxy

Re: starting a client remotely

2009-08-31 Thread jacopo
thank you Diez, unfortunatelly I am on Windows NT. Did you use SSH in a python script? Isn't multiprocessing.managers already doing something like Pyro? thanks Jacopo On Aug 31, 12:47 pm, Diez B. Roggisch de...@nospam.web.de wrote: jacopo wrote: I am playing with multiprocessing and I would

Re: ioctl on socket

2009-07-28 Thread jacopo mondi
Gabriel Genellina wrote: En Mon, 27 Jul 2009 16:35:51 -0300, jacopo mondi mo...@cs.unibo.it escribió: Is there a reason why there is no ioctl interface for socket either then for windows platform? It's technical issues or what else?? I don't completely understand your question. On Windows

ioctl on socket

2009-07-27 Thread jacopo mondi
Is there a reason why there is no ioctl interface for socket either then for windows platform? It's technical issues or what else?? thank in advance jacopo -- http://mail.python.org/mailman/listinfo/python-list

Re: hoe to build a patched socketmodule.c

2009-07-11 Thread jacopo mondi
Scott David Daniels wrote: jacopo mondi wrote: Roger Binns wrote: jacopo mondi wrote: Hi all, I need to patch socketmodule.c (the _socket module) in order to add support to an experimental socket family. You may find it considerably easier to use ctypes since that will avoid the need

Re: hoe to build a patched socketmodule.c

2009-07-10 Thread jacopo mondi
Roger Binns wrote: jacopo mondi wrote: Hi all, I need to patch socketmodule.c (the _socket module) in order to add support to an experimental socket family. You may find it considerably easier to use ctypes since that will avoid the need for any patching. You'll also be able to control how

Re: hoe to build a patched socketmodule.c

2009-07-10 Thread jacopo mondi
Roger Binns wrote: jacopo mondi wrote: Hi all, I need to patch socketmodule.c (the _socket module) in order to add support to an experimental socket family. You may find it considerably easier to use ctypes since that will avoid the need for any patching. You'll also be able to control how

hoe to build a patched socketmodule.c

2009-07-09 Thread jacopo mondi
could not use distutils, have I to distribuite the already built .so with only a script to install it, and the source code in another directory? Thanks a lot jacopo PS correct my english please, is the only way I have to improve it! -- http://mail.python.org/mailman/listinfo/python-list