Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > fr.comp.lang.python > #3890

Re: Comportement étrange avec IN et OR...

From Olivier Miakinen <om+news@miakinen.net>
Newsgroups fr.comp.lang.python
Subject Re: Comportement étrange avec IN et OR...
Date 2022-05-26 17:52 +0200
Organization There's no cabale
Message-ID <t6o7n1$f9c$1@cabale.usenet-fr.net> (permalink)
References <t6ndp3$1igp$1@gioia.aioe.org> <87ilpsy78b.fsf@universite-de-strasbourg.fr.invalid> <t6o67e$1fmu$1@gioia.aioe.org>

Show all headers | View raw


Le 26/05/2022 17:26, Dominique a écrit :
> 
> if 'ERROR':
>      print('OK')
> 
> OK
> 
> même si ERROR n'esst pas défini.


Euh... c'est comme si tu t'étonnais de :

if 32:
     print('OK')

OK

... sous prétexte que 32 ne serait pas défini. ;-)

-- 
Olivier Miakinen

Back to fr.comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Comportement étrange avec IN et OR... Dominique <zzz@aol.com.invalid> - 2022-05-26 10:29 +0200
  Re: Comportement étrange avec IN et OR... Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2022-05-26 11:27 +0200
    Re: Comportement étrange avec IN et OR... Dominique <zzz@aol.com.invalid> - 2022-05-26 17:26 +0200
      Re: Comportement étrange avec IN et OR... Olivier Miakinen <om+news@miakinen.net> - 2022-05-26 17:52 +0200
        Re: Comportement étrange avec IN et OR... Dominique <zzz@aol.com.invalid> - 2022-05-26 19:01 +0200
  Re: Comportement étrange avec IN et OR... Dominique <zzz@aol.com.invalid> - 2022-05-26 11:36 +0200
  Re: Comportement étrange avec IN et OR... Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2022-05-26 11:38 +0200

csiph-web