Python's biggest compromises

Andrew Dalke adalke at mindspring.com
Mon Aug 4 14:56:32 EDT 2003


Mel Wilson:
> (Idea for obfuscated Python:  a program that mixes spaces
> and tabs in the indenting so as to perform two or more
> distinct useful functions depending on the space-to-tab
> rate.  Bonus points for a program that undoes itself at
> different settings.)

That's just not possible because Python only has one setting
for a tag - 8 spaces.  At most there would appear to be a
difference if your editor was configured to display tabs as,
say, 4 spaces.  But Python's understanding of it would not
change.

                    Andrew
                    dalke at dalkescientific.com






More information about the Python-list mailing list