[
https://issues.apache.org/jira/browse/THRIFT-4920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Duru Can Celasun resolved THRIFT-4920.
--------------------------------------
Fix Version/s: 0.13.0
Resolution: Fixed
> 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
> Priority: Major
> Fix For: 0.13.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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
(v8.3.4#803005)