Le 17-10-2026, John Bokma <cont…@johnbokma.com> a écrit :
> On 17/10/2026 18:46, Stéphane CARPENTIER wrote: > > [..] >
>> 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.
> > I guess you confuse assigning a type with creating an object of a > specific type.
Probably. Sometimes some methods didn't work if I didn't assign an empty dictionary first. So, I assumed, maybe wrongly, that assigning an empty value was declaring it, maybe there are some subtleties.
>> With python, that looks easy and when I fix something, it breaks >> something else for reasons I don't understand.
> > I recommend to install Copilot CLI on your system and ask it to explain > why your script breaks. It's quite good at explaining is my experience.
Well, at work I don't install what I want on my computer.
-- Si vous avez du temps à perdre : https://scarpet42.gitlab.io