Seite 1 von 1

sys gibts nicht fuer python < 2.3

Verfasst: Mittwoch 9. August 2006, 16:02
von Mati
Hallo,
gibt es die Variable sys fuer Python < 2.3 nicht?

wenn nicht wie kann ich nachhelfen?

Verfasst: Mittwoch 9. August 2006, 16:24
von Rebecca
Doch, normalerweise schon.

Code: Alles auswählen

Python 2.2 (#1, Feb 17 2003, 21:43:03) [C] on aix4
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.stdout.write ("asdf\n")
asdf
>>> 
sys ist ein Modul und muss natuerlich vorher importiert werden.

Verfasst: Mittwoch 9. August 2006, 16:35
von jAN
import sys?


EDIT: Ups... Rebecca war schneller