Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Our vision is to speed up time, eventually eliminating it." -- Alex Schure


computers / comp.os.linux.advocacy / The Folly of Python

SubjectAuthor
* The Folly of PythonFarley Flud
+* Re: The Folly of PythonStéphane CARPENTIER
|`* Re: The Folly of Pythonrbowman
| `* Re: The Folly of PythonChris Ahlstrom
|  +- Re: The Folly of PythonLawrence D'Oliveiro
|  `* Re: The Folly of PythonDFS
|   `* Re: The Folly of Pythonrbowman
|    +- Re: The Folly of PythonDFS
|    `* Re: The Folly of PythonChris Ahlstrom
|     +* Re: The Folly of Pythonrbowman
|     |`* Re: The Joy of PythonLawrence D'Oliveiro
|     | `- Re: The Joy of Pythonrbowman
|     `* Re: The Folly of PythonFarley Flud
|      `- Re: The Folly of FeebDFS
+* Re: The Folly of PythonJoel
|`- Re: The Folly of Pythoncandycanearter07
+- Re: The Folly of Farley FludLawrence D'Oliveiro
+- Re: The Folly of PythonDFS
`* The Golly! of PythonDFS
 +* Re: The Golly! of Pythonvallor
 |`* Re: The Golly! of PythonDFS
 | `* Re: The Golly! of Pythonvallor
 |  `* Re: The Golly! of PythonDFS
 |   +* We love Linux (was: Re: The Golly! of Python)vallor
 |   |`* Re: We love Linux (was: Re: The Golly! of Python)Lawrence D'Oliveiro
 |   | `- Re: We love Linux (was: Re: The Golly! of Python)vallor
 |   `- Re: The Golly! of PythonStéphane CARPENTIER
 `* Re: The Golly! of PythonLawrence D'Oliveiro
  +* Re: The Golly! of Pythonvallor
  |`- Re: The Golly! of PythonLawrence D'Oliveiro
  `* Re: The Golly! of PythonDFS
   +* Re: The Golly! of PythonLawrence D'Oliveiro
   |`- Re: The Golly! of Pythoncandycanearter07
   `* Re: The Golly! of PythonStéphane CARPENTIER
    `- Re: The Golly! of PythonChris Ahlstrom

Pages:123
The Folly of Python

<17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13679&group=comp.os.linux.advocacy#13679

  copy link   Newsgroups: comp.os.linux.advocacy
From: ff@linux.rocks (Farley Flud)
Subject: The Folly of Python
Newsgroups: comp.os.linux.advocacy
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 29
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
Date: Sun, 14 Apr 2024 17:46:21 +0000
Nntp-Posting-Date: Sun, 14 Apr 2024 17:46:21 +0000
X-Received-Bytes: 1157
Organization: UsenetExpress - www.usenetexpress.com
X-Complaints-To: abuse@usenetexpress.com
Message-Id: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
 by: Farley Flud - Sun, 14 Apr 2024 17:46 UTC

Who would love python? Only a fucking asshole.

I was curious about the program img2pdf:

https://gitlab.mister-muffin.de/josch/img2pdf

But then I discovered that to install img2pdf one
must first install "pillow," or the Python Imaging
Library.

But look at the fucking prerequisites for pillow:

https://pillow.readthedocs.io/en/latest/installation/building-from-source.html

Holy fucking shit! Pillow is just some stupid wrapper
around the common GNU/Linux image processing libraries.
On Gentoo, the pillow install is a whopping 45.5 Megabytes!
All this just for a fucking wrapper???!!!

Listen up developers.

Forget about Python. Just do it in C, fer chrissake.

Fucking OO assholes.

Python is not a crutch; it's a fucking ambulance.

Ha, ha, ha, ha, ha, ha, ha, ha, ha, ha!

Re: The Folly of Python

<661c3aa1$0$2574$426a74cc@news.free.fr>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13689&group=comp.os.linux.advocacy#13689

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!news.mixmin.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed1-b.proxad.net!nnrp3-2.free.fr!not-for-mail
Newsgroups: comp.os.linux.advocacy
From: sc@fiat-linux.fr (Stéphane CARPENTIER)
Subject: Re: The Folly of Python
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
Organization: Mulots' Killer
User-Agent: slrn/pre1.0.4-9 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Date: 14 Apr 2024 20:20:49 GMT
Lines: 45
Message-ID: <661c3aa1$0$2574$426a74cc@news.free.fr>
NNTP-Posting-Date: 14 Apr 2024 22:20:49 CEST
NNTP-Posting-Host: 78.201.248.7
X-Trace: 1713126049 news-1.free.fr 2574 78.201.248.7:33350
X-Complaints-To: abuse@proxad.net
 by: Stéphane CARPENTIER - Sun, 14 Apr 2024 20:20 UTC

Le 14-04-2024, Farley Flud <ff@linux.rocks> a écrit :
> Who would love python?

You.

You have five versions of python on your computer. It's way more than
necessary for the basic needs of Linux. You have more versions than
needed because of your love of python. It could be because of your
inability to manage your system but I won't be so cruel as to suppose
it.

> Only a fucking asshole.

Yes, every one agree with your way of speaking of yourself. Except your
pet dog but his opinion is irrelevant.

> Listen up developers.

I'm not a developer, but I have fun reading you anyway.

> Forget about Python.

Are you ready to remove the four useless versions of python on your
system? I'm not that sure about it.

> Just do it in C,

Why? you could learn rust if you want an efficient programming language
close to your computer.

> Fucking OO assholes.

What's that? You mean "Object Oriented"? If yes, are you really a
programmer (in fact, I know the answer, it's a rhetorical question)? If
no, do you know that python doesn't require Object Oriented programming
(it's another rhethorical question)?

> Python is not a crutch; it's a fucking ambulance.

So, why do you have five version of it on your computer?

--
Si vous avez du temps à perdre :
https://scarpet42.gitlab.io

Re: The Folly of Python

<1reo1j1dit5k5ndeo0f5f829e5bdbr9o40@4ax.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13690&group=comp.os.linux.advocacy#13690

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: joelcrump@gmail.com (Joel)
Newsgroups: comp.os.linux.advocacy
Subject: Re: The Folly of Python
Date: Sun, 14 Apr 2024 16:24:34 -0400
Organization: A noiseless patient Spider
Lines: 49
Message-ID: <1reo1j1dit5k5ndeo0f5f829e5bdbr9o40@4ax.com>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 14 Apr 2024 22:24:34 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="5db82771594d02f37ec51a3abd9b4a56";
logging-data="4016937"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ch8ttqSkpyqmnmFdKOiDsXwea4ZEs6EU="
User-Agent: ForteAgent/8.00.32.1272
Cancel-Lock: sha1:Jb55mVswzHXdUPeIIsrhBfSXxb8=
OS: Linux Mint 21.3 Cinnamon, with Wine 9.0 for WinAPI
 by: Joel - Sun, 14 Apr 2024 20:24 UTC

Farley Flud <ff@linux.rocks> wrote:

>Who would love python? Only a fucking asshole.
>
>I was curious about the program img2pdf:
>
>https://gitlab.mister-muffin.de/josch/img2pdf
>
>But then I discovered that to install img2pdf one
>must first install "pillow," or the Python Imaging
>Library.
>
>But look at the fucking prerequisites for pillow:
>
>https://pillow.readthedocs.io/en/latest/installation/building-from-source.html
>
>Holy fucking shit! Pillow is just some stupid wrapper
>around the common GNU/Linux image processing libraries.
>On Gentoo, the pillow install is a whopping 45.5 Megabytes!
>All this just for a fucking wrapper???!!!
>
>Listen up developers.
>
>Forget about Python. Just do it in C, fer chrissake.
>
>Fucking OO assholes.
>
>Python is not a crutch; it's a fucking ambulance.
>
>Ha, ha, ha, ha, ha, ha, ha, ha, ha, ha!

You're making me want to learn it.

--
Joel W. Crump

Amendment XIV
Section 1.

[...] No state shall make or enforce any law which shall
abridge the privileges or immunities of citizens of the
United States; nor shall any state deprive any person of
life, liberty, or property, without due process of law;
nor deny to any person within its jurisdiction the equal
protection of the laws.

Dobbs rewrites this, it is invalid precedent. States are
liable for denying needed abortions, e.g. TX.

Re: The Folly of Python

<l82u1gFk5qbU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13692&group=comp.os.linux.advocacy#13692

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: The Folly of Python
Date: 14 Apr 2024 20:53:05 GMT
Lines: 9
Message-ID: <l82u1gFk5qbU1@mid.individual.net>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
<661c3aa1$0$2574$426a74cc@news.free.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net bG8ww4hXy6/g3Yc3J22RTgm7VirrH3EAMIdgH7wYvb0H8FoczV
Cancel-Lock: sha1:CnhxgTzw/og3OrxzKU9PBxS4UqI= sha256:BvDl3rLRAU8EngDNu6vd0D1gSgoONZ9igsfHP2hkG58=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Sun, 14 Apr 2024 20:53 UTC

On 14 Apr 2024 20:20:49 GMT, Stéphane CARPENTIER wrote:

> What's that? You mean "Object Oriented"? If yes, are you really a
> programmer (in fact, I know the answer, it's a rhetorical question)? If
> no, do you know that python doesn't require Object Oriented programming
> (it's another rhethorical question)?

Yes and no... Everything in Python is an object but you don't necessarily
need to construct your own classes.

Re: The Folly of Farley Flud

<uvibtc$3tfq$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13700&group=comp.os.linux.advocacy#13700

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: The Folly of Farley Flud
Date: Mon, 15 Apr 2024 04:54:04 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 63
Message-ID: <uvibtc$3tfq$1@dont-email.me>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 Apr 2024 06:54:04 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="2acb11c3364910c2dba94812b909635b";
logging-data="128506"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ToSP9M1yI81Np4heOjrjm"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:hKQzhuqD3VcUb6LrRqFpZsKDvpk=
 by: Lawrence D'Oliv - Mon, 15 Apr 2024 04:54 UTC

On Sun, 14 Apr 2024 17:46:21 +0000, Farley Flud ranted:

> But then I discovered that to install img2pdf one must first install
> "pillow," or the Python Imaging Library.
>
> But look at the fucking prerequisites for pillow:

Just for fun, I tried

apt-cache depends --recurse img2pdf | sort | uniq | wc -l

which produced the output

63493

which seems like a lot of packages. However, for Python itself,

apt-cache depends --recurse python3 | sort | uniq | wc -l

prints

63461

which is not much less. So what are the extra dependencies? The output of

comm -23 \
<(apt-cache depends --recurse img2pdf | sort | uniq) \
<(apt-cache depends --recurse python3 | sort | uniq)

is just

Breaks: ocrmypdf
Conflicts: <libjbig2enc0>
Depends: icc-profiles-free
Depends: libjbig2enc0t64
Depends: link-grammar-dictionaries-en
Depends: python3-deprecation
Depends: python3-img2pdf
|Depends: python3-lxml
Depends: python3-pdfminer
Depends: python3-pikepdf
Depends: tesseract-ocr
img2pdf
jbig2
<libjbig2enc0>
libjbig2enc0t64
libjbig2enc0t64
link-grammar-dictionaries-all
link-grammar-dictionaries-en
ocrmypdf
ocrmypdf-doc
pngquant
python3-deprecation
python3-img2pdf
python3-pikepdf
Recommends: jbig2
Recommends: pngquant
Recommends: unpaper
Replaces: <libjbig2enc0>
Suggests: img2pdf
Suggests: link-grammar-dictionaries-all
Suggests: ocrmypdf-doc
Suggests: <python-watchdog>

Re: The Folly of Python

<uvj3qs$8i51$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13703&group=comp.os.linux.advocacy#13703

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: OFeem1987@teleworm.us (Chris Ahlstrom)
Newsgroups: comp.os.linux.advocacy
Subject: Re: The Folly of Python
Date: Mon, 15 Apr 2024 07:42:20 -0400
Organization: None
Lines: 23
Message-ID: <uvj3qs$8i51$2@dont-email.me>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
<661c3aa1$0$2574$426a74cc@news.free.fr> <l82u1gFk5qbU1@mid.individual.net>
Reply-To: OFeem1987@teleworm.us
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 Apr 2024 13:42:20 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f7ba5416769c4597f9336dee75b9d6a3";
logging-data="280737"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+FVWRmm4vF3xzCKvZRUUUQ"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:1yMHmFqZCsoB00hpokbR6UaIVkE=
X-Mutt: The most widely-used MUA
X-User-Agent: Microsoft Outl00k, Usenet K00k Editions
X-Slrn: Why use anything else?
 by: Chris Ahlstrom - Mon, 15 Apr 2024 11:42 UTC

rbowman wrote this copyrighted missive and expects royalties:

> On 14 Apr 2024 20:20:49 GMT, Stéphane CARPENTIER wrote:
>
>> What's that? You mean "Object Oriented"? If yes, are you really a
>> programmer (in fact, I know the answer, it's a rhetorical question)? If
>> no, do you know that python doesn't require Object Oriented programming
>> (it's another rhethorical question)?
>
> Yes and no... Everything in Python is an object but you don't necessarily
> need to construct your own classes.

https://www.linkedin.com/pulse/understanding-pythons-mutable-immutable-objects-memory-gihozo

Integers are immutable objects in Python. When you modify an integer, a
new object is created instead of modifying the existing one.

x = 10

Wowza!

--
Do not sleep in a eucalyptus tree tonight.

Re: The Folly of Python

<uvje8a$b594$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13708&group=comp.os.linux.advocacy#13708

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycanearter07@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.os.linux.advocacy
Subject: Re: The Folly of Python
Date: Mon, 15 Apr 2024 14:40:10 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 39
Message-ID: <uvje8a$b594$1@dont-email.me>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
<1reo1j1dit5k5ndeo0f5f829e5bdbr9o40@4ax.com>
Injection-Date: Mon, 15 Apr 2024 16:40:11 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="530423eb34796840436199cb4ae9fd46";
logging-data="365860"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18H99wLYAQdtk1wyMC70ISlu83NIro2TwFOpWBr2SnKHA=="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:mHFWmCp6hT8gd/rfE4/oJUjWaVA=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
`~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
 by: candycanearter07 - Mon, 15 Apr 2024 14:40 UTC

