<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://filyb.info/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>filyb.info - Tag - Python</title>
  <link>http://filyb.info/</link>
  <atom:link href="http://filyb.info/feed/tag/Python/rss2" rel="self" type="application/rss+xml"/>
  <description>filyb.info est le carnet web personnel de Florian Birée, alias Thesa.</description>
  <language>fr</language>
  <pubDate>Mon, 01 Dec 2008 21:10:36 +0100</pubDate>
  <copyright>Copyright © Florian Birée, 2005-2008.</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Présentation de Crunchy à Toulibre le 10 septembre 2008</title>
    <link>http://filyb.info/post/2008/09/06/Presentation-de-Crunchy-a-Toulibre-le-10-septembre-2008</link>
    <guid isPermaLink="false">urn:md5:ef4ff834d4fb320ed9870b573c0eb77c</guid>
    <pubDate>Sat, 06 Sep 2008 22:06:00 +0200</pubDate>
    <dc:creator>Thesa</dc:creator>
        <category>Informatique</category>
        <category>Croquant</category><category>Crunchy</category><category>Google</category><category>Informatique</category><category>MoinMoin</category><category>Programmation</category><category>Python</category><category>SoC2008</category><category>Toulibre</category><category>Toulouse</category>    
    <description>    &lt;p&gt;Je présenterai &lt;a href=&quot;http://code.google.com/p/crunchy/&quot; hreflang=&quot;en&quot; title=&quot;Site du projet Crunchy&quot;&gt;Crunchy&lt;/a&gt; à &lt;a href=&quot;http://toulibre.org/&quot; hreflang=&quot;fr&quot; title=&quot;Site du GUL Toulibre&quot;&gt;Toulibre&lt;/a&gt; (Toulouse), le dix septembre (mercredi prochain).&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://code.google.com/p/crunchy/&quot; hreflang=&quot;en&quot; title=&quot;Site du projet Crunchy&quot;&gt;Crunchy&lt;/a&gt;, c&amp;#8217;est le logiciel qui permet d&amp;#8217;intégrer l&amp;#8217;interpréteur &lt;a href=&quot;http://python.org/&quot; hreflang=&quot;en&quot; title=&quot;Site du langage de programmation Python&quot;&gt;Python&lt;/a&gt; dans un tutoriel &lt;acronym title=&quot;Hypertext Markup Language&quot;&gt;HTML&lt;/acronym&gt;, et sur lequel j&amp;#8217;ai réalisé mon &lt;a href=&quot;http://filyb.info/tag/SoC2008&quot;&gt;Google Summer of Code&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Cette présentation sera suivit par une autre de &lt;a href=&quot;http://thomas.enix.org/&quot; hreflang=&quot;fr&quot; title=&quot;Blog de Thomas Petazzoni&quot;&gt;Thomas Petazzoni&lt;/a&gt;, sur &lt;a href=&quot;http://wiki.openmoko.org/wiki/Main_Page&quot; hreflang=&quot;en&quot; title=&quot;Site du projet Openmoko&quot;&gt;Openmoko&lt;/a&gt;, le système libre pour téléphones portables. Thomas possède un modèle de Neo FreeRunner, le premier téléphone qui tourne sous ce système.&lt;/p&gt;</description>
    
    
    
          <comments>http://filyb.info/post/2008/09/06/Presentation-de-Crunchy-a-Toulibre-le-10-septembre-2008#comment-form</comments>
      <wfw:comment>http://filyb.info/post/2008/09/06/Presentation-de-Crunchy-a-Toulibre-le-10-septembre-2008#comment-form</wfw:comment>
      <wfw:commentRss>http://filyb.info/feed/atom/comments/949</wfw:commentRss>
      </item>
    
  <item>
    <title>Et un second pour la route</title>
    <link>http://filyb.info/post/2008/09/02/Et-un-second-pour-la-route</link>
    <guid isPermaLink="false">urn:md5:621887742800a83e635c31e88f69b058</guid>
    <pubDate>Tue, 02 Sep 2008 01:11:00 +0200</pubDate>
    <dc:creator>Thesa</dc:creator>
        <category>En vrac</category>
        <category>Blog</category><category>Django</category><category>Photo</category><category>Python</category><category>Écriture</category>    
    <description>    &lt;p&gt;J&amp;#8217;ai écris un billet en août, v&amp;#8217;là que j&amp;#8217;en fais deux le 1er septembre. (Ah non, mince, on est déjà le deux.)&lt;/p&gt;

&lt;p&gt;Ceci pour signaler (ça le mérite) que &lt;a href=&quot;http://gillesfabio.com/&quot; hreflang=&quot;fr&quot; title=&quot;Site de Gilles Fabio&quot;&gt;Gilles Fabio&lt;/a&gt; a ouvert un nouveau blog, qui roule grâce à &lt;a href=&quot;http://django-fr.org/&quot; hreflang=&quot;fr&quot; title=&quot;Site francophone de Django&quot;&gt;Django&lt;/a&gt; avec une application qu&amp;#8217;il a codé pour l&amp;#8217;occasion, &lt;a href=&quot;https://launchpad.net/cockatoo&quot; hreflang=&quot;en&quot; title=&quot;Site du projet Cockatoo&quot;&gt;Cockatoo&lt;/a&gt;. Bref, ça promet d&amp;#8217;être que du bon, jetez-vous sur le fil de syndication.&lt;/p&gt;

&lt;p&gt;Et sinon&amp;#8230; des photos &lt;a href=&quot;http://filyb.info/gallery/2008/09/02/Some-days-in-Normandie&quot;&gt;de Normandie&lt;/a&gt;, ainsi que dans &lt;a href=&quot;http://filyb.info/gallery/2008/06/19/Carnet-photos&quot;&gt;le carnet photos&lt;/a&gt;.&lt;/p&gt;

&lt;blockquote&gt;&lt;pre&gt;
$ fortune
Le café est un breuvage qui fait dormir,
quand on n'en prend pas. 
	-+- Alphonse Allais -+-
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Maintenant, il est temps d&amp;#8217;aller écrire.&lt;/p&gt;</description>
    
    
    
          <comments>http://filyb.info/post/2008/09/02/Et-un-second-pour-la-route#comment-form</comments>
      <wfw:comment>http://filyb.info/post/2008/09/02/Et-un-second-pour-la-route#comment-form</wfw:comment>
      <wfw:commentRss>http://filyb.info/feed/atom/comments/946</wfw:commentRss>
      </item>
    
  <item>
    <title>SoC 2008: Croquant 1.0</title>
    <link>http://filyb.info/post/2008/07/09/SoC-2008%3A-Croquant-10</link>
    <guid isPermaLink="false">urn:md5:1220d7b55ef7574061e63dda02ce72e5</guid>
    <pubDate>Wed, 09 Jul 2008 00:44:00 +0200</pubDate>
    <dc:creator>Thesa</dc:creator>
        <category>Informatique</category>
        <category>Croquant</category><category>Crunchy</category><category>Google</category><category>Informatique</category><category>MoinMoin</category><category>Programmation</category><category>Python</category><category>SoC2008</category>    
    <description>    &lt;p&gt;I'm proud to announce the release of &lt;a href=&quot;http://code.google.com/p/croquant/&quot; hreflang=&quot;en&quot; title=&quot;Croquant project&quot;&gt;Croquant 1.0&lt;/a&gt;!&lt;/p&gt;

