[protobuf] Re: Issue 208 in protobuf: python: constructor does not type check scalar values

2010-07-27 Thread protobuf
Updates: Status: Fixed Labels: FixedIn-2.3.1 Comment #4 on issue 208 by ken...@google.com: python: constructor does not type check scalar values http://code.google.com/p/protobuf/issues/detail?id=208 (No comment was entered for this change.) -- You received this message becau

[protobuf] Re: Issue 208 in protobuf: python: constructor does not type check scalar values

2010-07-27 Thread protobuf
Comment #3 on issue 208 by ken...@google.com: python: constructor does not type check scalar values http://code.google.com/p/protobuf/issues/detail?id=208 Another great bug report, thanks. Fixed in revision 336. Testing revealed that the same problem existed for nested messages, since Mer

[protobuf] Re: Issue 208 in protobuf: python: constructor does not type check scalar values

2010-07-27 Thread protobuf
Comment #2 on issue 208 by kleptog: python: constructor does not type check scalar values http://code.google.com/p/protobuf/issues/detail?id=208 Attached is a patch which fixes the above. While testing this locally I found that it revealed problems in the test suite where fields that weren

[protobuf] Re: Issue 208 in protobuf: python: constructor does not type check scalar values

2010-07-27 Thread protobuf
Comment #1 on issue 208 by kleptog: python: constructor does not type check scalar values http://code.google.com/p/protobuf/issues/detail?id=208 Sorry, that last line should ofcourse be: etattr(self, field_name, field_value) -- You received this message because you are subscribed t