Joel <joelcrump@gmail.com> wrote at 20:24 this Sunday (GMT):
> Farley Flud <ff@linux.rocks> wrote:
>
>>Who would love python? Only a fucking asshole.
>>
>>I was curious about the program img2pdf:
>>
>>https://gitlab.mister-muffin.de/josch/img2pdf
>>
>>But then I discovered that to install img2pdf one
>>must first install "pillow," or the Python Imaging
>>Library.
>>
>>But look at the fucking prerequisites for pillow:
>>
>>https://pillow.readthedocs.io/en/latest/installation/building-from-source.html
>>
>>Holy fucking shit! Pillow is just some stupid wrapper
>>around the common GNU/Linux image processing libraries.
>>On Gentoo, the pillow install is a whopping 45.5 Megabytes!
>>All this just for a fucking wrapper???!!!
>>
>>Listen up developers.
>>
>>Forget about Python. Just do it in C, fer chrissake.
>>
>>Fucking OO assholes.
>>
>>Python is not a crutch; it's a fucking ambulance.
>>
>>Ha, ha, ha, ha, ha, ha, ha, ha, ha, ha!
>
>
> You're making me want to learn it.

It's a pretty good lang.
--
user <candycane> is generated from /dev/urandom

Re: The Folly of Python

<uvjku1$ck2t$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13717&group=comp.os.linux.advocacy#13717

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: The Folly of Python
Date: Mon, 15 Apr 2024 12:34:13 -0400
Organization: A noiseless patient Spider
Lines: 79
Message-ID: <uvjku1$ck2t$3@dont-email.me>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 Apr 2024 18:34:10 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ef130c998ada7e5093adfde9f6cc196d";
logging-data="413789"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19G2tbk1ZlpKSrVdsGdxm43"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:2cNyjxSDFKT6XtRVbD+ghnMKDfA=
In-Reply-To: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
Content-Language: en-US
 by: DFS - Mon, 15 Apr 2024 16:34 UTC

