Re: Python Dialogs

Liste des GroupesRevenir à cl python 
Sujet : Re: Python Dialogs
De : nospam (at) *nospam* please.ty (jak)
Groupes : comp.lang.python
Date : 06. May 2024, 15:15:41
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v1aomd$2jsbp$1@dont-email.me>
References : 1 2 3 4 5
User-Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.18.2
Stefan Ram ha scritto:
ram@zedat.fu-berlin.de (Stefan Ram) wrote or quoted:
translation services are gonna interpret line breaks as
    I just beefed up my posting program to replace "gonna".
    Now I won't come across like some street thug, but rather
   as a respectable member of human society!
 # replace complete words
replacements =\
{ rb'kind of': b'kind of',
   rb'trying to': b'trying to',
   rb'got to': b'got to',
   rb'gonna': b'going to',
   }
lines =\
[ re.sub( rb"\b(" + b"|".join( replacements.keys() ) + rb")\b",
     lambda x: replacements[ x.group() ], line )
   if len( line )and line[ 0 ]not in b'>|' else line for line in lines ]
 
I present to you the brutality to which your posts are subjected:
    for(d = s = pCLipb; *s != TEXT('\0'); s++)
    {
       if(d == pCLipb)
       {
          if(*s != TEXT(' ') && *s != TEXT('\n') && *s != TEXT('\r'))
             *d++ = *s;
       }
       else if(*s == TEXT(' ') || *s == TEXT('\n') || *s == TEXT('\r'))
       {
          if(d[-1] != TEXT(' '))
             *d++ = TEXT(' ');
       }
       else
          *d++ = *s;
    }
    *d = TEXT('\0');

Date Sujet#  Auteur
2 May 24 * Python Dialogs11Stefan Ram
2 May 24 +* Re: Python Dialogs8Loris Bennett
4 May 24 i+- Re: Python Dialogs1Peter J. Holzer
6 May 24 i`* Re: Python Dialogs6jak
6 May 24 i +* Re: Python Dialogs4Stefan Ram
6 May 24 i i+* Re: Python Dialogs2Stefan Ram
6 May 24 i ii`- Re: Python Dialogs1jak
6 May 24 i i`- Re: Python Dialogs (Posting On Python-List Prohibited)1Lawrence D'Oliveiro
6 May 24 i `- Re: Python Dialogs1Chris Angelico
3 May 24 `* Re: Python Dialogs (Posting On Python-List Prohibited)2Lawrence D'Oliveiro
3 May 24  `- Re: Python Dialogs (Posting On Python-List Prohibited)1Alan Bawden

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal