Lawrence D’Oliveiro wrote:
> On Sat, 17 Oct 2026 15:47:43 -0600, Blaine wrote:
>
>> Lawrence D’Oliveiro wrote:
>>>
>>> On 17 Oct 2026 09:43:01 GMT, Stéphane CARPENTIER wrote:
>>>
>>>> From what I saw, for a beginner's approach, python is easier than Java
>>>> or C++. Now when one starts to use python in the real life, the
>>>> complexity of python appears. Because that's the python way: things
>>>> works except when they stop to work.
>>>
>>> I haven’t encountered that. I have written some reasonably substantial
>>> Python code -- would this one <https://gitlab.com/ldo/qahirah> count?
>>> That’s over 8500 lines. And this <https://gitlab.com/ldo/dbussy>
>>> consists of 2 modules totalling over 10,000 lines.
>>
>> No wonder. The problem with counting by lines is you may come up with
>> 10,000, but if you took out whitespace it could be short as 102 lines.
>
> l…@hypatia:dbussy> grep -cE '^$' dbussy.py ravel.py
> dbussy.py:720
> ravel.py:240
> l…@hypatia:dbussy> grep -cvE '^$' dbussy.py ravel.py
> dbussy.py:6279
> ravel.py:3483
>
> Still close to 10,000 lines. So ... nope.
>
>> To begin I know you should only import maybe at most 2 packages besides
>> sys and/or random.
>
> Where do you get that idea from?
>
> From the abovementioned dbussy.py:
>
> import os
> import builtins
> import operator
Because I tricked you into thinking, "To begin" means "well here we go again." I intentionally made it obscure that I am instructing the beginner on this point. I am suggesting that someone "new" to Python shouldn't import very many packages, as they can overlap problematically.
--
Can you strip away so we may start again?
"There’s a switch and they don't
seem authentic or themselves. It
feels like I’m an unnecessary
body and it’s a waste of time to
even be there." -- Grim, playful Blaine.