Python's 8-bit cleanness deprecated?
Bernhard Herzog
bh at intevation.de
Wed Feb 5 14:47:32 EST 2003
"Anders J. Munch" <andersjm at dancontrol.dk> writes:
> Source file encoding has direct consequences for program execution.
> The shebang and Emacs/vim encoding comments do not.
Some of them already do! The following code won't produce a syntax error
in CPython even though one would expect it to and it will display
correctly in Emacs:
# -*- tab-width:2 -*-
def g():
a = 1 # four spaces
b=2 # two tabs
IMO Python shouldn't do this, but for whatever reason it's there.
Bernhard
--
Intevation GmbH http://intevation.de/
Sketch http://sketch.sourceforge.net/
MapIt! http://www.mapit.de/
More information about the Python-list
mailing list