Dies ist die Support Website des Buches:: Das Python Praxisbuch Der große Profi-Leitfaden für Programmierer Farid Hajji Addison Wesley / Pearson Education ISBN 978-3-8273-2543-3 (Sep 2008), 1298 Seiten. ********************* 2. Die Python-Shell ********************* Die Qual der (Python-Shell-) Wahl ================================= Python-Shells unter Unix ------------------------ URLs: * `Emacs Homepage `_ * `Emacs python-mode `_ * `IPython Homepage `_ * `Die im Buch verwendete Version von IPython `_ (mit ``easy_install ipython`` automatisch geladen) Um den Python-Mode von Emacs zu nutzen, tragen Sie Folgendes in Ihre :file:`~/.emacs` Datei ein. .. code-block:: common-lisp ;; Add python-mode (autoload 'python-mode "python-mode" "Python editing mode." t) (setq auto-mode-alist (cons '("\\.py$" . python-mode) auto-mode-alist)) (add-hook 'python-mode-hook 'turn-on-font-lock) Screenshots: * `Python-Shell innerhalb der Emacs-Shell `_ * `Python-Dateien im Emacs laden `_ Python-Shells unter Windows --------------------------- URLs: * `IPython benötigt pyreadline unter Windows `_ (benutzen Sie den Binary Installer von ``pyreadline``). * `Der Notepad++ Editor `_ (mit Syntax-Highlighting, nicht nur für Python nützlich!) Screenshots: * `Python-Shell in der DOS-Box `_ * `Python-Shell in IDLE `_ * `Python-Datei in IDLE editieren `_ * `Der Notepad++ Editor sieht so aus `_ Ein Taschenrechner ================== .. literalinclude:: ../att/pythonshell/demoshell.py `demoshell.py `_ Auf Erkundungstour ================== Introspektion mit dir, type und __doc__ --------------------------------------- Das Hilfesystem help -------------------- Screenshots: * `Die Hilfedatei Python25.chm `_ Das Dokumentationstool pydoc ---------------------------- Screenshots: * `Windows-Port freigeben für pydoc -p `_ * `Eine Liste aller (installierter) Module `_ Zusammenfassung ===============