From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id B5AC33857C55 for ; Fri, 18 Sep 2020 15:59:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B5AC33857C55 Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-330-Qo_cFCTqP7Ka6Fzkp75YlA-1; Fri, 18 Sep 2020 11:59:21 -0400 X-MC-Unique: Qo_cFCTqP7Ka6Fzkp75YlA-1 Received: by mail-wm1-f72.google.com with SMTP id s24so1608382wmh.1 for ; Fri, 18 Sep 2020 08:59:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=OjTNa58wY35Lpcdc3fWCpn4Mr/nQwV/ssKE776R3A+0=; b=NUMaMbAXjhL3w0ChMU06AvfAp8GuQtB4ykhiAZPfQqtpaKttJwb62kc4uGwfTYd6SY nayyhb3fjvxet2AtvFpDJM0jtcri1X0Ga/RwwTwiOZ8znaP1M0mRmQk/C8386kj6TnYF zpy5GGFO4mXuf+6rnhXnfDUBM24U4oJ+6HgiW9nBGMDrQ/DpAIv5kW4dauq0r5VHvZcC SVU2FPO4hn+W4r9Ed52TSTFC377Ia+O7yn7drdKSVRQ9X2UDqMTaP0MIvcU343ODedbI SeQxDRt0ypABkf0eK6XB4XahdzkfFMIHFZTDSoMCOxj9AnbHO7PZwS4wiyubBytO6BNI yuqg== X-Gm-Message-State: AOAM530RO+I+RRMg18QS0tEhQpKSKq1OMkxniRDwB1hNsRowPax1aqdu IGdp+YmFWYfuf/tMf7MIji2zE7PSddOzKhkUZkca3IZBFKd0qqy2f8emoUc+crypAxsf3FeXeWs tsbrlkQI5STc= X-Received: by 2002:a1c:7502:: with SMTP id o2mr15746866wmc.29.1600444760019; Fri, 18 Sep 2020 08:59:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyTbGPAif/84GxIZklEknkgu6wd2UGZnvR73pSeHdlvSl2yyNjZopePImVP3adLb3tA1W5ew== X-Received: by 2002:a1c:7502:: with SMTP id o2mr15746855wmc.29.1600444759829; Fri, 18 Sep 2020 08:59:19 -0700 (PDT) Received: from ?IPv6:2001:8a0:f905:5600:eefd:c63:53e0:3e8a? ([2001:8a0:f905:5600:eefd:c63:53e0:3e8a]) by smtp.gmail.com with ESMTPSA id y5sm5826601wrh.6.2020.09.18.08.59.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Sep 2020 08:59:19 -0700 (PDT) Subject: Re: Proposal to remove Python 2 support To: Tom Tromey , gdb@sourceware.org References: <87sgbiahur.fsf@tromey.com> From: Pedro Alves Message-ID: <69983932-3cc8-a43e-f96a-98730e20ef59@redhat.com> Date: Fri, 18 Sep 2020 16:59:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <87sgbiahur.fsf@tromey.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Sep 2020 15:59:25 -0000 On 9/15/20 9:46 PM, Tom Tromey wrote: > Hi. Python 2 officially reached its sunset date this year: > > https://www.python.org/doc/sunset-python-2/ > > I think gdb should follow suit starting in gdb 11 -- that is, my > proposal is to keep Python 2 support for the upcoming gdb 10 release, > but remove said support from git master. > > In the short term this would amount to some relatively minor code > cleanups. > > In the longer term, my preferred approach to handling inferior control > from Python is to base it on async/await, which IIUC is only available > in Python 3. So, this would be an enabling step. Dropping Python 2 support is going to be an issue for us, given we will still have a couple years more of DTS releases for RHEL 7, which is Python 2.7 based. If possible, we would prefer if Python 2 support was kept around a while longer. Thanks, Pedro Alves