On 4/14/2024 1:46 PM, Farley Flud wrote:

> Who would love python? Only a fucking asshole.

Only the whole fucking world, less a few insecure dweebs.

> I was curious about the program img2pdf:
>
> https://gitlab.mister-muffin.de/josch/img2pdf

What, can't write your own converter? Considering you're a "magnificent
programmer" and "image processing expert", what's the problem?

The problem is you're a liar.

> But then I discovered that to install img2pdf one
> must first install "pillow," or the Python Imaging
> Library.

$ pip install pillow
Collecting pillow
Downloading pillow-10.3.0-cp311-cp311-win_amd64.whl.metadata (9.4 kB)
Downloading pillow-10.3.0-cp311-cp311-win_amd64.whl (2.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/2.5 MB 12.4 MB/s eta
0:00:00
Installing collected packages: pillow
Successfully installed pillow-10.3.0

No more than 3 seconds.

> But look at the fucking prerequisites for pillow:
>
> https://pillow.readthedocs.io/en/latest/installation/building-from-source.html
>
> Holy fucking shit! Pillow is just some stupid wrapper
> around the common GNU/Linux image processing libraries.
> On Gentoo, the pillow install is a whopping 45.5 Megabytes!
> All this just for a fucking wrapper???!!!

https://files.pythonhosted.org/packages/ef/43/c50c17c5f7d438e836c169e343695534c38c77f60e7c90389bd77981bc21/pillow-10.3.0.tar.gz

As usual, you spew idiocy. Pillow has significantly more lines of new
Python code than those found in the libs.

> Listen up developers.
>
> Forget about Python. Just do it in C, fer chrissake.

Show us how YOU do it in C, fer chrissake.

Or slink your talentless 'C Programmer Extraordinaire' ass away for the
1000th time.

> Fucking OO assholes.

Yesterday you were spooging over ghidra, which is written in Java.

You can't keep your stupidity straight from one minute to the next.

> Python is not a crutch; it's a fucking ambulance.
>
> Ha, ha, ha, ha, ha, ha, ha, ha, ha, ha!

cackling idiot

Re: The Folly of Python

<uvkebu$i40c$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13724&group=comp.os.linux.advocacy#13724

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: The Folly of Python
Date: Mon, 15 Apr 2024 23:48:15 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <uvkebu$i40c$1@dont-email.me>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
<661c3aa1$0$2574$426a74cc@news.free.fr> <l82u1gFk5qbU1@mid.individual.net>
<uvj3qs$8i51$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 16 Apr 2024 01:48:16 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="7122d47f46672ef7a70e2ca241d20ff2";
logging-data="593932"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Adljjfr5Bl90fvbX6K2rG"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:y0rENUELyMW69kh0oQIm6jFg1dY=
 by: Lawrence D'Oliv - Mon, 15 Apr 2024 23:48 UTC

On Mon, 15 Apr 2024 07:42:20 -0400, Chris Ahlstrom wrote:

> Integers are immutable objects in Python. When you modify an
> integer, a new object is created instead of modifying the existing
> one.
>
> x = 10
>
> Wowza!

>>> int("10000000002") is 10000000002
False
>>> int("10000000002") == 10000000002
True

Double wowza!

Re: The Folly of Python

<uvkjht$j1nb$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13726&group=comp.os.linux.advocacy#13726

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: The Folly of Python
Date: Mon, 15 Apr 2024 21:16:46 -0400
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <uvkjht$j1nb$1@dont-email.me>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
<661c3aa1$0$2574$426a74cc@news.free.fr> <l82u1gFk5qbU1@mid.individual.net>
<uvj3qs$8i51$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 16 Apr 2024 03:16:46 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="2b078b6dcce7c273cb53ebe064aa36bb";
logging-data="624363"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX197Xjrp4Ci3a88IPv+ndmSw"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:ecDPGcEGqeP67zXjKAo+ZBucfSI=
In-Reply-To: <uvj3qs$8i51$2@dont-email.me>
Content-Language: en-US
 by: DFS - Tue, 16 Apr 2024 01:16 UTC

On 4/15/2024 7:42 AM, Chris Ahlstrom wrote:
> rbowman wrote this copyrighted missive and expects royalties:
>
>> On 14 Apr 2024 20:20:49 GMT, Stéphane CARPENTIER wrote:
>>
>>> What's that? You mean "Object Oriented"? If yes, are you really a
>>> programmer (in fact, I know the answer, it's a rhetorical question)? If
>>> no, do you know that python doesn't require Object Oriented programming
>>> (it's another rhethorical question)?
>>
>> Yes and no... Everything in Python is an object but you don't necessarily
>> need to construct your own classes.
>
> https://www.linkedin.com/pulse/understanding-pythons-mutable-immutable-objects-memory-gihozo
>
> Integers are immutable objects in Python. When you modify an integer, a
> new object is created instead of modifying the existing one.
>
> x = 10
>
> Wowza!

$ for i in range(10): print("int %d, id = %d" % (i, id(i)))
int 0, id = 140706145489672
int 1, id = 140706145489704
int 2, id = 140706145489736
int 3, id = 140706145489768
int 4, id = 140706145489800
int 5, id = 140706145489832
int 6, id = 140706145489864
int 7, id = 140706145489896
int 8, id = 140706145489928
int 9, id = 140706145489960

wowza^10!

What do you notice about those id numbers?

Re: The Folly of Python

<l864uuF5pu5U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13727&group=comp.os.linux.advocacy#13727

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: The Folly of Python
Date: 16 Apr 2024 02:09:35 GMT
Lines: 34
Message-ID: <l864uuF5pu5U1@mid.individual.net>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
<661c3aa1$0$2574$426a74cc@news.free.fr> <l82u1gFk5qbU1@mid.individual.net>
<uvj3qs$8i51$2@dont-email.me> <uvkjht$j1nb$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net RHmVi4/bWSyqZNmUsoYUSwFW+t5TTi9mwlOoCDdyYPh1YBhDvH
Cancel-Lock: sha1:poO+14JCGLzpKlFSrJtD/VjScWs= sha256:WsZqpIy/HubHzAw4I1kKYhAIkzFfg9/PmqbK8e+PJZg=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Tue, 16 Apr 2024 02:09 UTC

On Mon, 15 Apr 2024 21:16:46 -0400, DFS wrote:

> What do you notice about those id numbers?

>>> for i in range(1000, 1011): print("int %d, id = %d" % (i, id(i)))
....
int 1000, id = 133523511399088
int 1001, id = 133523511399056
int 1002, id = 133523511399088
int 1003, id = 133523511399056
int 1004, id = 133523511399088
int 1005, id = 133523511399056
int 1006, id = 133523511399088
int 1007, id = 133523511399056
int 1008, id = 133523511399088
int 1009, id = 133523511399056
int 1010, id = 133523511399088

or, for extra credit explain

>>> for i in range(250, 261): print("int %d, id = %d" % (i, id(i)))
....
int 250, id = 133523513024528
int 251, id = 133523513024560
int 252, id = 133523513024592
int 253, id = 133523513024624
int 254, id = 133523513024656
int 255, id = 133523513024688
int 256, id = 133523513024720
int 257, id = 133523511399088
int 258, id = 133523511398960
int 259, id = 133523511399088
int 260, id = 133523511398960

Re: The Folly of Python

<uvkp55$nrtd$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13729&group=comp.os.linux.advocacy#13729

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: The Folly of Python
Date: Mon, 15 Apr 2024 22:52:21 -0400
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <uvkp55$nrtd$1@dont-email.me>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
<661c3aa1$0$2574$426a74cc@news.free.fr> <l82u1gFk5qbU1@mid.individual.net>
<uvj3qs$8i51$2@dont-email.me> <uvkjht$j1nb$1@dont-email.me>
<l864uuF5pu5U1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 16 Apr 2024 04:52:21 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="2b078b6dcce7c273cb53ebe064aa36bb";
logging-data="782253"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX185dFpsO/l8eS9J4Psv6LDR"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:UrF/Q8wWP45BoFR0u8V9nusuMwI=
Content-Language: en-US
In-Reply-To: <l864uuF5pu5U1@mid.individual.net>
 by: DFS - Tue, 16 Apr 2024 02:52 UTC

On 4/15/2024 10:09 PM, rbowman wrote:
> On Mon, 15 Apr 2024 21:16:46 -0400, DFS wrote:
>
>> What do you notice about those id numbers?
>
>>>> for i in range(1000, 1011): print("int %d, id = %d" % (i, id(i)))
> ...
> int 1000, id = 133523511399088
> int 1001, id = 133523511399056
> int 1002, id = 133523511399088
> int 1003, id = 133523511399056
> int 1004, id = 133523511399088
> int 1005, id = 133523511399056
> int 1006, id = 133523511399088
> int 1007, id = 133523511399056
> int 1008, id = 133523511399088
> int 1009, id = 133523511399056
> int 1010, id = 133523511399088

reference counts come and reference counts go

> or, for extra credit explain
>
>>>> for i in range(250, 261): print("int %d, id = %d" % (i, id(i)))
> ...
> int 250, id = 133523513024528
> int 251, id = 133523513024560
> int 252, id = 133523513024592
> int 253, id = 133523513024624
> int 254, id = 133523513024656
> int 255, id = 133523513024688
> int 256, id = 133523513024720

-5 to 255 are pre-allocated by CPython

> int 257, id = 133523511399088
> int 258, id = 133523511398960
> int 259, id = 133523511399088
> int 260, id = 133523511398960
>

Re: The Folly of Python

<uvlp4f$u64i$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13731&group=comp.os.linux.advocacy#13731

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: OFeem1987@teleworm.us (Chris Ahlstrom)
Newsgroups: comp.os.linux.advocacy
Subject: Re: The Folly of Python
Date: Tue, 16 Apr 2024 07:58:07 -0400
Organization: None
Lines: 41
Message-ID: <uvlp4f$u64i$1@dont-email.me>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
<661c3aa1$0$2574$426a74cc@news.free.fr> <l82u1gFk5qbU1@mid.individual.net>
<uvj3qs$8i51$2@dont-email.me> <uvkjht$j1nb$1@dont-email.me>
<l864uuF5pu5U1@mid.individual.net>
Reply-To: OFeem1987@teleworm.us
Injection-Date: Tue, 16 Apr 2024 13:58:07 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="0147064dec7cc36d3fc87567706ff661";
logging-data="989330"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18yxnasfjeP8+rxIX92LdIl"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:+KR2oDVzHqmexzjXac6ExWHXhEo=
X-Slrn: Why use anything else?
X-User-Agent: Microsoft Outl00k, Usenet K00k Editions
X-Mutt: The most widely-used MUA
 by: Chris Ahlstrom - Tue, 16 Apr 2024 11:58 UTC

rbowman wrote this copyrighted missive and expects royalties:

> On Mon, 15 Apr 2024 21:16:46 -0400, DFS wrote:
>
>> What do you notice about those id numbers?
>
>>>> for i in range(1000, 1011): print("int %d, id = %d" % (i, id(i)))
> ...
> int 1000, id = 133523511399088
> int 1001, id = 133523511399056
> int 1002, id = 133523511399088
> int 1003, id = 133523511399056
> int 1004, id = 133523511399088
> int 1005, id = 133523511399056
> int 1006, id = 133523511399088
> int 1007, id = 133523511399056
> int 1008, id = 133523511399088
> int 1009, id = 133523511399056
> int 1010, id = 133523511399088
>
> or, for extra credit explain
>
>>>> for i in range(250, 261): print("int %d, id = %d" % (i, id(i)))
> ...
> int 250, id = 133523513024528
> int 251, id = 133523513024560
> int 252, id = 133523513024592
> int 253, id = 133523513024624
> int 254, id = 133523513024656
> int 255, id = 133523513024688
> int 256, id = 133523513024720
> int 257, id = 133523511399088
> int 258, id = 133523511398960
> int 259, id = 133523511399088
> int 260, id = 133523511398960

Ahh the indeterminate beauty of garbage collection!

--
Q: Why did the astrophysicist order three hamburgers?
A: Because he was hungry.

The Golly! of Python

<uvltc2$v4b9$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13733&group=comp.os.linux.advocacy#13733

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: The Golly! of Python
Date: Tue, 16 Apr 2024 09:10:26 -0400
Organization: A noiseless patient Spider
Lines: 72
Message-ID: <uvltc2$v4b9$1@dont-email.me>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 16 Apr 2024 15:10:26 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="2b078b6dcce7c273cb53ebe064aa36bb";
logging-data="1020265"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VhuqYFRlkj/N5xt4C7R8/"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:hEJ8AospkuRH4brZ4RrlSoOF3FI=
In-Reply-To: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
Content-Language: en-US
 by: DFS - Tue, 16 Apr 2024 13:10 UTC

On 4/14/2024 1:46 PM, Lameass Larry Piet wrote:

> Who would love python? Only a fucking asshole.

Eric Raymond says:

"I noticed (allowing for pauses needed to look up new features in
Programming Python) I was generating working code nearly as fast as I
could type."

No wonder Gentoo depends so heavily on Python.

Here's a list of some of the files in a directory:

file_999
file_1000
file_998
file_200
file_2000

How about some of your 'extraordinary' C to read the directory and list
those files in ascending order (because they need to be processed
sequentially by nbr)?

yeah, crickets, just like I knew

-------------------------------------------------------------
import os
msgdir = "D:\\"
filearr = []
for pfile in os.listdir(msgdir):
if '_' in pfile:
filearr.append(int(str(pfile).split('_')[1]))
for filenbr in sorted(filearr):
print("file_" + str(filenbr))
print()
for filenbr in reversed(sorted(filearr)):
print("file_" + str(filenbr))
-------------------------------------------------------------
D:\>python temp.py
file_200
file_998
file_999
file_1000
file_2000

file_2000
file_1000
file_999
file_998
file_200
-------------------------------------------------------------

It can also be done in fewer lines with the glob and regex modules, and
using list comprehension.

By the way, I have a folder of 191K+ such files, and that code runs in:

D:\>python temp.py
0.13s to read 191490 files
First file is 730478
Last file is 943773

Feeb severely pwned by his own ineptitude
C severely owned by python

Re: The Folly of Python

<l87v41Fe10mU3@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13741&group=comp.os.linux.advocacy#13741

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: The Folly of Python
Date: 16 Apr 2024 18:42:09 GMT
Lines: 9
Message-ID: <l87v41Fe10mU3@mid.individual.net>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
<661c3aa1$0$2574$426a74cc@news.free.fr> <l82u1gFk5qbU1@mid.individual.net>
<uvj3qs$8i51$2@dont-email.me> <uvkjht$j1nb$1@dont-email.me>
<l864uuF5pu5U1@mid.individual.net> <uvlp4f$u64i$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net MUlGYCS0/bUDJDveZH2K3Q6dIED20CImTVGw8DZaUG/Tou+x1E
Cancel-Lock: sha1:M5shcTWv61Jiig5WxY3vc7JdFMI= sha256:Qc9ixk0QZErIUiTdx84EBIBjLNawlsoKQFSGFkBHsWc=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Tue, 16 Apr 2024 18:42 UTC

On Tue, 16 Apr 2024 07:58:07 -0400, Chris Ahlstrom wrote:

> Ahh the indeterminate beauty of garbage collection!

Of course reference counting never ever goes wrong. Don't get me wrong, I
like the versatility of Python/MicroPython/CircuitPython but it's like
popping the lid on a sleek Porsche 911 and seeing the complex mechanisms
that make it work.

Re: The Folly of Python

<17c6d8ddc34282cc$982$1425202$802601b3@news.usenetexpress.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13743&group=comp.os.linux.advocacy#13743

  copy link   Newsgroups: comp.os.linux.advocacy
From: ff@linux.rocks (Farley Flud)
Subject: Re: The Folly of Python
Newsgroups: comp.os.linux.advocacy
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com> <661c3aa1$0$2574$426a74cc@news.free.fr> <l82u1gFk5qbU1@mid.individual.net> <uvj3qs$8i51$2@dont-email.me> <uvkjht$j1nb$1@dont-email.me> <l864uuF5pu5U1@mid.individual.net> <uvlp4f$u64i$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 57
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
Date: Tue, 16 Apr 2024 19:19:15 +0000
Nntp-Posting-Date: Tue, 16 Apr 2024 19:19:15 +0000
X-Received-Bytes: 2239
Organization: UsenetExpress - www.usenetexpress.com
X-Complaints-To: abuse@usenetexpress.com
Message-Id: <17c6d8ddc34282cc$982$1425202$802601b3@news.usenetexpress.com>
 by: Farley Flud - Tue, 16 Apr 2024 19:19 UTC

On Tue, 16 Apr 2024 07:58:07 -0400, Chris Ahlstrom wrote:

> rbowman wrote this copyrighted missive and expects royalties:
>
>> On Mon, 15 Apr 2024 21:16:46 -0400, DFS wrote:
>>
>>> What do you notice about those id numbers?
>>
>>>>> for i in range(1000, 1011): print("int %d, id = %d" % (i, id(i)))
>> ...
>> int 1000, id = 133523511399088
>> int 1001, id = 133523511399056
>> int 1002, id = 133523511399088
>> int 1003, id = 133523511399056
>> int 1004, id = 133523511399088
>> int 1005, id = 133523511399056
>> int 1006, id = 133523511399088
>> int 1007, id = 133523511399056
>> int 1008, id = 133523511399088
>> int 1009, id = 133523511399056
>> int 1010, id = 133523511399088
>>
>> or, for extra credit explain
>>
>>>>> for i in range(250, 261): print("int %d, id = %d" % (i, id(i)))
>> ...
>> int 250, id = 133523513024528
>> int 251, id = 133523513024560
>> int 252, id = 133523513024592
>> int 253, id = 133523513024624
>> int 254, id = 133523513024656
>> int 255, id = 133523513024688
>> int 256, id = 133523513024720
>> int 257, id = 133523511399088
>> int 258, id = 133523511398960
>> int 259, id = 133523511399088
>> int 260, id = 133523511398960
>
> Ahh the indeterminate beauty of garbage collection!
>

So when are you programming "hotshots" going to contribute
to the global effort to analyze the xz-backdoor?

Huh? When?

Ha, ha, ha, ha, ha, ha, ha, ha, ha, ha, ha!

Just as I suspected.

When the going gets tough, the "tough" keep their
fucking mouths shut.

Ha, ha, ha, ha, ha, ha, ha, ha, ha, ha, ha!

Fucking vacuous code monkeys.

Re: The Joy of Python

<uvn6uf$17j5g$4@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13759&group=comp.os.linux.advocacy#13759

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: The Joy of Python
Date: Wed, 17 Apr 2024 00:59:59 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <uvn6uf$17j5g$4@dont-email.me>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
<661c3aa1$0$2574$426a74cc@news.free.fr> <l82u1gFk5qbU1@mid.individual.net>
<uvj3qs$8i51$2@dont-email.me> <uvkjht$j1nb$1@dont-email.me>
<l864uuF5pu5U1@mid.individual.net> <uvlp4f$u64i$1@dont-email.me>
<l87v41Fe10mU3@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 17 Apr 2024 03:00:00 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="eab0799947e46f7ee0d29068ff6512f6";
logging-data="1297584"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kGhpBtr5PvFh6RQePQvsL"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:YcLO71aC8HTnYOZY687VV6NcaxI=
 by: Lawrence D'Oliv - Wed, 17 Apr 2024 00:59 UTC

On 16 Apr 2024 18:42:09 GMT, rbowman wrote:

> Of course reference counting never ever goes wrong.

I think the term is “ORC”, for “cycles + reference counting”. Both Perl
and Python do it. The idea is to do reference counting as far as possible,
and only fall back to full-on garbage collection when you hit cases that
need it.

This way, it is fairly easy to write a well-behaved Python program whose
memory usage will stay within reasonable bounds, even after running for a
long time. Unlike Java, for example, which will happily chew up all the
RAM on your system if you let it.

There is a downside, in that maintaining those reference counts reduces
the concurrency when trying to do multithreading. The Python folks have a
solution to that, which will take a bit of work to do correctly, but which
is slowly going in.

Re: The Joy of Python

<l88rhuFigo2U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13762&group=comp.os.linux.advocacy#13762

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: The Joy of Python
Date: 17 Apr 2024 02:47:27 GMT
Lines: 13
Message-ID: <l88rhuFigo2U1@mid.individual.net>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
<661c3aa1$0$2574$426a74cc@news.free.fr> <l82u1gFk5qbU1@mid.individual.net>
<uvj3qs$8i51$2@dont-email.me> <uvkjht$j1nb$1@dont-email.me>
<l864uuF5pu5U1@mid.individual.net> <uvlp4f$u64i$1@dont-email.me>
<l87v41Fe10mU3@mid.individual.net> <uvn6uf$17j5g$4@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net cbffLaQ427TpZBywKDyiRwIlVD+9QTaebOupRH5xBvNnG1jO9B
Cancel-Lock: sha1:zJHSEjDw4+9qy6zwcJG7VsJrbl4= sha256:28BcmlQE8STbRlW0G2B2mjkbDoX3LTHvO+O03pgVHLI=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Wed, 17 Apr 2024 02:47 UTC

On Wed, 17 Apr 2024 00:59:59 -0000 (UTC), Lawrence D'Oliveiro wrote:

> There is a downside, in that maintaining those reference counts reduces
> the concurrency when trying to do multithreading. The Python folks have
> a solution to that, which will take a bit of work to do correctly, but
> which is slowly going in.

So far I haven't needed to use queue although I can see its potential. I
have been playing with MicroPython on a RP2040. It implements _threading
but queue is not done afaik. In this case one thread reads temperature/
humidity from a sensor while the other handles wifi connections requesting
for the data. A queue would be useful for accumulating history between
requests.

Re: The Folly of Feeb

<uvon7j$1l8sv$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13776&group=comp.os.linux.advocacy#13776

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: The Folly of Feeb
Date: Wed, 17 Apr 2024 10:44:05 -0400
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <uvon7j$1l8sv$2@dont-email.me>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
<661c3aa1$0$2574$426a74cc@news.free.fr> <l82u1gFk5qbU1@mid.individual.net>
<uvj3qs$8i51$2@dont-email.me> <uvkjht$j1nb$1@dont-email.me>
<l864uuF5pu5U1@mid.individual.net> <uvlp4f$u64i$1@dont-email.me>
<17c6d8ddc34282cc$982$1425202$802601b3@news.usenetexpress.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 17 Apr 2024 16:44:03 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e0319f71117d20b18cfaf5089cfe07f7";
logging-data="1745823"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+CXzX1iaeF78+/ls2UqtdE"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:9i0KxgioIuP7Qup/DqTz4xsiSiQ=
Content-Language: en-US
In-Reply-To: <17c6d8ddc34282cc$982$1425202$802601b3@news.usenetexpress.com>
 by: DFS - Wed, 17 Apr 2024 14:44 UTC

On 4/16/2024 3:19 PM, Fakeass Lying Failure Larry Pietraskiewicz wrote:

> So when are you programming "hotshots" going to contribute
> to the global effort to analyze the xz-backdoor?
>
> Huh? When?
>
> Ha, ha, ha, ha, ha, ha, ha, ha, ha, ha, ha!
>
> Just as I suspected.
>
> When the going gets tough, the "tough" keep their
> fucking mouths shut.
>
> Ha, ha, ha, ha, ha, ha, ha, ha, ha, ha, ha!
>
> Fucking vacuous code monkeys.

As per usual, all YOU can do is copy-paste bits of what actual expert
programmers and analysts have discovered and published about that backdoor.

You couldn't discover or decipher it yourself - or even make the
slightest contribution to the analysis - in this or any 10 lifetimes.

"I could do it but I have other fish to fry."

Meanwhile, real computer scientists and developers have exhaustively
detailed how it works technically and how it was put in place via
sock-puppetry and social engineering.

It's YOU that should shut your lying mouth. You can't get your faux
'computing virtuoso' bullshit past me, you phony, lying, coat-tail
riding, Johnny-come-lately, bragging cocksucker.

Re: The Golly! of Python

<uvp47u$1mntq$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13783&group=comp.os.linux.advocacy#13783

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: vallor@cultnix.org (vallor)
Newsgroups: comp.os.linux.advocacy
Subject: Re: The Golly! of Python
Date: Wed, 17 Apr 2024 18:26:06 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 93
Message-ID: <uvp47u$1mntq$1@dont-email.me>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
<uvltc2$v4b9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 17 Apr 2024 20:26:06 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="1b21f3d259dad67e66b8c0a532591d94";
logging-data="1793978"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1861XQMa7eXdcKh0UfW8AcP"
User-Agent: Pan/0.158 (Avdiivka; 6a11104 gitlab.gnome.org/GNOME/pan.git;
x86_64-pc-linux-gnu)
Cancel-Lock: sha1:70Z9WYiwdbfTeDDrt6UYLt1ZX4E=
X-Face: \}2`P"_@pS86<'EM:'b.Ml}8IuMK"pV"?FReF$'c.S%u9<Q#U*4QO)$l81M`{Q/n
XL'`91kd%N::LG:=*\35JS0prp\VJN^<s"b#bff@fA7]5lJA.jn,x_d%Md$,{.EZ
 by: vallor - Wed, 17 Apr 2024 18:26 UTC

On Tue, 16 Apr 2024 09:10:26 -0400, DFS <nospam@dfs.com> wrote in
<uvltc2$v4b9$1@dont-email.me>:

> On 4/14/2024 1:46 PM, Lameass Larry Piet wrote:
>
>> Who would love python? Only a fucking asshole.
>
> Eric Raymond says:
>
> "I noticed (allowing for pauses needed to look up new features in
> Programming Python) I was generating working code nearly as fast as I
> could type."
>
> No wonder Gentoo depends so heavily on Python.
>
> Here's a list of some of the files in a directory:
>
> file_999
> file_1000
> file_998
> file_200
> file_2000

Why do you prefix them with "file_"? Why not name the files
by article number, like other nntp software does?

>
>
> How about some of your 'extraordinary' C to read the directory and list
> those files in ascending order (because they need to be processed
> sequentially by nbr)?
>
>
> yeah, crickets, just like I knew
>
>
> -------------------------------------------------------------
> import os
> msgdir = "D:\\"
> filearr = []
> for pfile in os.listdir(msgdir):
> if '_' in pfile:
> filearr.append(int(str(pfile).split('_')[1]))
> for filenbr in sorted(filearr):
> print("file_" + str(filenbr))
> print()
> for filenbr in reversed(sorted(filearr)):
> print("file_" + str(filenbr))

You assume they are prefixed with "file_" instead
of, say, "foo_" -- but you print them as "file_xxx".
Tsk, tsk, tsk.

BTW, have you ever used awk?

(Also: see ls -v)

> -------------------------------------------------------------
> D:\>python temp.py
> file_200
> file_998
> file_999
> file_1000
> file_2000
>
> file_2000
> file_1000
> file_999
> file_998
> file_200
> -------------------------------------------------------------
>
> It can also be done in fewer lines with the glob and regex modules, and
> using list comprehension.
>
> By the way, I have a folder of 191K+ such files, and that code runs in:
>
> D:\>python temp.py
> 0.13s to read 191490 files
> First file is 730478
> Last file is 943773
>
>
>
> Feeb severely pwned by his own ineptitude
> C severely owned by python

$ man 3 scandir
and
$ man 3 strverscmp

--
-v

Re: The Golly! of Python

<uvpa8j$1pj2q$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13786&group=comp.os.linux.advocacy#13786

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: The Golly! of Python
Date: Wed, 17 Apr 2024 16:08:47 -0400
Organization: A noiseless patient Spider
Lines: 154
Message-ID: <uvpa8j$1pj2q$1@dont-email.me>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
<uvltc2$v4b9$1@dont-email.me> <uvp47u$1mntq$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 17 Apr 2024 22:08:52 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="daea99d44b4d074ddf61d58b1010de20";
logging-data="1887322"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19w8ygfYQ0cZh5oI5YqH8wY"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:SW3JVWoS67vkie0PetyGUD6A2gw=
In-Reply-To: <uvp47u$1mntq$1@dont-email.me>
Content-Language: en-US
 by: DFS - Wed, 17 Apr 2024 20:08 UTC

On 4/17/2024 2:26 PM, vallor wrote:
> On Tue, 16 Apr 2024 09:10:26 -0400, DFS <nospam@dfs.com> wrote in
> <uvltc2$v4b9$1@dont-email.me>:
>
>> On 4/14/2024 1:46 PM, Lameass Larry Piet wrote:
>>
>>> Who would love python? Only a fucking asshole.
>>
>> Eric Raymond says:
>>
>> "I noticed (allowing for pauses needed to look up new features in
>> Programming Python) I was generating working code nearly as fast as I
>> could type."
>>
>> No wonder Gentoo depends so heavily on Python.
>>
>> Here's a list of some of the files in a directory:
>>
>> file_999
>> file_1000
>> file_998
>> file_200
>> file_2000
>
> Why do you prefix them with "file_"? Why not name the files
> by article number, like other nntp software does?

