From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id yL5GKGRG2mKVdxgAWB0awg (envelope-from ) for ; Fri, 22 Jul 2022 02:40:36 -0400 Received: by simark.ca (Postfix, from userid 112) id A27A81E5EA; Fri, 22 Jul 2022 02:40:36 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=FJZuuq/o; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 1D2621E222 for ; Fri, 22 Jul 2022 02:40:36 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DE604383569B for ; Fri, 22 Jul 2022 06:40:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DE604383569B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1658472034; bh=PwPZnCpnLDlYCa0l2VSBhwxhHzLHfjwEtA4usdZKYOI=; h=Date:To:In-Reply-To:Subject:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=FJZuuq/o4W4P35LW/zCccqNI6j6nzh7xcZ5q9p6M5vBVBzrpOMR11JkRxrcP31xGv /hEWVeIdaExAq0+lCu0azbEEw/zGZ8IDHqStaEjK7ckl573FGVoRoG/xvnJ9OCeHPQ mN2TeXn8QvKEV7/RPxHbio5y+qGE/YflOrQ46dbM= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id C9B5E3835839 for ; Fri, 22 Jul 2022 06:40:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C9B5E3835839 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38998) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEmKc-0001OI-NA; Fri, 22 Jul 2022 02:40:14 -0400 Received: from [87.69.77.57] (port=1895 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEmKc-0000ea-5s; Fri, 22 Jul 2022 02:40:14 -0400 Date: Fri, 22 Jul 2022 09:40:07 +0300 Message-Id: <83v8rplkfs.fsf@gnu.org> To: Kevin Buettner In-Reply-To: <20220721160832.3a1d4b3c@f35-zws-1> (message from Kevin Buettner via Gdb-patches on Thu, 21 Jul 2022 16:08:32 -0700) Subject: Re: [PATCH] set/show python dont-write-bytecode fixes References: <20220720191447.1014407-1-kevinb@redhat.com> <96a7e665-5700-349c-dfc5-50e59ab78fa5@palves.net> <20220721160832.3a1d4b3c@f35-zws-1> 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: , From: Eli Zaretskii via Gdb-patches Reply-To: Eli Zaretskii Cc: simark@simark.ca, gdb-patches@sourceware.org, pedro@palves.net Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" > Date: Thu, 21 Jul 2022 16:08:32 -0700 > From: Kevin Buettner via Gdb-patches > Cc: Simon Marchi , gdb-patches@sourceware.org > > @@ -2346,11 +2353,11 @@ python executable."), > > add_setshow_auto_boolean_cmd ("dont-write-bytecode", no_class, > &python_dont_write_bytecode, _("\ > -Set whether the Python interpreter should ignore environment variables."), _(" \ > -Show whether the Python interpreter showlist ignore environment variables."), _(" \ > -When enabled GDB's Python interpreter will ignore any Python related\n \ > -flags in the environment. This is equivalent to passing `-E' to a\n \ > -python executable."), > +Set whether the Python interpreter won't byte-compile python modules."), _("\ > +Show whether the Python interpreter won't byte-compile python modules."), _(" "Set whether ... won't byte-compile" is a kind-of double negation. How about Set whether the Python interpreter should avoid byte-compiling python modules. instead (and similar change in the "Show" line)? > +When enabled GDB's Python interpreter won't byte-compile python modules.\n\ ^ Comma missing there. > +In order to take effect, this setting must be enabled before python\n\ > +initialization."), Will GDB users understand clearly what that means in practical terms? Should we say instead "before invoking the Python interpreter for the first time"? Finally should we mention the PYTHONDONTWRITEBYTECODE environment variable? Thanks.