<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Python on Pesches Schlauch</title>
    <link>https://pesche.schlau.ch/tags/python/</link>
    <description>Recent content in Python on Pesches Schlauch</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Fri, 10 Dec 2004 13:08:31 +0100</lastBuildDate>
    <atom:link href="https://pesche.schlau.ch/tags/python/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>El Niño Drawing</title>
      <link>https://pesche.schlau.ch/2004/12/10/el-ni%C3%B1o-drawing/</link>
      <pubDate>Fri, 10 Dec 2004 13:08:31 +0100</pubDate>
      <guid>https://pesche.schlau.ch/2004/12/10/el-ni%C3%B1o-drawing/</guid>
      <description>&lt;p&gt;Every year after christmas the &lt;a href=&#34;http://verein-oskar.ch/index3.htm&#34;&gt;El Niño Cup&lt;/a&gt; takes place. It is a tournament where the result is less important than exercising and having fun. There is a team day, where every team plays Volleyball, Basketball and Unihockey, and a single day, where the disciplines are Badminton, Table Tennis and Archery.&lt;/p&gt;&#xA;&lt;p&gt;Last year I wrote a program to ease the drawing. It is a fairly complex problem:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Every participant must have six matches, two for every discipline, against members of its category (men, women, mixed...)&lt;/li&gt;&#xA;&lt;li&gt;There should be not two matches against the same adversary (except if the category has less than 7 players)&lt;/li&gt;&#xA;&lt;li&gt;Between two matches there should be a break of at least the duration of one match&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;This year I enhanced the program some more. The amount of tweaking the program output by hand is now almost zero. Just some games remained to be exchanged to satisfy the at-least-one-break condition.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Python für Kids auf dem Macintosh</title>
      <link>https://pesche.schlau.ch/2004/10/05/python-fuer-kids-auf-dem-macintosh/</link>
      <pubDate>Tue, 05 Oct 2004 20:08:13 +0200</pubDate>
      <guid>https://pesche.schlau.ch/2004/10/05/python-fuer-kids-auf-dem-macintosh/</guid>
      <description>&lt;p&gt;Im Gegensatz zu PCs ist bei OS X Python bereits vorinstalliert. Leider fehlt jedoch ausgerechnet IDLE, so dass trotzdem noch etwas zu tun bleibt.&lt;/p&gt;&#xA;&lt;h2 id=&#34;installationsanleitung-für-idle-von-pythonmac-faq-abgekupfert&#34;&gt;Installationsanleitung für IDLE (von &lt;a href=&#34;http://www.pythonmac.org/wiki/FAQ&#34;&gt;PythonMac FAQ&lt;/a&gt; abgekupfert)&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;http://tcltkaqua.sourceforge.net/&#34;&gt;Tcl/Tk Aqua&lt;/a&gt; herunterladen und installieren&lt;/li&gt;&#xA;&lt;li&gt;MacPython herunterladen und installieren (für OS X 10.3 sind das die &lt;a href=&#34;http://homepages.cwi.nl/~jack/macpython/download.html&#34;&gt;MacPython Panther Addons&lt;/a&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Das Programm &lt;strong&gt;PackageManager&lt;/strong&gt; im Ordner &lt;strong&gt;/Programme/MacPython-2.3&lt;/strong&gt; starten&lt;/li&gt;&#xA;&lt;li&gt;Im PackageManager &lt;code&gt;_tkinter&lt;/code&gt; installieren&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;neue-division&#34;&gt;&amp;quot;Neue&amp;quot; Division&lt;/h2&gt;&#xA;&lt;p&gt;Damit IDLE sich so benimmt wie im Buch beschrieben (vgl. Anhang D im Buch), muss noch eine Datei leicht verändert werden.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Python IDLE with &#34;new&#34; division on OS X</title>
      <link>https://pesche.schlau.ch/2004/10/05/python-idle-with-new-division-on-os-x/</link>
      <pubDate>Tue, 05 Oct 2004 20:08:13 +0200</pubDate>
      <guid>https://pesche.schlau.ch/2004/10/05/python-idle-with-new-division-on-os-x/</guid>
      <description>&lt;p&gt;(Deutscher Text siehe separater &lt;a href=&#34;https://pesche.schlau.ch/2004/10/05/python-fuer-kids-auf-dem-macintosh/&#34;&gt;Artikel&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;p&gt;K got the book &lt;a href=&#34;http://www.python4kids.net&#34;&gt;Python für Kids&lt;/a&gt;. To enable him to use the book on OS X, I wanted to setup the Python environment on the Mac as on the PC: Install IDLE and, to hide the differences between integer and floating point math, configure to use the new division.&lt;/p&gt;&#xA;&lt;p&gt;Installing &lt;a href=&#34;http://www.python.org/idle/&#34;&gt;IDLE&lt;/a&gt; on OS X 10.3 is easy with &lt;a href=&#34;http://homepages.cwi.nl/~jack/macpython/&#34;&gt;MacPython&lt;/a&gt;. IDLE comes as bundle, ready to be launched with the mouse from the Finder. But for using the new division without the need for &lt;code&gt;from __future__ import division&lt;/code&gt;, IDLE must be started with &lt;a href=&#34;http://mail.python.org/pipermail/edu-sig/2003-September/003150.html&#34;&gt;options&lt;/a&gt;. How to embed these options in the IDLE.app bundle?&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
