[ https://issues.apache.org/jira/browse/THRIFT-1208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Duxbury closed THRIFT-1208. --------------------------------- Resolution: Fixed Fix Version/s: 0.7 Assignee: liwei I just committed this patch. Thanks liwei! > python TCompactProtocol.py writeBool and readBool not follow the > compact-proto-spec-2.txt spec for CONTAINER_WRITE, CONTAINER_READ > ----------------------------------------------------------------------------------------------------------------------------------- > > Key: THRIFT-1208 > URL: https://issues.apache.org/jira/browse/THRIFT-1208 > Project: Thrift > Issue Type: Bug > Components: Python - Library > Affects Versions: 0.6.1 > Reporter: liwei > Assignee: liwei > Fix For: 0.7 > > Attachments: THRIFT-1208.compactproto_readwrite_bool_bug.patch > > > In > https://issues.apache.org/jira/secure/attachment/12399869/compact-proto-spec-2.txt, > define the boolean value as follow: > boolean-true => 0x1 > boolean-false => 0x2 > But in TCompactProtocol.py writeBool, readBool for CONTAINER_WRITE, > CONTAINER_READ just bool(0x2) will always get true. > -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira