You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Elvis Pranskevichus (JIRA)" <ji...@apache.org> on 2019/08/08 19:43:00 UTC
[jira] [Created] (THRIFT-4920) Binary constants emit non-binary
Python literals
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)