[Python-de] Systemkommandos in der Python-Shell
Gerhard Häring
haering_python at gmx.de
Sun Jul 14 17:38:49 EDT 2002
* Gerson Kurz <Gerson.Kurz at t-online.de> [2002-07-13 20:18 +0200]:
> Hallo,
>
> Ich hatte folgende Schnappsidee
>
> - schreibe ein modul, das z.B. eine Funktion ls() exportiert mit argumenten
> - mache ls() der Python-Shell als Befehl bekannt
> - eine Eingabe "ls -a" wird umgelenkt in ls("-a")
>
> Step 2 ist notwendig, damit "ls -a" nicht als "ls minus a" interpretiert
> wird.
>
> Machbar, und wenn ja - Lesetips ?
Nicht nur machbar, sondern auch schon fertig implementiert:
http://www-hep.colorado.edu/~fperez/ipython/
"IPython - An enhanced Interactive Python shell"
Gerhard
--
This sig powered by Python!
Außentemperatur in München: 19.8 °C Wind: 2.2 m/s
More information about the Python-de
mailing list