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

Using from in variable names causes the generated Python code to have errors

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.3
    • Component/s: Python - Library
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      When we have a struct such as

      struct structA {
      1: required string from,
      2: required string to,
      }

      The python code generated has errors since from is a keyword in Python. Therefore we need to add from as a reserved keyword.

      Pull request: https://github.com/apache/thrift/pull/579

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                prathik.raj Prathik Rajendran M
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: