<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.wiki.mohid.com/index.php?action=history&amp;feed=atom&amp;title=Code</id>
		<title>Code - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.wiki.mohid.com/index.php?action=history&amp;feed=atom&amp;title=Code"/>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Code&amp;action=history"/>
		<updated>2026-04-04T20:36:26Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Code&amp;diff=111&amp;oldid=prev</id>
		<title>Guillaume: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Code&amp;diff=111&amp;oldid=prev"/>
				<updated>2008-12-03T10:26:58Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 10:26, 3 December 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='en'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Guillaume</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Code&amp;diff=110&amp;oldid=prev</id>
		<title>89.180.146.64 at 01:10, 15 March 2008</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Code&amp;diff=110&amp;oldid=prev"/>
				<updated>2008-03-15T01:10:33Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This wiki extension allows to embed code with pretty-colors.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;lt;code&amp;amp;gt;[python,Y] ''insert python code here'' &amp;amp;lt;/code&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;[python,Y]&lt;br /&gt;
 #! /usr/bin/python&lt;br /&gt;
 &amp;quot;&amp;quot;&amp;quot; A python primer. pydoc, doctest and classes.&lt;br /&gt;
 &lt;br /&gt;
 Syntax:&lt;br /&gt;
  To generate man pages:&lt;br /&gt;
  &amp;gt; pydoc classtemplate&lt;br /&gt;
 &lt;br /&gt;
  To try all the tests in doctest (and execute the script):&lt;br /&gt;
  &amp;gt; python classtemplate.py -v&lt;br /&gt;
 &amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 #Class definition&lt;br /&gt;
 class Table:&lt;br /&gt;
         &amp;quot;&amp;quot;&amp;quot;Class Table.&lt;br /&gt;
 &lt;br /&gt;
         Doctest: here we insert python command lines inputs and outputs.&lt;br /&gt;
         &amp;gt;&amp;gt;&amp;gt; print Table.database&lt;br /&gt;
         http://access.com/db&lt;br /&gt;
         &amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
         #Data attributes here&lt;br /&gt;
         database='http://access.com/db'&lt;br /&gt;
 &lt;br /&gt;
         #Method attributes here&lt;br /&gt;
         def __init__(self,id,text):&lt;br /&gt;
                 &amp;quot;&amp;quot;&amp;quot;Initializes the id and textlabel data attributes.&lt;br /&gt;
 &lt;br /&gt;
                 Doctest: Testing more data attributes defined at construction time&lt;br /&gt;
                 &amp;gt;&amp;gt;&amp;gt; x = Table(1,'coucou')&lt;br /&gt;
                 &amp;gt;&amp;gt;&amp;gt; print x.id&lt;br /&gt;
                 1&lt;br /&gt;
                 &amp;gt;&amp;gt;&amp;gt; print x.textlabel&lt;br /&gt;
                coucou&lt;br /&gt;
                 &amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
                 self.id=id&lt;br /&gt;
                 self.textlabel=text&lt;br /&gt;
 &lt;br /&gt;
 #doctest -- &amp;quot;Debugging sucks :( Testing rocks :)&amp;quot;&lt;br /&gt;
 def _test():&lt;br /&gt;
         &amp;quot;&amp;quot;&amp;quot;Inline Doctest activated. Cool! :D&lt;br /&gt;
          This means that whenever the module is called in python&lt;br /&gt;
  &lt;br /&gt;
         &amp;gt; python thismodule.py -v&lt;br /&gt;
  &lt;br /&gt;
         the doctest function will try all the tests implemented in doctest.&lt;br /&gt;
         &amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
         import doctest&lt;br /&gt;
         doctest.testmod()&lt;br /&gt;
 &lt;br /&gt;
 if __name__ == &amp;quot;__main__&amp;quot;:&lt;br /&gt;
         _test()&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Wiki]]&lt;br /&gt;
[[Category:Extension]]&lt;/div&gt;</summary>
		<author><name>89.180.146.64</name></author>	</entry>

	</feed>
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  ga('create', 'UA-56589921-5', 'auto');
  ga('send', 'pageview');
</script>