Sujet : Re: Numerically sorted arguments (in shell)
De : vallor (at) *nospam* cultnix.org (vallor)
Groupes : comp.unix.shellDate : 21. Jun 2024, 06:20:47
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v52v2v$2q8of$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Pan/0.159 (Vovchansk; 873418b; Linux-6.9.5)
On Fri, 21 Jun 2024 03:37:51 -0000 (UTC), Lawrence D'Oliveiro
<
ldo@nz.invalid> wrote in <
v52sif$3019v$1@dont-email.me>:
On Thu, 20 Jun 2024 22:16:42 -0000 (UTC), vallor wrote:
I just posted a python program to comp.lang.python that sorts
parameters using strverscmp(3).
I already posted a snippet here which sorts strings containing any
number of decimal-numerical segments.
While I can't speak for others, something about the way you
went about that rubbed me the wrong way.
More on-topic, I did post the code in comp.lang.python with a request
for comments. Sometimes I feel like Manfred Mann's "The Demolition Man",
where "I kill conversation as I walk into the room." It is no exception
there, even though it would seem to be a good example of using a C binding
with python's sort function. (Having very little experience with python
programming, I couldn't really say with confidence -- but nobody has
complained so far.)
I wrote it to learn something about python, and to be a (q&d) shell
utility that someone might find useful, possibly Janis. Since
this is the shell newsgroup, and not the python programming
newsgroup, I think discussing the finer points of python
programming really don't belong here. YMMV.
I'm also put-off by "snip-and-snark" Usenet. I know a few people who
do that to tick-off the person they're conversing with. I'm guilty
of doing that from time to time, but I hope it's only when
the situation warrants it. If my opinion matters: it's a bad habit to
do so by default.
-- -v