[
https://issues.apache.org/jira/browse/THRIFT-2509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17618247#comment-17618247
]
Jens Geyer edited comment on THRIFT-2509 at 10/16/22 9:58 AM:
--------------------------------------------------------------
[~mvirkkun] the proper solution woulkd be to escape the keywords that conflict,
e.g. [like this in
C#|https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/].
Is there sth like that available with py?
Alternatie solution (but slightly motre work) would be to add some underscores
at the end to unconflict them. Not super-nice but effective.
was (Author: jensg):
[~mvirkkun] the proper solution woulkd be to escape the keywords that
comnflict, e.g. [like this in
C#|https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/].
Is there sth like that available with py?
> Uncompileable Python code due to language keywords in IDL
> ---------------------------------------------------------
>
> Key: THRIFT-2509
> URL: https://issues.apache.org/jira/browse/THRIFT-2509
> Project: Thrift
> Issue Type: Bug
> Components: Python - Compiler
> Reporter: Jens Geyer
> Priority: Major
>
> The file https://github.com/mvirkkunen/line-protocol/blob/master/line.thrift
> leads to errors due to language keywords being part of the IDL file.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)