Le 17-10-2026, Richard Kettlewell <inva…@invalid.invalid> a écrit :
> Stéphane CARPENTIER <s…@fiat-linux.fr> writes:
>> 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.
>>
>> Like, it's not a typed language but start playing with dictionaries
>> without declaring your variables first to see how the claims stand
>> before the facts.
>
> Python is absolutely a typed language. Every object has a type and it
> won’t let you use objects in a manner incompatible with their type:
>
> >>> 0+""
> Traceback (most recent call last):
> File "<python-input-0>", line 1, in <module>
> 0+""
> ~^~~
> TypeError: unsupported operand type(s) for +: 'int' and 'str'
In this case python is a strongly typed language and in other cases it's
not that important.
With some typed languages, you can't use a variable if you didn't
declare it's type before. With python, you don't need to declare
integers and strings but you need to declare dictionaries. Why? Don't
know.
>> Or you want to see what's in some variables, so you print it with
>> print(myvariable)
>> When you start to have too many variables, you want to put the name of
>> the variable in front of it to increase its visibility, so you
>> print("myvariable: " + myvariable)
>> but that doesn't work because myvariable is not a string. So you have to
>> print("myvariable: " + str(myvariable))
>> But now you have the description of myvariable (or something like that:
>> I discovered it a long time ago, my memory isn't clear about it), not
>> its content, so you have to handle it differently (about that, I'm sure).
>
> It sounds like you just haven’t learned Python.
You are right, I haven't learned python. I'm not a programmer. I'm using
programs written by others and sometimes, I have to change them. I don't
have time to learn a programming language when I need to fix a program.
I have to make it run as expected and move on once I get the expected
result.
With python, that looks easy and when I fix something, it breaks
something else for reasons I don't understand. Because the issue was
already there but it wasn't important, until it started to be important
after I changed something else.
And so, for me it always looks like in python things work in a way until
they stop working for unobvious reasons.
With other programming languages I saw, either that works or that
doesn't, but I never saw something that stops working when it starts to
be more complex. It looks like it's a python specialty.
--
Si vous avez du temps à perdre :
https://scarpet42.gitlab.io