Comment #4 on issue 189 by ken...@google.com: Generated message __cmp__()
in Python should consistently order generated messages
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
sorted() which implements an ordering appropriate for your message type.
cases what you really want to do is sort based on one field of the message
name or key), and there is no way for protocol buffers to know which field
You received this message because you are subscribed to the Google Groups "Protocol
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to
For more options, visit this group at