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

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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.3
    • Python - Library
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment