Ciao,<div> scritto la trama di Ritorno al futuro in Python :)</div><div>Ho cercato di usare più costrutti python possibile, e ho cercato di usarne il</div><div>Pyflakes non trova errori, quindi credo che si possa dire che compila.</div>
<div><br></div><div>Ecco:</div><div><br></div><div><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:12px;line-height:1.4em;font-family:'Bitstream Vera Sans Mono',Courier,monospace"><div class="line" id="LC1" style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em">
<span class="c" style="margin:0px;padding:0px;line-height:1.4em;color:rgb(153,153,136);font-style:italic"># Copyright: (C) Andrea Francia 2012</span></div><div class="line" id="LC2" style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em">
<span class="c" style="margin:0px;padding:0px;line-height:1.4em;color:rgb(153,153,136);font-style:italic"># License CC BY-SA <<a href="http://creativecommons.org/licenses/by-sa/3.0/">http://creativecommons.org/licenses/by-sa/3.0/</a>></span></div>
<div class="line" id="LC3" style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em"><br style="margin:0px;padding:0px;line-height:1.4em"></div><div class="line" id="LC4" style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em">
<span class="kn" style="margin:0px;padding:0px;line-height:1.4em">from</span> <span class="nn" style="margin:0px;padding:0px;line-height:1.4em;color:rgb(85,85,85)">__future__</span> <span class="kn" style="margin:0px;padding:0px;line-height:1.4em">import</span> <span class="n" style="margin:0px;padding:0px;line-height:1.4em">martin</span></div>
<div class="line" id="LC5" style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em"><br style="margin:0px;padding:0px;line-height:1.4em"></div><div class="line" id="LC6" style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em">
<span class="k" style="margin:0px;padding:0px;line-height:1.4em;font-weight:bold">try</span><span class="p" style="margin:0px;padding:0px;line-height:1.4em">:</span></div><div class="line" id="LC7" style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em">
<span class="n" style="margin:0px;padding:0px;line-height:1.4em">martin</span><span class="o" style="margin:0px;padding:0px;line-height:1.4em;font-weight:bold">.</span><span class="n" style="margin:0px;padding:0px;line-height:1.4em">dont_mess_the_continuum</span><span class="p" style="margin:0px;padding:0px;line-height:1.4em">()</span></div>
<div class="line" id="LC8" style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em"><span class="k" style="margin:0px;padding:0px;line-height:1.4em;font-weight:bold">except</span> <span class="n" style="margin:0px;padding:0px;line-height:1.4em">martin</span><span class="o" style="margin:0px;padding:0px;line-height:1.4em;font-weight:bold">.</span><span class="n" style="margin:0px;padding:0px;line-height:1.4em">ParentsDontFallInLoveError</span><span class="p" style="margin:0px;padding:0px;line-height:1.4em">,</span> <span class="n" style="margin:0px;padding:0px;line-height:1.4em">e</span><span class="p" style="margin:0px;padding:0px;line-height:1.4em">:</span></div>
<div class="line" id="LC9" style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em"> <span class="p" style="margin:0px;padding:0px;line-height:1.4em">(</span><span class="n" style="margin:0px;padding:0px;line-height:1.4em">george</span><span class="p" style="margin:0px;padding:0px;line-height:1.4em">,</span> <span class="n" style="margin:0px;padding:0px;line-height:1.4em">lorraine</span><span class="p" style="margin:0px;padding:0px;line-height:1.4em">)</span> <span class="o" style="margin:0px;padding:0px;line-height:1.4em;font-weight:bold">=</span> <span class="n" style="margin:0px;padding:0px;line-height:1.4em">e</span><span class="o" style="margin:0px;padding:0px;line-height:1.4em;font-weight:bold">.</span><span class="n" style="margin:0px;padding:0px;line-height:1.4em">parents</span><span class="p" style="margin:0px;padding:0px;line-height:1.4em">()</span></div>
<div class="line" id="LC10" style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em"><br style="margin:0px;padding:0px;line-height:1.4em"></div><div class="line" id="LC11" style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em">
<span class="k" style="margin:0px;padding:0px;line-height:1.4em;font-weight:bold">while</span> <span class="s" style="margin:0px;padding:0px;line-height:1.4em;color:rgb(221,17,68)">'Enchantment Under The Sea'</span><span class="p" style="margin:0px;padding:0px;line-height:1.4em">:</span></div>
<div class="line" id="LC12" style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em"> <span class="n" style="margin:0px;padding:0px;line-height:1.4em">martin</span><span class="o" style="margin:0px;padding:0px;line-height:1.4em;font-weight:bold">.</span><span class="n" style="margin:0px;padding:0px;line-height:1.4em">make_they_kiss</span><span class="p" style="margin:0px;padding:0px;line-height:1.4em">(</span><span class="n" style="margin:0px;padding:0px;line-height:1.4em">george</span><span class="p" style="margin:0px;padding:0px;line-height:1.4em">,</span> <span class="n" style="margin:0px;padding:0px;line-height:1.4em">lorraine</span><span class="p" style="margin:0px;padding:0px;line-height:1.4em">)</span></div>
<div class="line" id="LC13" style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em"><br style="margin:0px;padding:0px;line-height:1.4em"></div><div class="line" id="LC14" style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em">
<span class="k" style="margin:0px;padding:0px;line-height:1.4em;font-weight:bold">if</span> <span class="n" style="margin:0px;padding:0px;line-height:1.4em">george</span><span class="o" style="margin:0px;padding:0px;line-height:1.4em;font-weight:bold">.</span><span class="n" style="margin:0px;padding:0px;line-height:1.4em">beat_biff</span><span class="p" style="margin:0px;padding:0px;line-height:1.4em">():</span></div>
<div class="line" id="LC15" style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em"> <span class="k" style="margin:0px;padding:0px;line-height:1.4em;font-weight:bold">with</span> <span class="n" style="margin:0px;padding:0px;line-height:1.4em">help</span><span class="p" style="margin:0px;padding:0px;line-height:1.4em">(</span><span class="s" style="margin:0px;padding:0px;line-height:1.4em;color:rgb(221,17,68)">'of doc'</span><span class="p" style="margin:0px;padding:0px;line-height:1.4em">):</span></div>
<div class="line" id="LC16" style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em"> <span class="n" style="margin:0px;padding:0px;line-height:1.4em">martin</span><span class="o" style="margin:0px;padding:0px;line-height:1.4em;font-weight:bold">.</span><span class="n" style="margin:0px;padding:0px;line-height:1.4em">come_back_to</span><span class="p" style="margin:0px;padding:0px;line-height:1.4em">(</span><span class="s" style="margin:0px;padding:0px;line-height:1.4em;color:rgb(221,17,68)">"1985"</span><span class="p" style="margin:0px;padding:0px;line-height:1.4em">)</span></div>
<div class="line" id="LC17" style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em"> <span class="k" style="margin:0px;padding:0px;line-height:1.4em;font-weight:bold">else</span><span class="p" style="margin:0px;padding:0px;line-height:1.4em">:</span></div>
<div class="line" id="LC18" style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em"> <span class="k" style="margin:0px;padding:0px;line-height:1.4em;font-weight:bold">del</span> <span class="n" style="margin:0px;padding:0px;line-height:1.4em">martin</span> <span class="c" style="margin:0px;padding:0px;line-height:1.4em;color:rgb(153,153,136);font-style:italic"># from universe :-(</span></div>
<div class="line" id="LC19" style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em"><br style="margin:0px;padding:0px;line-height:1.4em"></div><div class="line" id="LC20" style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em">
<span class="k" style="margin:0px;padding:0px;line-height:1.4em;font-weight:bold">print</span> <span class="s" style="margin:0px;padding:0px;line-height:1.4em;color:rgb(221,17,68)">"end titles"</span></div></pre>
</div><div><br></div><div>Ciao</div><div><br></div><div>-- <br>Andrea Francia <a href="http://andreafrancia.it" target="_blank">http://andreafrancia.it</a><br>
</div>