Comments on: Les expressions rationnelles en Python, parfois overkill http://sametmax.com/les-expressions-rationnelles-en-python-parfois-overkill/ Du code, du cul Fri, 06 Sep 2019 09:34:15 +0000 hourly 1 https://wordpress.org/?v=4.9.7 By: Jean-Baptiste http://sametmax.com/les-expressions-rationnelles-en-python-parfois-overkill/#comment-189718 Fri, 22 Sep 2017 07:48:14 +0000 http://sametmax.com/?p=7042#comment-189718 Il y a une petite erreur : la fonction str.lsplit() n’existe pas.

]]>
By: Sam http://sametmax.com/les-expressions-rationnelles-en-python-parfois-overkill/#comment-13259 Mon, 12 Aug 2013 20:53:07 +0000 http://sametmax.com/?p=7042#comment-13259 Nan, le blog c’est du low tech. Regarde le code HTML, tu vas voir, c’est pas triste.

]]>
By: Max (un autre Max) http://sametmax.com/les-expressions-rationnelles-en-python-parfois-overkill/#comment-13253 Mon, 12 Aug 2013 19:59:06 +0000 http://sametmax.com/?p=7042#comment-13253 Je suis un peu déçu, je pensais que vous aviez fait un tampon “dynamique” (texte + couleur) – btw, je trouve l’idée du tampon juste géniale (et très drôle).

]]>
By: Etienne http://sametmax.com/les-expressions-rationnelles-en-python-parfois-overkill/#comment-12760 Thu, 08 Aug 2013 18:00:51 +0000 http://sametmax.com/?p=7042#comment-12760 Ouais, on mérite un tampon “C.B.S” pour Caïd de Bac à Sable

]]>
By: guatar http://sametmax.com/les-expressions-rationnelles-en-python-parfois-overkill/#comment-12754 Thu, 08 Aug 2013 14:18:07 +0000 http://sametmax.com/?p=7042#comment-12754 C’est vrai qu’un tampon “Gros malin!” ou “Tu te crois drôle” pourrait bien servir, surtout pour les deux “zigotos” qui ont cherché à savoir qui avait la soluc’ la plus pourrie :)

]]>
By: roro http://sametmax.com/les-expressions-rationnelles-en-python-parfois-overkill/#comment-12716 Wed, 07 Aug 2013 22:26:31 +0000 http://sametmax.com/?p=7042#comment-12716 En tous cas, j’ai bien aimé l’altération de chaîne.
Y’a du potentiel….

]]>
By: Sam http://sametmax.com/les-expressions-rationnelles-en-python-parfois-overkill/#comment-12706 Wed, 07 Aug 2013 21:32:09 +0000 http://sametmax.com/?p=7042#comment-12706 @les gros malins : je n’ai pas de tampon approprié pour ce genre de comment.

@syl : oui. Et on peut mettre un pas négatif aussi…

]]>
By: Syl http://sametmax.com/les-expressions-rationnelles-en-python-parfois-overkill/#comment-12691 Wed, 07 Aug 2013 19:09:06 +0000 http://sametmax.com/?p=7042#comment-12691 Ai-je bien compris ce slice?
s[3:30:3]

Tu prend un caractère sur trois dans le slice [3:30]?

Si c’est ça, encore une découverte bien pratique!!
Merci les gars!

]]>
By: freakzoid http://sametmax.com/les-expressions-rationnelles-en-python-parfois-overkill/#comment-12685 Wed, 07 Aug 2013 17:10:58 +0000 http://sametmax.com/?p=7042#comment-12685 J’imagine leur tete quand ils vont lire ces coms
WTF

]]>
By: Etienne http://sametmax.com/les-expressions-rationnelles-en-python-parfois-overkill/#comment-12681 Wed, 07 Aug 2013 14:22:22 +0000 http://sametmax.com/?p=7042#comment-12681 Très juste. Le gros gros malin:

def startswith(start, string):
    return len(start) > 0 and string.find(start) == 0
]]>