Replacing Greenlets with Threads or Processes

2010-12-28 Thread Nathanael Abbotts
I need to replace the use of 'greenlets' in an application with threads or 
processes, but as I've never used greenlets, I don't know where to start when 
replacing them. 
Could anyone explain to me how I can do this?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Replacing Greenlets with Threads or Processes

2010-12-28 Thread Emile van Sebille

On 12/28/2010 6:59 AM Nathanael Abbotts said...

I need to replace the use of 'greenlets' in an application with threads or 
processes, but as I've never used greenlets, I don't know where to start when 
replacing them.
Could anyone explain to me how I can do this?


Looks like your choice may be limited to processes...

http://groups.google.com/group/pycsp/browse_thread/thread/45209957e27e0293/b67445b092872750?q=python+greenlets

Emile

--
http://mail.python.org/mailman/listinfo/python-list


Re: Replacing Greenlets with Threads or Processes

2010-12-28 Thread Nathanael Abbotts
Processes are better for me - the application is already multiprocessing based.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Replacing Greenlets with Threads or Processes

2010-12-28 Thread Nathanael Abbotts
That thread seems to deal with mixing them. I want to replace them completely - 
is that possible (with either threads or processes)?

Some loss of functionality isn't a problem, as the code only seems to use the 
most basic features of Greenlets.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Replacing Greenlets with Threads or Processes

2010-12-28 Thread Emile van Sebille

On 12/28/2010 8:07 AM Nathanael Abbotts said...

That thread seems to deal with mixing them. I want to replace them
completely - is that possible (with either threads or processes)?


Are you working with pycsp?  the info at 
http://code.google.com/p/pycsp/wiki/Getting_Started_With_PyCSP says:


The API is implemented in four versions: Threads, processes, greenlets 
and net. All implementations share an almost identical API making it 
trivial to switch from one implementation to another. 


Emile

--
http://mail.python.org/mailman/listinfo/python-list


Re: Replacing Greenlets with Threads or Processes

2010-12-28 Thread Nathanael Abbotts
On Tuesday, December 28, 2010 5:04:48 PM UTC, Emile van Sebille wrote:
 On 12/28/2010 8:07 AM Nathanael Abbotts said...
  That thread seems to deal with mixing them. I want to replace them
  completely - is that possible (with either threads or processes)?
 
 Are you working with pycsp?  the info at 
 http://code.google.com/p/pycsp/wiki/Getting_Started_With_PyCSP says:
 
 The API is implemented in four versions: Threads, processes, greenlets 
 and net. All implementations share an almost identical API making it 
 trivial to switch from one implementation to another. 
 
 Emile

Unfortunately not. I wish I was! That sounds brilliant. 
-- 
http://mail.python.org/mailman/listinfo/python-list