&lt;p&gt;This is the first release of Croquant, the set of &lt;a href=&quot;http://moinmo.in/&quot; hreflang=&quot;en&quot; title=&quot;MoinMoin project&quot;&gt;MoinMoin&lt;/a&gt; plugins for an integration with &lt;a href=&quot;http://code.google.com/p/crunchy/&quot; hreflang=&quot;en&quot; title=&quot;Crunchy project&quot;&gt;Crunchy&lt;/a&gt;. Right now, Croquant consists in:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;A parser to embed python code, with &lt;acronym title=&quot;Very Little Additional Markup&quot;&gt;VLAM&lt;/acronym&gt;, to add interpreters, editors, doctests, etc in Crunchy&lt;/li&gt;
 &lt;li&gt;Three macros to add some forms and links in Crunchy&lt;/li&gt;
 &lt;li&gt;A MoinMoin theme, which looks like &lt;a href=&quot;http://python.org/&quot; hreflang=&quot;en&quot; title=&quot;Python project&quot;&gt;python.org&lt;/a&gt; and is designed to be used with Crunchy (by example, the edition link in Crunchy will open the edition page outside Crunchy). An option can force the theme to behave exactly like the one of &lt;a href=&quot;http://wiki.python.org/&quot; hreflang=&quot;en&quot; title=&quot;Python wiki&quot;&gt;the Python wiki&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can already &lt;a href=&quot;http://code.google.com/p/croquant/downloads/list&quot; hreflang=&quot;en&quot; title=&quot;Downloads for Croquant&quot;&gt;download Croquant 1.0&lt;/a&gt;.&lt;/p&gt;</description>
    
    
    
          <comments>http://filyb.info/post/2008/07/09/SoC-2008%3A-Croquant-10#comment-form</comments>
      <wfw:comment>http://filyb.info/post/2008/07/09/SoC-2008%3A-Croquant-10#comment-form</wfw:comment>
      <wfw:commentRss>http://filyb.info/feed/atom/comments/839</wfw:commentRss>
      </item>
    
  <item>
    <title>Astuce python : de l'autocomplétion dans l'interpréteur</title>
    <link>http://filyb.info/post/2008/06/26/Astuce-python-%3A-de-l-autocompletion-dans-l-interpreteur</link>
    <guid isPermaLink="false">urn:md5:43830c51f843dc776c44c5d68c67a8ae</guid>
    <pubDate>Thu, 26 Jun 2008 22:45:00 +0200</pubDate>
    <dc:creator>Thesa</dc:creator>
        <category>Informatique</category>
        <category>Astuce</category><category>Informatique</category><category>Python</category>    
    <description>    &lt;p&gt;N'avez-vous jamais rêvé de pouvoir obtenir d'une simple tabulation la liste des méthodes d'une classe&amp;nbsp;? De ne pas avoir à réécrire cette variable au nom tellement explicite qu'il en est trop long&amp;nbsp;? Heureusement, il est possible d'activer une autocomplétion très efficace dans notre interpréteur préféré &amp;nbsp;! (Comment ai-je pu passer à côté jusqu'à aujourd'hui&amp;nbsp;?)&lt;/p&gt;

&lt;p&gt;Cette astuce se base sur l'utilisation de &lt;acronym title=&quot;GNU's Not Unix&quot;&gt;GNU&lt;/acronym&gt; readline, et ne fonctionne donc pas sous Microsoft Windows.&lt;/p&gt;

