[PATCH 2/5] binman: Show an error when a file is missing
Simon Glass
sjg at chromium.org
Mon Sep 7 15:57:07 CEST 2020
Hi Andy,
On Mon, 7 Sep 2020 at 03:08, Andy Shevchenko
<andriy.shevchenko at linux.intel.com> wrote:
>
> On Sun, Sep 06, 2020 at 07:43:39PM -0600, Simon Glass wrote:
> > On Fri, 4 Sep 2020 at 03:33, Andy Shevchenko
> > <andriy.shevchenko at linux.intel.com> 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'.
Yes I think that matches with my understanding. It's more like
'if...else' in this case. Anyway, both x and y are booleans in the
code above.
Regards,
Simon
More information about the U-Boot
mailing list