Elvis Pranskevichus created THRIFT-4920:
-------------------------------------------

             Summary: Binary constants emit non-binary Python literals
                 Key: THRIFT-4920
                 URL: https://issues.apache.org/jira/browse/THRIFT-4920
             Project: Thrift
          Issue Type: Bug
          Components: Python - Compiler
    Affects Versions: 0.12.0
            Reporter: Elvis Pranskevichus
             Fix For: 0.13.0


Currently a binary constant declared as

{{const binary FOO = "bar"}}

would generate a regular string constant in Python:

{{FOO = "bar"}}

which is not really a binary string.  Instead a bytestring literal should be 
generated:

{{FOO = b"bar"}}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to