You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Prathik Rajendran M (JIRA)" <ji...@apache.org> on 2015/08/05 15:29:05 UTC

[jira] [Created] (THRIFT-3290) Using from in variable names causes the generated Python code to have errors

Prathik Rajendran M created THRIFT-3290:
-------------------------------------------

             Summary: Using from in variable names causes the generated Python code to have errors
                 Key: THRIFT-3290
                 URL: https://issues.apache.org/jira/browse/THRIFT-3290
             Project: Thrift
          Issue Type: Bug
            Reporter: Prathik Rajendran M


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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)