Re: [protobuf] Re: Python Client: pickling error

2011-04-28 Thread Petar Petrov
The multiprocessing queue uses pickle to serialize/deserialize the objects before/after sending them between processes. Since the proto message contains a C extension class, it can't be serialized or deserialized with pickle. And it doesn't need to, just use the protobuf

Re: Lots of changes integrated, 2.1.0 release coming soon

2009-04-28 Thread Petar Petrov
On Mon, Apr 27, 2009 at 10:09 AM, Yegor yegor.jba...@gmail.com wrote: Hi, Kenton, In the Python version there are now two versions of InputStream, one buffer-based, the other one array-based, for compatibility with App Engine-like environments. Do you know how big the performance penalty

Re: PATCH: Optimized version of OutputStream

2009-04-28 Thread Petar Petrov
On Tue, Apr 21, 2009 at 12:59 PM, Kenton Varda ken...@google.com wrote: Petar, can you review this? The patch looks good. I'll submit it in SVN after we receive the CLA. Christian: Thanks, I don't think we had any idea this was happening (doh). Can you sign the CLA if you haven't

Re: solution for python and unicode string already found

2009-02-09 Thread Petar Petrov
2009/1/29 bart van deenen bart.vandee...@gmail.com Hi Kenton Here's the details: kubu:~$ protoc --version libprotoc 2.0.3 kubu:~$ python -V Python 2.5.2 This is a self-compiled protoc (because I had added the actionscript output generator). I actually find in CHANGES.txt for 2.0.2

Re: Quick Hacky text_mode Parse in Python

2009-01-21 Thread Petar Petrov
result in an error. Thanks, Helder On Tue, Dec 30, 2008 at 12:19 AM, Piotr Findeisen piotr.findei...@gmail.com wrote: On Dec 8, 7:27 pm, Petar Petrov pe...@google.com wrote: On Mon, Dec 8, 2008 at 10:21 AM, Kenton Varda ken...@google.com wrote: Hey Petar, isn't there a patch someone

Re: Slicing support in Python

2008-12-13 Thread Petar Petrov
On Mon, Dec 8, 2008 at 5:36 PM, Alek Storm alek.st...@gmail.com wrote: On Mon, Dec 8, 2008 at 1:16 PM, Kenton Varda ken...@google.com wrote: On Sat, Dec 6, 2008 at 1:03 AM, Alek Storm alek.st...@gmail.com wrote: Is it really that useful to have ByteSize() cached for repeated fields? If it's

Re: Quick Hacky text_mode Parse in Python

2008-12-08 Thread Petar Petrov
On Mon, Dec 8, 2008 at 10:21 AM, Kenton Varda [EMAIL PROTECTED] wrote: Hey Petar, isn't there a patch someone was trying to submit that implements text format parsing? (For real, not by wrapping protoc.) What's the status of that? I'll review it today. Hopefully the author hasn't forgotten

Re: Python implementation questions

2008-11-12 Thread Petar Petrov
On Wed, Nov 5, 2008 at 2:53 PM, Kenton Varda [EMAIL PROTECTED] wrote: [cc'ing Petar] On Tue, Nov 4, 2008 at 11:23 PM, DVusBoy [EMAIL PROTECTED] wrote: Hi, I have a couple of questions regarding the Python implementation. 1. There is a discrepancy between the function signatures of the

Re: speed - python implementation

2008-11-12 Thread Petar Petrov
On Sun, Nov 9, 2008 at 5:14 PM, codeazure [EMAIL PROTECTED] wrote: On Oct 31, 5:19 am, Petar Petrov [EMAIL PROTECTED] wrote: Yes, there are plans to improve performance. I have spent a little time on this without significant improvements. I think performance can hardly get a drastic

Re: speed - python implementation

2008-10-30 Thread Petar Petrov
On Mon, Oct 27, 2008 at 10:47 AM, andres [EMAIL PROTECTED] wrote: Hi, I would like to use protocol buffers in my python code but currently the serialization and parsing methods are too slow compared to cPickle. I've read several posts stating that this is because the python implementation