Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4920

Binary constants emit non-binary Python literals

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.12.0
    • Fix Version/s: 0.13.0
    • Component/s: Python - Compiler
    • Labels:
      None

      Description

      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"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                elprans Elvis Pranskevichus
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m