From dev-return-52405-archive-asf-public=cust-asf.ponee.io@thrift.apache.org Fri Apr 6 15:12:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D60DE180649 for ; Fri, 6 Apr 2018 15:12:03 +0200 (CEST) Received: (qmail 85172 invoked by uid 500); 6 Apr 2018 13:12:02 -0000 Mailing-List: contact dev-help@thrift.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@thrift.apache.org Delivered-To: mailing list dev@thrift.apache.org Received: (qmail 85161 invoked by uid 99); 6 Apr 2018 13:12:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Apr 2018 13:12:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 6ACFCC0369 for ; Fri, 6 Apr 2018 13:12:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id qSU_YsqQgQwA for ; Fri, 6 Apr 2018 13:12:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 614CD5FB55 for ; Fri, 6 Apr 2018 13:12:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 967ACE0237 for ; Fri, 6 Apr 2018 13:12:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4F0BF25615 for ; Fri, 6 Apr 2018 13:12:00 +0000 (UTC) Date: Fri, 6 Apr 2018 13:12:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@thrift.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (THRIFT-3783) python code generator dose not handle struct dependent MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/THRIFT-3783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16428285#comment-16428285 ] ASF GitHub Bot commented on THRIFT-3783: ---------------------------------------- jeking3 commented on issue #982: THRIFT-3783: python code generator dose not handle struct dependent URL: https://github.com/apache/thrift/pull/982#issuecomment-379248766 Closing due to 2 years of inactivity. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org > python code generator dose not handle struct dependent > ------------------------------------------------------ > > Key: THRIFT-3783 > URL: https://issues.apache.org/jira/browse/THRIFT-3783 > Project: Thrift > Issue Type: Bug > Components: Python - Compiler > Reporter: Huabin > Priority: Minor > > given thrift idl > {code} > struct A { > 1: B b, > } > struct B { > 1: i32 b, > } > {code} > generated ttypes.py > {code} > 20 class A: > 21 """ > 22 Attributes: > 23 - b > 24 """ > 25 > 26 thrift_spec = ( > 27 None, # 0 > 28 (1, TType.STRUCT, 'b', (B, B.thrift_spec), None, ), # 1 > 29 ) > 30 > {code} > import A will cause error since it referenced B, which has not be defined. -- This message was sent by Atlassian JIRA (v7.6.3#76005)