That was just my example. They're actually prefixed with the name of
the newsgroup:

comp.lang.c_551568
comp.os.linux.advocacy_1239605
etc.

No extension.

I use SuckMT for Windows to download them. Well, I try to, but it
doesn't work too well. It always crashes after downloading around 4K
message files.

>> How about some of your 'extraordinary' C to read the directory and list
>> those files in ascending order (because they need to be processed
>> sequentially by nbr)?
>>
>>
>> yeah, crickets, just like I knew
>>
>>
>> -------------------------------------------------------------
>> import os
>> msgdir = "D:\\"
>> filearr = []
>> for pfile in os.listdir(msgdir):
>> if '_' in pfile:
>> filearr.append(int(str(pfile).split('_')[1]))
>> for filenbr in sorted(filearr):
>> print("file_" + str(filenbr))
>> print()
>> for filenbr in reversed(sorted(filearr)):
>> print("file_" + str(filenbr))
>
> You assume they are prefixed with "file_" instead
> of, say, "foo_" -- but you print them as "file_xxx".
> Tsk, tsk, tsk.

?

You're not equipped to tsk my programming.

That was an example for Feeb.

The real thing:
------------------------------------------------------------------------
msgdir = "D:/computer/dev/usenet/suckmt/posts/blocknews/" + sys.argv[1]
+ "/"
msgfile = ''
filearr = []
for pfile in os.listdir(msgdir):
if '_' in str(pfile):
filearr.append(int(str(pfile).split('_')[1]))
for articleID in sorted(filearr):
msgfile = grpName + '_' + str(articleID)
....
------------------------------------------------------------------------

