You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Duru Can Celasun (Jira)" <ji...@apache.org> on 2019/10/08 21:52:00 UTC

[jira] [Resolved] (THRIFT-4920) Binary constants emit non-binary Python literals

     [ 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)