[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
> prototype in google.protobuf.message.Message.ListFields(self,
> field_name) vs the actual implementation under
> google.protobuf.reflection._AddListFieldsMethod.ListFields(self).
> While it doesn't seem to hurt much as the concrete implementation
> trumps the prototype. It does look a bit weird that ListFields()
> should take a field_name argument.
> 2. I also am wondering why doesn't a repeated field behaves more like
> a list in Python? Perhaps it is in keeping API consistency with the C+
> + implementation, but why can I not do the following, for instance?
>
>  message.repeated = [ 1, 2, 3 ]
>
> Thanks you for your insight,
>
> -kc
> >
>

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

Reply via email to