From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 8F65E3858D20 for ; Thu, 3 Mar 2022 17:41:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8F65E3858D20 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 223HerZX029282 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 3 Mar 2022 12:40:58 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 223HerZX029282 Received: from [172.16.0.95] (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id B2BF31EA69; Thu, 3 Mar 2022 12:40:53 -0500 (EST) Message-ID: Date: Thu, 3 Mar 2022 12:40:53 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 1/3] gdb/python: remove Python 2 support Content-Language: tl To: Andrew Burgess , gdb-patches@sourceware.org References: <20220107152921.2858909-1-simon.marchi@polymtl.ca> <878rtrxakb.fsf@redhat.com> From: Simon Marchi In-Reply-To: <878rtrxakb.fsf@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Thu, 3 Mar 2022 17:40:53 +0000 X-Spam-Status: No, score=-3039.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, NICE_REPLY_A, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2022 17:41:01 -0000 On 2022-03-03 11:31, Andrew Burgess wrote: > Simon Marchi via Gdb-patches writes: > >> Support for Python 2 is a maintenance burden for any patches touching >> Python support. Among others, the differences between Python 2 and 3 >> string and integer types are subtle. It requires a lot of effort and >> thinking to get something that behaves correctly on both. And that's if >> the author and reviewer of the patch even remember to test with Python >> 2. > > I think the conclusion of this thread was to drop Python 2 support after > GDB 12 was branched. > > Should we add NEWS entry that Py2 support is going away? > > Below is a straw man patch. I suspect the wording is probably not the > best, but this is a starting point. > > Thanks, > Andrew > > --- > > diff --git a/gdb/NEWS b/gdb/NEWS > index 1e53a55c259..6cde4a4abb2 100644 > --- a/gdb/NEWS > +++ b/gdb/NEWS > @@ -3,6 +3,10 @@ > > *** Changes since GDB 11 > > +* GDB 12 is the last release of GDB that will support building against > + Python 2. For GDB 13, it will only be possible to build GDB itself > + with Python 3 support. > + > * Improved C++ template support > > GDB now treats functions/types involving C++ templates like it does function > I think that's a good idea, LGTM. Simon