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


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

Re: Propriétés Unicode dans les regex Python

From Dominique <zzz@aol.com>
Newsgroups fr.comp.lang.python
Subject Re: Propriétés Unicode dans les regex Python
Date 2022-11-09 14:46 +0100
Organization A noiseless patient Spider
Message-ID <tkgav9$7tmg$1@dont-email.me> (permalink)
References <tk67uo$1b37$1@cabale.usenet-fr.net> <63680b04$0$3005$426a74cc@news.free.fr> <unicodedata-20221109092838@ram.dialup.fu-berlin.de> <tkft8s$6lnj$1@dont-email.me> <Unicode-20221109110750@ram.dialup.fu-berlin.de>

Show all headers | View raw


Le 09/11/2022 à 11:09, Stefan Ram a écrit :
> Dominique <zzz@aol.com> writes:
>> Le 09/11/2022 à 09:33, Stefan Ram a écrit :
>>> import unicodedata
>>> source = "abcdEfgh"
>>> for i, ch in enumerate( source ):
>>>       if unicodedata.category( ch )== 'Lu':
>>>           print( i, ch )
>> Bonjour,
> 
>    Bonjour !
> 
>> Pourrais-tu expliquer ton script que je ne comprends pas ? À quoi
>> correspond 'Lu' ? Est-ce spécifique unicodedata ?
> 
>    Il s'agit d'une catégorie de caractère spécifique à Unicode,
>    qui est attribuée à chaque caractère par l'annexe #44 "Base
>    de données des caractères Unicode" de la spécification Unicode.
>    "L" = lettre, "u" = "upper case" (majuscule).
> 
> 

Ah d'accord, merci. Je ne connaissais pas. J'aurai appris quelque chose 
aujourd'hui :)

Bon après-midi à toi,

-- 
Dominique
Courriel : dominique point sextant ate orange en France
Esto quod es

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


Thread

Propriétés Unicode dans les regex Python Olivier Miakinen <om+news@miakinen.net> - 2022-11-05 18:53 +0100
  Re: Propriétés Unicode dans les regex Python Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2022-11-06 10:24 +0100
    Re: Propriétés Unicode dans les regex Python Olivier Miakinen <om+news@miakinen.net> - 2022-11-06 19:46 +0100
  Re: Propriétés Unicode dans les regex Python ast <ast@invalid> - 2022-11-06 20:29 +0100
    Re: Propriétés Unicode dans les regex Python Dominique <zzz@aol.com> - 2022-11-09 10:52 +0100
      Re: Propriétés Unicode dans les regex Python Dominique <zzz@aol.com> - 2022-11-09 14:46 +0100
    Re: Propriétés Unicode dans les regex Python Olivier Miakinen <om+news@miakinen.net> - 2022-11-09 11:44 +0100
      Re: Propriétés Unicode dans les regex Python Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2022-11-09 14:13 +0100
        Re: Propriétés Unicode dans les regex Python Olivier Miakinen <om+news@miakinen.net> - 2022-11-09 15:12 +0100
          Re: Propriétés Unicode dans les regex Python Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2022-11-09 19:42 +0100
            Re: Propriétés Unicode dans les regex Python Olivier Miakinen <om+news@miakinen.net> - 2022-11-09 20:09 +0100
        Re: Propriétés Unicode dans les regex Python Olivier Miakinen <om+news@miakinen.net> - 2022-11-09 15:22 +0100
          Re: Propriétés Unicode dans les regex Python Olivier Miakinen <om+news@miakinen.net> - 2022-11-09 17:07 +0100
            Re: Propriétés Unicode dans les regex Python Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2022-11-09 19:46 +0100
              Re: Propriétés Unicode dans les regex Python Olivier Miakinen <om+news@miakinen.net> - 2022-11-09 19:52 +0100
          Re: Propriétés Unicode dans les regex Python ast <ast@invalid> - 2022-11-10 14:32 +0100
        Re: Propriétés Unicode dans les regex Python ast <ast@invalid> - 2022-11-10 14:29 +0100

csiph-web