From: Robin Jarry <robin.jarry@6wind.com>
To: Bruce Richardson <bruce.richardson@intel.com>
Cc: dev@dpdk.org, thomas@monjalon.net
Subject: Re: [dpdk-dev] [PATCH v2] build: allow using wildcards to disable drivers
Date: Tue, 21 Jan 2020 14:48:38 +0100 [thread overview]
Message-ID: <20200121134838.dyfytargze3n2gvd@6wind.com> (raw)
In-Reply-To: <20200121133737.GE1747@bricha3-MOBL.ger.corp.intel.com>
2020-01-21, Bruce Richardson:
> > > +from glob import iglob # glob iterator
> >
> > No need to make it explicit. People can read the description in the
> > official docs.
>
> Except the fact that you yourself mistook it for a case-insensitive glob
> implies that a comment is needed! :-)
The fact that I should check things before I make comments should not
force people to add comments next to imports :-)
> This is script is to be called from the build system. I'm not worried about
> incorrect numbers of args, and argparse itself seems overkill. I'll add a
> check to print an error if len(argv) != 1.
Fair enough. However, argparse is never overkill. Using it is not going
to slow down your script.
> Just keeping the code short. I actually had originally got the print join
> in the same line as the list comprehension but that even I felt was a bit
> unreadable - even if it did leave a nice short script!
This is not perl^Wa competition :-)
--
Robin
next prev parent reply other threads:[~2020-01-21 13:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-20 17:37 [dpdk-dev] [PATCH] " Bruce Richardson
2020-01-20 18:59 ` Thomas Monjalon
2020-01-21 9:11 ` Robin Jarry
2020-01-21 10:17 ` Bruce Richardson
2020-01-21 10:13 ` Bruce Richardson
2020-01-21 11:12 ` [dpdk-dev] [PATCH v2] " Bruce Richardson
2020-01-21 13:22 ` Robin Jarry
2020-01-21 13:37 ` Bruce Richardson
2020-01-21 13:48 ` Robin Jarry [this message]
2020-01-24 10:32 ` [dpdk-dev] [PATCH v3] " Bruce Richardson
2020-01-24 12:28 ` Robin Jarry
2020-01-24 14:57 ` Richardson, Bruce
2020-01-24 15:10 ` [dpdk-dev] [PATCH v4] " Bruce Richardson
2020-01-24 15:34 ` Robin Jarry
2020-01-27 11:26 ` Andrzej Ostruszka
2020-01-27 12:15 ` Bruce Richardson
2020-01-27 12:12 ` Luca Boccassi
2020-01-27 14:28 ` [dpdk-dev] [PATCH v5] " Bruce Richardson
2020-02-06 2:26 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200121134838.dyfytargze3n2gvd@6wind.com \
--to=robin.jarry@6wind.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=thomas@monjalon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).