08:53 <Hobbestigrou> salut
08:59 <edegoute> bonjour
09:27 <jon1012> (a propos de micro python : http://hackaday.com/2013/11/27/interview-with-damien-george-creator-of-the-micro-python-project/ )
09:36 <haypo> feth: extrait de l'interview ^^ "I also spent the last year and a half building, with a friend, the website paperscape.org, which maps the scientific landscape of research papers. The longest part of this project was implementing (in Python) a LaTeX/TeX parser which could automatically extract bibliographic information to work out how papers are connected."
09:36 <haypo> un parseur LaTeX ! le ouf :)
09:37 <feth> c'est génial, il ne manque que Latex2rst !
09:37 <haypo> jon1012: intéressante l'interview, le code est développé sur github ou truc du genre ?
09:37 <jon1012> haypo, pas la moindre idée
09:39 <haypo> parfois, y'a quelques projest qui sortent de nul part
09:39 <jon1012> ouais
09:39 <haypo> genre un mec un mec qui a écrit un OS complet en assembleur, en partant du noyau jusqu'à l'interface graphique, en passant par un compilateur
09:39 <haypo> le tout codé en ... assembleur
09:39 <haypo> hu?
09:40 <haypo> je trouve ça dingue d'encore faire ça à l'ère d'internet et du travail collaboratif
09:43 <benoitc> feth: pourquoi quelqu'en voudrait convertir une syntaxe de publication riche en un mode degrade comme le rst?
09:44 <benoitc> haypo: mmm ? pq ? on a plus droit a coder de maniere individuelle et pour son propre plaisir?
09:45 <haypo> benoitc: tout à fait, c'est interdit
09:49 <jon1012> "The next part, the parser, was tricky to write because I wanted it to be as small as possible (in code) and use as little RAM as I could get away with. I ended up encoding the grammar in a static data structure (using some C preprocessor magic) and writing a single 320-line non-recursive function to interpret this table on the fly and parse the Python source."
09:49 <jon1012> mmh, du bon code lisible
17:36 <yota> os.path.dirname(__file__)
17:36 <yota> quel est l'eauivalent en py3 ?
17:37 <haypo> yota: ouh là là
17:37 <haypo> yota: c'est très compliqué
17:37 <haypo> yota: os.path.dirname(__file__)
17:37 <yota> exec __code__
17:37 <yota> SyntaxError: invalid syntax
17:38 <haypo> yota: tu testes quelle version de python ? CPython ?
17:38 <yota> ou alors c'est pas ca
17:38 <yota> pe pas al bonne ligne
17:38 <haypo> bah la réponse est dans la question, exec __code__
17:39 <haypo> exec n'est plus un statement mais une fonction : exec(__code__)
17:39 <yota> ah non c'est ps ca
17:39 <yota> vi voila
17:39 <haypo> le truc pratique est que la syntaxe exec(code) est aussi acceptée dans python 2 ;) comme python("bla")
17:50 <gawel> y a plus execfile par contre
17:51 <gawel> juste pour te pourrir la vie
17:51 <haypo> gawel: non, lé pati
17:51 <gawel> j'ai joué avec asyncio sinon. c'est mignon
17:52 <haypo> de mémoire, tu peux implémenter execfile avec : with tokenize.open(filename) as f: code = f.read(); exec(code)
17:52 <haypo> hum, ça marche sûrement en ouvrant le fichier en mode binaire (octets)
17:52 <gawel> pourquoi tokenize ?
17:53 <haypo> gawel: pour lire le code source en unicode avec le bon encodage
17:53 <gawel> ça gère le multi encodage ?
17:53 <gawel> ou ca utilise le header python ?
17:54 <gawel> ouais ok c'est spécifique à python
17:56 <gawel> yota: a mon avis dans ton cas ça marchera pas de toute facon
17:56 <gawel> exec ne fonctionne qu'avec du python, pas du go
18:03 <NelleV> gawel: tu vas chez tinyclues ou a paris data geek ?
18:05 <gawel> tinyclues, j'ai un papier à signer
18:07 <gawel> et c'est à peu prèt les seul occasion qu'on a de faire des AG du FLD
18:07 <NelleV> ok, du coup j'imprime la paperasse :)
18:08 <gawel> de nos jours on dit "je tue un arbre"
18:10 <NelleV> j'apporte le bois mort
18:10 <gawel> voila
18:10 <feth> et quand on achète un appareil électronique "je m'ingère dans la politique intérieure d'un pays africain et je soutiens les exportations boliviennes"
18:12 <gawel> allez, un peu de skate, pour changer http://www.thrashermagazine.com/articles/videos/dc-presents-nyjah-huston-fade-to-black/
18:18 <rguillebert> feth, kamoulox ?
18:51 <gawel> tu te casse à quelle heure, NelleV ?
22:24 <alain_afpy> - membres: FAILURE 502 Proxy Error
22:26 <alain_afpy> - membres: FIXED