Updates:
        Status: WontFix

Comment #4 on issue 189 by ken...@google.com: Generated message __cmp__() in Python should consistently order generated messages
http://code.google.com/p/protobuf/issues/detail?id=189

Right, so the problem is that comparison of two messages is not implemented. We are not likely to implement this, as it presents a number of complicated obstacles, and is rarely needed in practice. You should instead pass a custom comparison function to sorted() which implements an ordering appropriate for your message type. In many cases what you really want to do is sort based on one field of the message (like a name or key), and there is no way for protocol buffers to know which field that is.

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to