From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D804CA04B1; Mon, 7 Sep 2020 19:21:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B5F131BF8A; Mon, 7 Sep 2020 19:21:03 +0200 (CEST) Received: from mail-pj1-f65.google.com (mail-pj1-f65.google.com [209.85.216.65]) by dpdk.org (Postfix) with ESMTP id A5459255 for ; Mon, 7 Sep 2020 19:21:02 +0200 (CEST) Received: by mail-pj1-f65.google.com with SMTP id t7so3838581pjd.3 for ; Mon, 07 Sep 2020 10:21:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kY1WwtgsVR7x1uSHJRLLcyJEPi0uL5fAPw/VSfKimbk=; b=OgD7j8UANnxq1jwlWuoENxjNo/SVmvLB8BjzvV1pEzeRjieM5SsjHiDjHQuAsFdfgA bOmpCptYJcSCeTyo3JtUmzjqJ/tE4EAaupc8DyJhEIi/6OQTmgkj+X2Xlw2VPKobhXXK hIPZHtgKqOd57fYQ52iwp3MDg1bdc5mBNaHlS+yileDhcmRenekYltO8vx6M+G5HhiZy 46Y1mlpWATBmXmn7ZbeHMZdLoB3Lq1vfuWZX6PiXj3ILB9Ld6PoOUYOyvjAj3+49lupB ScTcxrWYsZ4jU0v07wHzAcikR5nfQhpqTk4Qf1p7VpoMT/c0S9Swa1Qm/M4olkgW3xhr bMzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kY1WwtgsVR7x1uSHJRLLcyJEPi0uL5fAPw/VSfKimbk=; b=ZnLC5dLNmXIBPGXBFK0gJf4lVHBZWgf8WGbFZZKi7S6Pa2/9iyG/DbhHrL9cGxYhFC O9rYHKv7cYrXkSHc6wdcKrOckus6k+jmtY5PaFS3aygGUSWs0hVnTROr2Bcd8BPPZyPK RJI5lCvT50gz4g6WGnvaenDE9UnT8SRuquBDKHPN36D9DWQ3/ragqiDa7vBL5PP09Hht Th1J8KIGNyfjBo7r0nP/b9aHBd78/GECRoyt568zcakJ8zaAdxpzs5GK7q9eTMUVWaMp hngVQW8GTm0Au+Xe4Sl183QSDn+DCUBJkLyGpPBRRb5BVfYxiaOc5l0aoZUKCb0u+7LO wtDw== X-Gm-Message-State: AOAM533gk7by2INj1J7hHB2c08Cf+vEqwbN0rsmK5FmtaNrb8sPlkCyZ I5f1C0w50pz56ntFfqgNMmrrFA== X-Google-Smtp-Source: ABdhPJzSsjrC/sJt5oz/yO77elOFwb2u6pvxCnoLo2k1xp28kcY+UsMlIP0waWYXKw0eHBCbsTxeoA== X-Received: by 2002:a17:902:16a:: with SMTP id 97mr20096032plb.207.1599499261894; Mon, 07 Sep 2020 10:21:01 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id q18sm11434910pfg.158.2020.09.07.10.21.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2020 10:21:01 -0700 (PDT) Date: Mon, 7 Sep 2020 10:20:59 -0700 From: Stephen Hemminger To: Bruce Richardson Cc: dev@dpdk.org Message-ID: <20200907102059.23303c10@hermes.lan> In-Reply-To: <20200907090342.GD312@bricha3-MOBL.ger.corp.intel.com> References: <20200906013133.26360-1-stephen@networkplumber.org> <20200906013133.26360-10-stephen@networkplumber.org> <20200907090342.GD312@bricha3-MOBL.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 09/11] dpdk-pmdinfo: do not use len(x) to test for empty X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, 7 Sep 2020 10:03:43 +0100 Bruce Richardson wrote: > Does an empty sequence not directly resolve to false in python? If so, the > len should be removable and just use "if not self.contents:" Yes, len should be removed there