In the first line, sys.argv[1] is my abbreviation for the newsgroup
(cola, clc, cdma, etc) passed in from the command line. In the last
line, grpName is the full name of the newsgroup. ID, abbreviation,
group name and other info is in a db table.

> BTW, have you ever used awk?

A tiny bit.

> (Also: see ls -v)

Yeah, I know ls will list the files in the correct order. I couldn't
make it happen using Windows dir, though.

Windows File Explorer and thunar and Nemo showed them in the correct
numerical order.

>> -------------------------------------------------------------
>> D:\>python temp.py
>> file_200
>> file_998
>> file_999
>> file_1000
>> file_2000
>>
>> file_2000
>> file_1000
>> file_999
>> file_998
>> file_200
>> -------------------------------------------------------------
>>
>> It can also be done in fewer lines with the glob and regex modules, and
>> using list comprehension.
>>
>> By the way, I have a folder of 191K+ such files, and that code runs in:
>>
>> D:\>python temp.py
>> 0.13s to read 191490 files
>> First file is 730478
>> Last file is 943773
>>
>>
>>
>> Feeb severely pwned by his own ineptitude
>> C severely owned by python
>
> $ man 3 scandir
> and
> $ man 3 strverscmp

Please don't feed the "C Programmer Extraordinaire" any hints.

