Re: [Twisted-Python] question about subprocess

2013-09-27 Thread Phil Mayers
On 09/27/2013 02:51 AM, Jonathan Vanasco wrote: i was looking at reactor.SpawnProcess -- which I know is more correct. it just seems to be a bit annoying to use Are you aware of twisted.internet.utils.getProcessOutputAndValue? For simple spawn/check cases, that's pretty much always the best

Re: [Twisted-Python] Clean pb solution for two-way object sync?

2013-09-27 Thread Phil Mayers
On 09/27/2013 05:48 AM, Daniel Sank wrote: Upon re-reading the Cacheable docs I still don't understand how to use it. Have you seen this: http://twistedmatrix.com/documents/current/core/howto/pb-copyable.html#auto9 Essentially, you move all attribute access to accessor methods and do callRem

Re: [Twisted-Python] Clean pb solution for two-way object sync?

2013-09-27 Thread Daniel Sank
> Have you seen this: > > http://twistedmatrix.com/documents/current/core/howto/pb-copyable.html#auto9 No, I hadn't. That example is extremely helpful, thank you. I just realized that the documentation pages I'd been reading are all linked from here: http://twistedmatrix.com/documents/current/co

Re: [Twisted-Python] Clean pb solution for two-way object sync?

2013-09-27 Thread Laurens Van Houtven
Hi Daniel, If you're interested in PB, you may also be interested in Foolscap, the object-capability extension to PB. Foolscap lives at: http://foolscap.lothar.com/trac Feature overview: http://foolscap.lothar.com/trac/wiki/FoolscapFeatures cheers lvh

Re: [Twisted-Python] Clean pb solution for two-way object sync?

2013-09-27 Thread David Ripton
On 09/26/2013 02:05 AM, Daniel Sank wrote: I want to implement something functionally equivalent to a network chess game. I first consider how I would do this on a single computer with no network (maybe this is bad thinking). Each piece in the game is represented by an instance of class Agent. E