You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/08/05 15:31:04 UTC
[jira] [Commented] (THRIFT-3290) Using from in variable names
causes the generated Python code to have errors
[ https://issues.apache.org/jira/browse/THRIFT-3290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14658217#comment-14658217 ]
ASF GitHub Bot commented on THRIFT-3290:
----------------------------------------
Github user prathik commented on the pull request:
https://github.com/apache/thrift/pull/579#issuecomment-127997240
Hi @jfarrell, Thank you for pointing that out. Here is the issue ticket https://issues.apache.org/jira/browse/THRIFT-3290.
Thanks,
Prathik
> 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)