Note: I do know how to write C to scan directories and list files and
check file types and open and read the contents, etc.

<FPDeI.3446$IC5.734@fx24.iad>
<KSGdH.282124$5_4.76405@fx40.iad>

Feeb does not.

Re: The Golly! of Python

<uvpgtm$1qshp$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13790&group=comp.os.linux.advocacy#13790

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: The Golly! of Python
Date: Wed, 17 Apr 2024 22:02:31 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <uvpgtm$1qshp$2@dont-email.me>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
<uvltc2$v4b9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 18 Apr 2024 00:02:31 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ec6fcf3bb75b95711759fde7cd91a1dc";
logging-data="1929785"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19gch0hqjikUkBNDmpGXoz+"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:a4MzkRGBRV7udSrk7NxhsxhS3zM=
 by: Lawrence D'Oliv - Wed, 17 Apr 2024 22:02 UTC

On Tue, 16 Apr 2024 09:10:26 -0400, DFS wrote:

> msgdir = "D:\\"

Ah, the wonders of drive letters. Don’t you wish Linux had such a
capability for keeping you files organized? Isn’t it so much easier to
remember that “messages” are kept on your “D” drive?

Re: The Golly! of Python

<uvphue$1mntq$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13791&group=comp.os.linux.advocacy#13791

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: vallor@cultnix.org (vallor)
Newsgroups: comp.os.linux.advocacy
Subject: Re: The Golly! of Python
Date: Wed, 17 Apr 2024 22:19:58 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <uvphue$1mntq$2@dont-email.me>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
<uvltc2$v4b9$1@dont-email.me> <uvpgtm$1qshp$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 18 Apr 2024 00:19:59 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d2a93cb4de328dc802bf5fc44bf55bbe";
logging-data="1793978"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/nYckMXt/0Dr+1/kqRoCnW"
User-Agent: Pan/0.158 (Avdiivka; 6a11104 gitlab.gnome.org/GNOME/pan.git;
x86_64-pc-linux-gnu)
Cancel-Lock: sha1:/YF14MuudckyzpqFvznBUoQr5yw=
X-Face: \}2`P"_@pS86<'EM:'b.Ml}8IuMK"pV"?FReF$'c.S%u9<Q#U*4QO)$l81M`{Q/n
XL'`91kd%N::LG:=*\35JS0prp\VJN^<s"b#bff@fA7]5lJA.jn,x_d%Md$,{.EZ
 by: vallor - Wed, 17 Apr 2024 22:19 UTC

On Wed, 17 Apr 2024 22:02:31 -0000 (UTC), Lawrence D'Oliveiro
<ldo@nz.invalid> wrote in <uvpgtm$1qshp$2@dont-email.me>:

> On Tue, 16 Apr 2024 09:10:26 -0400, DFS wrote:
>
>> msgdir = "D:\\"
>
> Ah, the wonders of drive letters. Don’t you wish Linux had such a
> capability for keeping you files organized? Isn’t it so much easier to
> remember that “messages” are kept on your “D” drive?

Can't tell if you're serious or not...

https://en.wikipedia.org/wiki/Poe%27s_law

--
-v

Re: The Golly! of Python

<uvpits$1mntq$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13792&group=comp.os.linux.advocacy#13792

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: vallor@cultnix.org (vallor)
Newsgroups: comp.os.linux.advocacy
Subject: Re: The Golly! of Python
Date: Wed, 17 Apr 2024 22:36:44 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 174
Message-ID: <uvpits$1mntq$3@dont-email.me>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
<uvltc2$v4b9$1@dont-email.me> <uvp47u$1mntq$1@dont-email.me>
<uvpa8j$1pj2q$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 18 Apr 2024 00:36:44 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d2a93cb4de328dc802bf5fc44bf55bbe";
logging-data="1793978"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19XtmS3byRsvFt1SS9VG3yi"
User-Agent: Pan/0.158 (Avdiivka; 6a11104 gitlab.gnome.org/GNOME/pan.git;
x86_64-pc-linux-gnu)
Cancel-Lock: sha1:2wckLk5a4N07+Zg2+S48o+1D2sk=
X-Face: \}2`P"_@pS86<'EM:'b.Ml}8IuMK"pV"?FReF$'c.S%u9<Q#U*4QO)$l81M`{Q/n
XL'`91kd%N::LG:=*\35JS0prp\VJN^<s"b#bff@fA7]5lJA.jn,x_d%Md$,{.EZ
 by: vallor - Wed, 17 Apr 2024 22:36 UTC

On Wed, 17 Apr 2024 16:08:47 -0400, DFS <nospam@dfs.com> wrote in
<uvpa8j$1pj2q$1@dont-email.me>:

> On 4/17/2024 2:26 PM, vallor wrote:
>> On Tue, 16 Apr 2024 09:10:26 -0400, DFS <nospam@dfs.com> wrote in
>> <uvltc2$v4b9$1@dont-email.me>:
>>
>>> On 4/14/2024 1:46 PM, Lameass Larry Piet wrote:
>>>
>>>> Who would love python? Only a fucking asshole.
>>>
>>> Eric Raymond says:
>>>
>>> "I noticed (allowing for pauses needed to look up new features in
>>> Programming Python) I was generating working code nearly as fast as I
>>> could type."
>>>
>>> No wonder Gentoo depends so heavily on Python.
>>>
>>> Here's a list of some of the files in a directory:
>>>
>>> file_999
>>> file_1000
>>> file_998
>>> file_200
>>> file_2000
>>
>> Why do you prefix them with "file_"? Why not name the files
>> by article number, like other nntp software does?
>
>
> That was just my example. They're actually prefixed with the name of
> the newsgroup:
>
> comp.lang.c_551568
> comp.os.linux.advocacy_1239605
> etc.
>
> No extension.
>
> I use SuckMT for Windows to download them. Well, I try to, but it
> doesn't work too well. It always crashes after downloading around 4K
> message files.
>
>
>
>>> How about some of your 'extraordinary' C to read the directory and list
>>> those files in ascending order (because they need to be processed
>>> sequentially by nbr)?
>>>
>>>
>>> yeah, crickets, just like I knew
>>>
>>>
>>> -------------------------------------------------------------
>>> import os
>>> msgdir = "D:\\"
>>> filearr = []
>>> for pfile in os.listdir(msgdir):
>>> if '_' in pfile:
>>> filearr.append(int(str(pfile).split('_')[1]))
>>> for filenbr in sorted(filearr):
>>> print("file_" + str(filenbr))
>>> print()
>>> for filenbr in reversed(sorted(filearr)):
>>> print("file_" + str(filenbr))
>>
>> You assume they are prefixed with "file_" instead
>> of, say, "foo_" -- but you print them as "file_xxx".
>> Tsk, tsk, tsk.
>
> ?
>
> You're not equipped to tsk my programming.
>
> That was an example for Feeb.
>
> The real thing:
> ------------------------------------------------------------------------
> msgdir = "D:/computer/dev/usenet/suckmt/posts/blocknews/" + sys.argv[1]
> + "/"
> msgfile = ''
> filearr = []
> for pfile in os.listdir(msgdir):
> if '_' in str(pfile):
> filearr.append(int(str(pfile).split('_')[1]))
> for articleID in sorted(filearr):
> msgfile = grpName + '_' + str(articleID)
> ....
> ------------------------------------------------------------------------
>
> In the first line, sys.argv[1] is my abbreviation for the newsgroup
> (cola, clc, cdma, etc) passed in from the command line. In the last
> line, grpName is the full name of the newsgroup. ID, abbreviation,
> group name and other info is in a db table.
>
>
>
>> BTW, have you ever used awk?
>
> A tiny bit.
>
>
> > (Also: see ls -v)
>
> Yeah, I know ls will list the files in the correct order. I couldn't
> make it happen using Windows dir, though.
>
> Windows File Explorer and thunar and Nemo showed them in the correct
> numerical order.
>
>
>>> -------------------------------------------------------------
>>> D:\>python temp.py
>>> file_200
>>> file_998
>>> file_999
>>> file_1000
>>> file_2000
>>>
>>> file_2000
>>> file_1000
>>> file_999
>>> file_998
>>> file_200
>>> -------------------------------------------------------------
>>>
>>> It can also be done in fewer lines with the glob and regex modules, and
>>> using list comprehension.
>>>
>>> By the way, I have a folder of 191K+ such files, and that code runs in:
>>>
>>> D:\>python temp.py
>>> 0.13s to read 191490 files
>>> First file is 730478
>>> Last file is 943773
>>>
>>>
>>>
>>> Feeb severely pwned by his own ineptitude
>>> C severely owned by python
>>
>> $ man 3 scandir
>> and
>> $ man 3 strverscmp
>
>
> Please don't feed the "C Programmer Extraordinaire" any hints.
>
> Note: I do know how to write C to scan directories and list files and
> check file types and open and read the contents, etc.
>
> <FPDeI.3446$IC5.734@fx24.iad>
> <KSGdH.282124$5_4.76405@fx40.iad>
>
> Feeb does not.

