Re: How to get number of bytes written to nonblocking FIFO when EAGAIN is raised?

2011-07-21 Thread Aaron Staley
On Jul 19, 8:15 pm, Adam Skutt wrote: > On Jul 19, 9:19 pm, Aaron Staley wrote: > > > However, if interpreter 1 overfills the FIFO, we get an error (EAGAIN)>>> > > f.write('a'*7) > > > IOError: [Errno 11] Resource temporarily unavailable > &g

How to get number of bytes written to nonblocking FIFO when EAGAIN is raised?

2011-07-19 Thread Aaron Staley
l the FIFO was full and then raised the IOError. Interpreter 2 constantly received some, but not all, of what interpreter 2 tried to send. Unfortunately, the IOError seems to have no attribute indicating how much data was successfully sent. I've looked through the docs and can't seem to figure out how; can anyone land some advice? Thanks, Aaron Staley -- http://mail.python.org/mailman/listinfo/python-list

Re: Serializing functions

2010-06-17 Thread Aaron Staley
I am one of the developer's of PiCloud. To answer your question, we wrote a custom subclass of Pickler to pickle functions. As Robert pointed out, the library is LGPL, so you can see (and use) the source code. I also presented the details on a poster at PyCon 2010. You can see it here: http://b