Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5878940pxb; Thu, 27 Jan 2022 01:14:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsk/wyNWzqvowmrmOpDzejukNkfVD4CPWUMnUI+1ivSHl8KWwCdTbSArR5sFiGswYw52Eg X-Received: by 2002:a17:903:2452:: with SMTP id l18mr2403370pls.116.1643274889221; Thu, 27 Jan 2022 01:14:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643274889; cv=none; d=google.com; s=arc-20160816; b=vzQVfwix5MDpRmCxYDJe924L7V7mHcKOGfTq3SJH3+rzc4NcjLw5FwiJpNmAouyV3X 9f4GWnxfTEpguPP0ps9DfeMZd/xgVzuBP99t+HDYpI96fsGxYoFjdwQwXkLoWmuTB/N+ z4NkIz8Y31MGKlD/LtxH3ruwGxT7rsbh+4NvT9DW2b0V4GQok72C2tLaxYZuJc3gbHs8 6pEHJfPxtq8bJzLJ3gVCQNBQmvx3H+lZdPURIyNoevOh/qOtficW9YpAseqIf3iNrq/5 9Pc0Zsod3L/CZgEmLoSZuvC0uOsC3kEK3YdSmJMdVivdU2zD6i8ay0mJHImEVj86QgRl BMSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=irIwWJy603Qxo+dhI+0ZurEBEeIfLdRgAJSY+8tlXwY=; b=aCJbU8cSeudmxB7b3VNd3Gqs5AkKq4xQroMR2TRHvfe+74Yt8rZC2Lmv1eNU/71QDc TZGcP6WEpDfpqy+/jTBkdPAVPOouvPHcJvihQdm2R7qCQn05or2OVTv07nIPtxIhH31y ByfUTVJ6bA6wX+oimjnw6yjDaRm8TY3dU/k+ZfnB1CB29rc0/fHw3r9RvouEfxFxEDs2 Z+yIPqgEPGSwKKXJKpmkDf0MGjqhekbPckSasEHd9vywq7UmvUpRzie6B1FzkI1jxE+Y bk6kRcjHiR/aT0zXzPWIZwvGYE+nl93iSUoqXiEDwN33BX6NQFu4QWpyYXYjYn7IFMdW UfBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ONgoXgiU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s5si1569857pfk.129.2022.01.27.01.14.37; Thu, 27 Jan 2022 01:14:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ONgoXgiU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235013AbiA0CUr (ORCPT + 99 others); Wed, 26 Jan 2022 21:20:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234995AbiA0CUq (ORCPT ); Wed, 26 Jan 2022 21:20:46 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C00D0C06161C for ; Wed, 26 Jan 2022 18:20:45 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id d138-20020a1c1d90000000b0034e043aaac7so2328563wmd.5 for ; Wed, 26 Jan 2022 18:20:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=irIwWJy603Qxo+dhI+0ZurEBEeIfLdRgAJSY+8tlXwY=; b=ONgoXgiUT2wCVoWow8Kr8Bj290mv2hublYsDDNUZW3mgaXwY4u7/H0MBfLXD40mM0j HJordW5x+vb5g81d6q0QlQhN3/hSqC+lTQwYeCXmV8UUeAY5IjZLTCUaY4Krqwjlslg+ j9j8Mo0EofrmhDZh3rIKhRyYjzBKQIYAwPSLlVsGQyKZFWp9KBVANU+14Xu2IS8Kn3Qd lFiCwqogNEYW3ISK2aI7+8k6tXoV0hqxGTpfUoNPtpJFEWeofyCdrFKT47H+1wPy2j+r L7rPjF7cp6DRMcd6+EOPHDpGQqpp1nqb+g3oCLAsTFibdAYtLVbPALIBoUuG/nu7rfsr e+RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=irIwWJy603Qxo+dhI+0ZurEBEeIfLdRgAJSY+8tlXwY=; b=68pYyybSwSsFitR1LLdWuE/t+e8gwDC3UOKGI8OqYmxHfB5TqyWL6bTccdJPvaY1CU pQ0IDkTvusQq3OYw/H9s2Y89KbdDW/S/28NCE6iEmuWqY6qpvoTz1ndlluYM2MrbLGWN 4GMVC4ZP4d9uBVG/cTqe21kBL9Ms0IuOsP1TbMV/77stOPGc6jbFEYMsjXwbje2rreQ7 DWLjlBkXb8ZX4qJiwOOtU1wegXFEsjz+CMnCgsd6dMQNG9Zrumjv+MAUBGAhSn8XB3BV ADG8xY3LJKxtmZ1Gzb29Ck1X8JZPXO89BUxLIDzRxcjyVwu5xokU0PkKE41QiSx4D26D ec4Q== X-Gm-Message-State: AOAM533IBZitqnhsSvFTFl9KPIbA5pOmf5czCelFbZK5sQ6PyG7A3zwr kxR0KgMMGLJstIa5ZWtWbIlNftkD2Hpx3U/+bBqU3w== X-Received: by 2002:a05:600c:1e2a:: with SMTP id ay42mr9718512wmb.131.1643250044209; Wed, 26 Jan 2022 18:20:44 -0800 (PST) MIME-Version: 1.0 References: <20220118190922.1557074-1-dlatypov@google.com> In-Reply-To: From: David Gow Date: Thu, 27 Jan 2022 10:20:32 +0800 Message-ID: Subject: Re: [PATCH 1/5] kunit: tool: drop mostly unused KunitResult.result field To: Daniel Latypov Cc: Brendan Higgins , Linux Kernel Mailing List , KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" , Shuah Khan Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 27, 2022 at 3:55 AM 'Daniel Latypov' via KUnit Development wrote: > > On Thu, Jan 20, 2022 at 9:19 AM Daniel Latypov wrote: > > > That being said, I can live with the current solution, but'd ideally > > > like a comment or something to make the return value Tuple a bit more > > > obvious. > > > > A comment to explain that Tuple == multiple return values from a func? > > Or something else? > > Friendly ping. > Do we want a comment like this? > > # Note: Python uses tuples internally for multiple return values > def foo() -> Tuple[int, int] > return 0, 1 > Whoops -- forgot to send my response to this. I was less worried about explaining the concept of multiple return values, and more about naming what the return values were: that the first one is the result information, and the second is the parsed test. That being said, it's reasonably obvious from the types in this case, so I'm okay leaving this as-is, though in general I'm wary of tuples when the order doesn't matter, and a struct-style thing (with named members) fits that better. I'm no Python expert though, so don't let my whinging get too much in the way. -- David