Comment #6 on issue 189 by ken...@google.com: Generated message __cmp__()
in Python should consistently order generated messages
I think most users would find that behavior surprising. Documenting the
isn't good enough -- developers will often make assumptions about things
"obvious" without reading the docs.
Some problems with implementing comparison "correctly":
1) What is correct? Different people will have different answers. Should
each field in order? Which order? Declaration order, or field number
Different apps will have different needs.
2) If we ever implement unknown field retention in Python (as we have in
Java), how do we compare them? Without knowing the type of the fields, any
comparison approach is arbitrary and possibly wrong.
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