Deutsch   English   Français   Italiano  
<t6obp4$8uh$1@gioia.aioe.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.mixmin.net!aioe.org!VcEiJc7UeGujhCV1GKeWQA.user.46.165.242.91.POSTED!not-for-mail
From: Dominique <zzz@aol.com.invalid>
Newsgroups: fr.comp.lang.python
Subject: =?UTF-8?Q?Re=3a_Comportement_=c3=a9trange_avec_IN_et_OR=2e=2e=2e?=
Date: Thu, 26 May 2022 19:01:23 +0200
Organization: Aioe.org NNTP Server
Message-ID: <t6obp4$8uh$1@gioia.aioe.org>
References: <t6ndp3$1igp$1@gioia.aioe.org>
 <87ilpsy78b.fsf@universite-de-strasbourg.fr.invalid>
 <t6o67e$1fmu$1@gioia.aioe.org> <t6o7n1$f9c$1@cabale.usenet-fr.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="9169"; posting-host="VcEiJc7UeGujhCV1GKeWQA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
 Thunderbird/91.9.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: fr
Bytes: 1591
Lines: 24

Le 26/05/2022 à 17:52, Olivier Miakinen a écrit :

> Euh... c'est comme si tu t'étonnais de :
> 
> if 32:
>       print('OK')
> 
> OK
> 
> ... sous prétexte que 32 ne serait pas défini. ;-)
> 


Tu as raison :-)

Je suis toujours de l'ancienne école (Sharp PC1211, Amstrad CPC 464, 
GWBasic de Microsoft...) où on ne pouvait traiter que des variables, pas 
des valeurs absolues.

Par exemple : if 32: quelque chose aurait nécessairement retourné un 
message d'erreur.

Merci pour tes explications claires.

Dominique