From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Shevchenko Date: Mon, 7 Sep 2020 12:05:57 +0300 Subject: [PATCH 2/5] binman: Show an error when a file is missing In-Reply-To: References: <20200904012856.1175506-1-sjg@chromium.org> <20200904012856.1175506-3-sjg@chromium.org> <20200904093348.GH1891694@smile.fi.intel.com> Message-ID: <20200907090557.GO1891694@smile.fi.intel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Sep 06, 2020 at 07:43:39PM -0600, Simon Glass wrote: > On Fri, 4 Sep 2020 at 03:33, Andy Shevchenko > wrote: > > On Thu, Sep 03, 2020 at 07:28:53PM -0600, Simon Glass wrote: > > > - self._pathname = tools.GetInputFilename(self._filename, > > > - self.section.GetAllowMissing()) > > > + self._pathname = tools.GetInputFilename( > > > + self._filename, self.external and self.section.GetAllowMissing()) > > > > I hope you know that 'and' has a bit different semantics in Python than in C for example. > > I think I understand it, in the sense that 'x and y' returns y if x is > true. Is that what you mean? There is no boolean object involved! "Note that neither and nor or restrict the value and type they return to False and True, but rather return the last evaluated argument." If x is last evaluated argument (false), it will be returned. Means that there are possibilities to get None, False, empty container, etc as returned value of 'and'. -- With Best Regards, Andy Shevchenko