From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by sourceware.org (Postfix) with ESMTPS id F40633858C62 for ; Fri, 2 Jun 2023 16:34:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F40633858C62 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-io1-xd2b.google.com with SMTP id ca18e2360f4ac-77703f20aa9so57354639f.1 for ; Fri, 02 Jun 2023 09:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1685723673; x=1688315673; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=2nulcMITerLVAbNLtfs57dwNccJL3q6ZNUtE9H1+J3A=; b=firTDnv06adE5+fJrPNG0+wKLlyuqExKclxhvNj5v3Cgkl7/Wih4GpCBtuNb4TMA2l aVQ4CwICR1MNTz581qmNwj1WfpGAHCuMGw+rfLjbOyyUztRMiMRQLv+TUgzoE9ZpcpiW S/Ubt2yDWOY2tqjbTk2w2CvYVeOHdESsVI/ev0XJbNU5gxmrL5MGYH/Kl+qdVpzH9WIc boRrxSSDHhxe/VnYYYaX5hpl/nVB4F6Xvs4A7dEGBB7BJtttkklkxzDZWjEeyJx+Ek45 T4SH8yIqDRr4Q1nAXrGK8ZHUCRdnJmdqtsH+w3hcADgvTFfqDHKdMzzmK7xjNXi4iFUd 0jlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685723673; x=1688315673; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=2nulcMITerLVAbNLtfs57dwNccJL3q6ZNUtE9H1+J3A=; b=HQf0QoyGnjECgT2vmyx8zAIzAfodyTu27r9PUwiU7gBhNahaqBhZ/hchbNYPxDgXrE Dgisp+8jqdoakBESRILlw8+PCMvdqp9Us4hWqJnti5DwBXUqQNKbT8ryIic/7GKueaBS fLH6CZgI4oICE+bpW4ai6hG+w5GgTkupt1FXaqlJTo9+FvTZT5Xhm61OuRq6KnxNuVCE dne5pyZnocbfF9Z8ViKHGgfebi6+GFJ88PHjwgW3rYSfkmqZZ1L82zn0Ro/lXNwMpX/A rzBCQy+tUD12R5VeoXLFaVhcFkho7MC+VMvOdo9B7387BJVoG/ZqppcquxIy6bHqZ4Am YH1g== X-Gm-Message-State: AC+VfDzZMnZ/HK89ffQbzSH7tobzvGV6BN8X+t127bgZD+Prjxib8/Jk 86UtQefWkufYtgjjN6rIfdgAxw== X-Google-Smtp-Source: ACHHUZ4LTE1qjM+tdksYKG5d0TV0c20yG/19OIJEr3JBMBx+cQaU4MAd+JT5EUbDx1wIHWHUazB9vg== X-Received: by 2002:a6b:908:0:b0:76c:52c4:bbc5 with SMTP id t8-20020a6b0908000000b0076c52c4bbc5mr3036055ioi.12.1685723673254; Fri, 02 Jun 2023 09:34:33 -0700 (PDT) Received: from murgatroyd (71-211-130-244.hlrn.qwest.net. [71.211.130.244]) by smtp.gmail.com with ESMTPSA id y28-20020a02ce9c000000b0040f7b91108esm373326jaq.144.2023.06.02.09.34.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jun 2023 09:34:32 -0700 (PDT) From: Tom Tromey To: Paul Koning Cc: Tom Tromey , gdb-patches@sourceware.org, legouguec@adacore.com Subject: Re: [PATCH] Remove f-strings from DAP References: <20230602154500.3941614-1-tromey@adacore.com> <9CA84F6F-D1F0-4C61-93F4-7E3C3F503FC7@comcast.net> X-Attribution: Tom Date: Fri, 02 Jun 2023 10:34:32 -0600 In-Reply-To: <9CA84F6F-D1F0-4C61-93F4-7E3C3F503FC7@comcast.net> (Paul Koning's message of "Fri, 2 Jun 2023 11:57:09 -0400") Message-ID: <875y85vn53.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: >>>>> "Paul" == Paul Koning writes: >> - raise Exception(f'unknown evaluate context "{context}"') >> + raise Exception("unknown evaluate context " + context) Paul> That (and the others) is not quite equivalent to what was there Paul> before. Yeah, it isn't identical, but it's the same in practice. In some spots the argument is known to be a string, and in ones where str() is applied, it's known to be an int. This is clearer after the runtime type-checking patch is applied. Tom