00:25 <alain_afpy> - www: FAILURE 503 Service Temporarily Unavailable
00:27 <alain_afpy> - www: FIXED
06:26 <alain_afpy> - www: FAILURE 503 Service Temporarily Unavailable
06:29 <alain_afpy> - www: FIXED
08:29 <No`> salut l'afpy
08:45 <gawel> matin
08:48 <feth> Matin !
09:41 <gawel> yota: ping matin
09:41 <gawel> t'es par la, malgrès tes 2 jours d'idle ?
10:05 <afpy_user> Bonjour
10:05 <gawel> salut
10:05 <afpy_user> je suis nouveau au monde de dev
10:06 <afpy_user> et j'aimerai debuter avec pyt
10:06 <gawel> fais toi plaisir
10:06 <afpy_user> Merci gawel
10:07 <gawel> mais de rien
10:07 <afpy_user> es ce que il faut passer par Algo ou je peu demarrer avec pyt?
10:08 <gawel> python est très proche de l'algo
10:09 <afpy_user> ok c bien
10:10 <afpy_user> vous me conseiler que je commance par quel cour
10:11 <gawel> http://pythonbooks.revolunet.com/
10:11 <gawel> fais ton choix
10:11 <afpy_user> Merci
10:12 <afpy_user> non vfr?
10:13 <afpy_user> j trouvé 1 vfr
10:13 <gawel> je ne comprends pas la question
10:14 <tshirtman> y'a quelques bouquins python en français, mais comme d'hab la majeur partie des resources est en anglais
10:14 <afpy_user> ok
10:15 <afpy_user> mais just pour demarrage en fr
10:15 <tshirtman> ça rends bien service de lire l'anglais sans problèmes, ça rends bien service pour un programmeur
10:15 <afpy_user> bien sur
10:15 <afpy_user> no problem freind
10:16 <afpy_user> i can start with english book
10:16 <afpy_user> :)
10:16 <tshirtman> y'a le swinnen qui est en français dans la liste
10:16 <afpy_user> i found this link http://www.dsimb.inserm.fr/~fuchs/python/python-node1.html
10:16 <tshirtman> mais si je me souvient bien, je l'avais pas trop aimé
10:17 <afpy_user> il est bien?
10:17 <afpy_user> ok
10:17 <tshirtman> le lien que tu donne est pour python2.5, c'est un peu vieux
10:18 <tshirtman> pas forcément génant pour apprendre le language, mais il y a pas mal de nouveautés bien utiles depuis
10:18 <tshirtman> apprends soit python 2.7, soit python 3.4
10:18 <tshirtman> 3.3 pardon
10:18 <afpy_user> http://inforef.be/swi/download/apprendre_python3_5.pdf
10:18 <afpy_user> v3
10:19 <afpy_user> 473 pages
10:21 <afpy_user> il faut lire tous
10:21 <tshirtman> non pas forcément
10:21 <afpy_user> pour commancer
10:21 <afpy_user> je veux un guide rapide si possible
10:21 <tshirtman> dans ce genre de bouquin y'a pas mal de gros morceaux de texte que tu peux survoler et revenir dessus plus tard si besoin
10:22 <afpy_user> il ce dernier je l'utilise comme dicstionnaire
10:22 <tshirtman> alors je dirais plus learnpythonthehardway.com
10:22 <tshirtman> ou .org, c'est pareil
10:24 <gawel> y a ça qui est marrant aussi: http://learnxinyminutes.com/docs/python/
10:42 <ounimed> Merci gawel pour ton aide
10:43 <ounimed> http://learnxinyminutes.com/docs/python/
10:43 <ounimed> il est bien
10:51 <obergix[work]> coin
12:00 <alain_afpy> - hg: FAILURE 503 Service Temporarily Unavailable
12:02 <alain_afpy> - hg: FIXED
12:25 <alain_afpy> - www: FAILURE 503 Service Temporarily Unavailable
12:27 <alain_afpy> - www: FIXED
16:55 <afpy_user> bonjours, y a quelqu'un ?
16:55 <tshirtman> toujours
16:55 <afpy_user> j'ai une question j'ai une solution mais je cherche la meilleure
16:56 <feth> je te souhaite de la trouver
16:56 <afpy_user> en gros je dois faire une chaine du style 0,0,0,1 sachant que le 1 se deplace en fonction d'une boucle for
16:56 <gawel> moi j'ai pas de question. sauf pour yota mais ce con idle comme une huitre perlière
16:56 <afpy_user> comment est ce que je peux faire vite et bien ?
16:57 <afpy_user> est ce que mon problème est compréhensible ?
16:58 <gawel> ','.join([str(i) for i in [0, 0, 0, 1]])
16:58 <afpy_user> ah oui j'avais pas pensé à ca ! merci beaucoup et bonne journée !
16:58 <gawel> ce fu bref, mais intense
16:59 <feth> afpy_user: from itertools import permutations
16:59 <feth> tuple(permutations((0, 0, 0, 0, 1), 5))
16:59 <feth> ah non
17:00 <feth> mais y a de ça
17:00 <afpy_user> du coup j'ai fait comme ça: ','.join([element = "1" for i, element in enumerate([0,0,0,0]) if i == x])
17:01 <afpy_user> sachant que x est la variable de ma bouche for
17:02 <gawel> ','.join([i == x and "1" or "0" for i in range(4)])
17:04 <tshirtman> voir ','.join(["1" if i == x else "0" for i in range(4)])
17:04 <gawel> chipotage!
17:04 <tshirtman> :P
17:07 <afpy_user> c'est mieux !
17:07 <afpy_user> merci :)
17:08 <afpy_user> mais ca marche pas ... le if doit être à la fin aparament
17:09 <gawel> héhé, c'est tshirtman qui dit de la merde
17:10 <gawel> hm non, ça marche
17:10 <feth> afpy_user: t'es sûr que tu veux travailler avec des strings ?
17:10 <feth> (c'est louche ta question)
17:10 <gawel> >>> x = 2
17:10 <gawel> >>> ','.join(["1" if i == x else "0" for i in range(4)])
17:10 <gawel> '0,0,1,0'
17:11 <gawel> t'es peut-être en python2.4
17:11 <tshirtman> le if a la fin c'est si on veux filtrer la liste
17:15 <afpy_user> enfaite j'utilise iron python, je comprend pas trop la différence et oui je suis sur que je veux quelque chose sous cette forme car j'insert cette chaine ensuite dans une autre chaine de caractère
17:16 <feth> ok
17:17 <tshirtman> essaye avec des parenthèses autour de l'expression peut être, si le parsing est différent
17:17 <tshirtman> ','.join([("1" if i == x else "0") for i in range(4)])
17:18 <tshirtman> sinon faut voir avec quelle version de python, iron python prétends être compatible
17:18 <tshirtman> mais j'espère qu'ils ont au moins 2.5 quand même, sinon ils sont grave à la bourre
17:19 <gawel> ma solution doit bien marcher
17:19 <afpy_user> ça change rien les ( ) il me dit "if unexpected"
17:20 <afpy_user> je veux bien le croire mais ... pas chez moi
17:21 <tshirtman> hm, donc iron python ça marche pas…
17:21 <tshirtman> :D
17:21 <afpy_user> j'ai fait un copié collé dans idle et la ça marche
17:21 <feth> afpy_user: import sys; print(sys.version)
17:21 <afpy_user> et aparament j'ai la version 3.3
17:21 <feth> classe :)
17:22 <afpy_user> 3.3.2 pour être précis même
17:22 <tshirtman> oui mais idle c'est cpython non? pas iron python?
17:23 <afpy_user> exact
17:24 <afpy_user> donc c'est pas une faute de frappe c'est ça que je sous entendais
17:24 <tshirtman> la question c'est quelle version de python iron python supporte
17:25 <afpy_user> d'ailleurs quelqu'un peut m'expliquer la différence entre python et iron python ?
17:25 <tshirtman> python est an language, iron python est une implémentation de ce language, réalisé en c#, sur la platforme .net
17:25 <tshirtman> cpython est l'implémentation historique de python, réalisé en c
17:26 <tshirtman> réalisée*
17:26 <afpy_user> en gros si j'ai envie d'utiliser une fonction du c# dans mon script iron python ca devrai marcher ?
17:27 <afpy_user> si je comprend bien ?
17:28 <gawel> La différence entre ironpython et python est la même qu'entre ironman et man. L'un des deux est surréaliste
17:29 <tshirtman> il me semble que le but est en effet d'avoir accès a l'api .net depuis iron python
17:29 <gawel> Je te laisse deviner lequel
17:29 <tshirtman> haha
17:29 <afpy_user> bon sur ceux je vous dis merci et bonne journée encore !
17:29 <tshirtman> ce*
19:41 <alexis> Paris.py, le 22 Juillet dans les locaux de Mozilla Paris http://www.meetup.com/Paris-py-Python-Django-friends/events/127362422/?a=co1.1_grp&rv=co1.1
19:46 <feth> alexis: yo !
19:46 <feth> tu vas aux remelele ?
19:47 <feth> et merci de l'annonce !
20:00 <alain_afpy> - hg: FAILURE 503 Service Temporarily Unavailable
20:07 <alain_afpy> - www: FAILURE 502 Proxy Error
20:09 <alain_afpy> - www: FAILURE 502 Proxy Error
20:11 <alain_afpy> - www: FAILURE 502 Proxy Error
20:12 <alain_afpy> - membres: FAILURE 502 Proxy Error
20:12 <alain_afpy> - hg: FIXED
20:14 <alain_afpy> - membres: FAILURE 502 Proxy Error
20:16 <alain_afpy> - membres: FAILURE 502 Proxy Error
21:36 <bmispelon> alain_afpy: restart plone
21:36 <bmispelon> kthxbye
21:36 <alain_afpy> - membres: FIXED
21:36 <alain_afpy> - membres: FIXED
21:36 <alain_afpy> instance: . . .
21:36 <alain_afpy> daemon process restarted, pid=7493
21:39 <alain_afpy> - www: FIXED