&lt;p&gt;Pour la mettre en place, il suffit de créer un fichier, nommé par exemple &lt;var&gt;~/.pythonrc&lt;/var&gt; qui contiendra des commandes exécutées au démarrage de l'interpréteur (uniquement en mode interactif), et d'y insérer le contenu suivant (provenant de &lt;a href=&quot;http://docs.python.org/lib/module-rlcompleter.html&quot; hreflang=&quot;en&quot; title=&quot;Documentation Python&quot;&gt;la documentation du module rlompleter&lt;/a&gt;)&amp;nbsp;:&lt;/p&gt;

&lt;p&gt;(edit&amp;nbsp;: voici une version modifiée pour permettre en plus d'indenter le code avec quatre espaces, &lt;a href=&quot;http://filyb.info/post/2008/06/26/#c35390&quot;&gt;source en commentaire&lt;/a&gt;.)&lt;/p&gt;

&lt;pre&gt;
try:
    import readline
except ImportError:
    print &quot;Module readline not available.&quot;
else:
    import rlcompleter

    class TabCompleter(rlcompleter.Completer):
        &quot;&quot;&quot;Completer that supports indenting&quot;&quot;&quot;
        def complete(self, text, state):
            if not text:
                return ('    ', None)[state]
            else:
                return rlcompleter.Completer.complete(self, text, state)
    readline.set_completer(TabCompleter().complete)
    readline.parse_and_bind(&quot;tab: complete&quot;)
&lt;/pre&gt;

&lt;p&gt;Il faut ensuite expliquer à l'interpréteur python de lire ce fichier à son démarrage. Cela se fait en définissant la variable d'environnement &lt;var&gt;PYTHONSTARTUP&lt;/var&gt;, par exemple en insérant dans le fichier &lt;var&gt;~/.bashrc&lt;/var&gt; la ligne suivante&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
export PYTHONSTARTUP=&quot;$HOME/.pythonrc&quot;
&lt;/pre&gt;

&lt;p&gt;Relancez bash, ouvrez python, et appréciez&amp;nbsp;!&lt;/p&gt;</description>
    
    
    
          <comments>http://filyb.info/post/2008/06/26/Astuce-python-%3A-de-l-autocompletion-dans-l-interpreteur#comment-form</comments>
      <wfw:comment>http://filyb.info/post/2008/06/26/Astuce-python-%3A-de-l-autocompletion-dans-l-interpreteur#comment-form</wfw:comment>
      <wfw:commentRss>http://filyb.info/feed/atom/comments/827</wfw:commentRss>
      </item>
    
  <item>
    <title>SoC 2008: the Croquant project</title>
    <link>http://filyb.info/post/2008/06/11/SoC-2008%3A-the-Croquant-project</link>
    <guid isPermaLink="false">urn:md5:c920a27f4f42a791de968183369f341c</guid>
    <pubDate>Wed, 11 Jun 2008 16:16:00 +0200</pubDate>
    <dc:creator>Thesa</dc:creator>
        <category>Informatique</category>
        <category>Croquant</category><category>Crunchy</category><category>Google</category><category>Informatique</category><category>MoinMoin</category><category>Programmation</category><category>Python</category><category>SoC2008</category>    
    <description>    &lt;p&gt;I'm proud to announce the birth of Croquant&amp;nbsp;!&lt;/p&gt;

&lt;p&gt;Croquant is a set of &lt;a href=&quot;http://moinmo.in/&quot; hreflang=&quot;en&quot; title=&quot;MoinMoin website&quot;&gt;MoinMoin&lt;/a&gt; plugins (well... just one for the moment), and aims to allow the writing of &lt;a href=&quot;http://code.google.com/p/crunchy/&quot; hreflang=&quot;en&quot; title=&quot;Crunchy website&quot;&gt;Crunchy&lt;/a&gt; tutorials directly from the wiki.&lt;/p&gt;

&lt;p&gt;From &lt;a href=&quot;http://code.google.com/p/croquant/&quot; hreflang=&quot;en&quot; title=&quot;Croquant website&quot;&gt;the Croquant website&lt;/a&gt;, you can &lt;a href=&quot;http://code.google.com/p/croquant/source/browse/trunk/README&quot; hreflang=&quot;en&quot; title=&quot;The README&quot;&gt;the documentation (okay, it's just a ReadMe)&lt;/a&gt;, and &lt;a href=&quot;http://code.google.com/p/croquant/source/checkout&quot; hreflang=&quot;en&quot; title=&quot;Instruction to get the code through svn&quot;&gt;get the code, using svn&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;And you can see Croquant in action, thanks to the screencast of André Roberge: &lt;a href=&quot;http://showmedo.com/videos/video?name=1430030&amp;amp;fromSeriesID=143&quot; hreflang=&quot;en&quot; title=&quot;Screencast on ShowMeDo&quot;&gt;&lt;cite&gt;Test Driven Learning (TDL) using Crunchy and MoinMoin&lt;/cite&gt;&lt;/a&gt;.&lt;/p&gt;</description>
    
    
    
          <comments>http://filyb.info/post/2008/06/11/SoC-2008%3A-the-Croquant-project#comment-form</comments>
      <wfw:comment>http://filyb.info/post/2008/06/11/SoC-2008%3A-the-Croquant-project#comment-form</wfw:comment>
      <wfw:commentRss>http://filyb.info/feed/atom/comments/771</wfw:commentRss>
      </item>
    
</channel>
</rss>