Im Gegensatz zu PCs ist bei OS X Python bereits vorinstalliert. Leider fehlt jedoch ausgerechnet IDLE, so dass trotzdem noch etwas zu tun bleibt.

Installationsanleitung für IDLE (von PythonMac FAQ abgekupfert)

  • Tcl/Tk Aqua herunterladen und installieren
  • MacPython herunterladen und installieren (für OS X 10.3 sind das die MacPython Panther Addons)
  • Das Programm PackageManager im Ordner /Programme/MacPython-2.3 starten
  • Im PackageManager _tkinter installieren

“Neue” Division

Damit IDLE sich so benimmt wie im Buch beschrieben (vgl. Anhang D im Buch), muss noch eine Datei leicht verändert werden.

Read More ...

(Deutscher Text siehe separater Artikel)

K got the book Python für Kids. 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.

Installing IDLE on OS X 10.3 is easy with MacPython. IDLE comes as bundle, ready to be launched with the mouse from the Finder. But for using the new division without the need for from __future__ import division, IDLE must be started with options. How to embed these options in the IDLE.app bundle?

Read More ...

Peter Steiner

Software Developer and Opinionated Citizen

Switzerland