I looked at those, and had to do a double-take with the
second one.

Calling "file" is "cheating". ;) You can get crafty with
a lookup table and stat(2).

I mention this mainly because if Laughing Boy was
capable of reading your article, he'll surely launch
into a cackling fit that might brake his brane. (That
is...if he understood the program, which he probably wouldn't.)

(Regarding article lookups and such, I use a shell script that calls
openssl(1) s_client to connect, log in, and leaves me with
the NNTP prompt...a place at which Feeb would be lost.)

--
-v

Re: The Golly! of Python

<uvpotf$1si92$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13798&group=comp.os.linux.advocacy#13798

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: The Golly! of Python
Date: Wed, 17 Apr 2024 20:18:54 -0400
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <uvpotf$1si92$1@dont-email.me>
References: <17c636a2d6477a17$13590$197378$802601b3@news.usenetexpress.com>
<uvltc2$v4b9$1@dont-email.me> <uvpgtm$1qshp$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 18 Apr 2024 02:18:55 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="cfb83eeb41ed3c919ab6ed3f39143517";
logging-data="1984802"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19iNNfxulSuYIqeIA3b/Lyh"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:NKGDwig2csrjB/GlPN9NaBJHq/M=
Content-Language: en-US
In-Reply-To: <uvpgtm$1qshp$2@dont-email.me>
 by: DFS - Thu, 18 Apr 2024 00:18 UTC

On 4/17/2024 6:02 PM, Lawrence D'Oliveiro wrote:
> On Tue, 16 Apr 2024 09:10:26 -0400, DFS wrote:
>
>> msgdir = "D:\\"
>
> Ah, the wonders of drive letters. Don’t you wish Linux had such a
> capability for keeping you files organized?

I just wish lsblk wouldn't tell me I have 3 devices with funny names
like 'sda'. There's only one.

> Isn’t it so much easier to remember that “messages” are kept on your
> “D” drive?

It's much more beautiful than that.

It's "D:\computer\dev\Usenet\suckmt\posts\blocknews\cola"

C = binaries
D = porn and everything else


computers / comp.os.linux.advocacy / The Folly of Python

Pages:123
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor