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 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 produc

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 "pyt

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 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. > > > >

Re: PYTHONPATH: dev and prod

2013-06-12 Thread jacopo
:14:43 PM UTC+1, rusi wrote: > On Jun 11, 9:28 pm, jacopo 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. > > > >

PYTHONPATH: dev and prod

2013-06-11 Thread jacopo
I execute /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
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-27 Thread jacopo . pecci
processing 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
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
engaged in a 5 minutes processing other arriving requests of callRemote() are queued and Deferreds are returned 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

Re: Twisted: 1 thread in the reactor pattern

2009-09-24 Thread jacopo
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://mail.python.org/mailman/listinfo/python-list

Twisted: 1 thread in the reactor pattern

2009-09-22 Thread jacopo
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

Twisted 100% event driven or hybrid?

2009-09-22 Thread jacopo
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

Re: Accessing objects at runtime.

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

Re: Accessing objects at runtime.

2009-09-13 Thread jacopo
and display the content 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-10 Thread jacopo
ops, objects 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

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: 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" wrote: > jacopo wrote: > > I am playing with multiprocessing

Re: Return value of multiprocessing manager registerred function

2009-08-31 Thread jacopo
newsgroup with questions... yet :) Regards, Jacopo On Aug 26, 4:22 am, Terry 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 prox

starting a client remotely

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

Re: ioctl on socket

2009-07-28 Thread jacopo mondi
Gabriel Genellina wrote: > En Mon, 27 Jul 2009 16:35:51 -0300, jacopo mondi > 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 unde

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 cons

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.

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.

hoe to build a patched socketmodule.c

2009-07-09 Thread jacopo mondi
module? I 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