Klaus-G. Meyer schrieb:
http://www.python.org/peps/pep-0263.html. Ist natürlich eine Folge des ASCII-Encodings. Without such an encoding declaration, the default encoding used is 7-bit ASCII. Executing or importing modules that contain string literals with 8-bit characters and have no encoding declaration will result in a DeprecationWarning being signalled by Python 2.3; in 2.4 this will be a syntax error.
Habe den PEP vorliegen aber noch nicht genau analysiert. Doch was Du gerade schreibst, klingt doch logisch, und löst ein Teil der Probleme indem man das encoding vorgibt welches im Modul etc. verwendet wird. Damit hat das raten ein Ende; zumindest teilweise.
Damit dürfte so mancher Script spätestens mit 2.4 auch nicht mehr laufen, nur weil man mal einen Umlaut verwendet hatte.
Eine Zeile mehr und schon sollte das Script wieder laufen. Gruß Mike _______________________________________________ Python-de maillist - Python-de@python.net http://python.net/mailman/listinfo/python-de