A Bug By Any Other Name ...

MRAB python at mrabarnett.plus.com
Fri Jul 17 16:57:46 EDT 2009


J. Cliff Dyer wrote:
> On Fri, 2009-07-17 at 20:53 +0000, Albert van der Horst wrote:
>> Because unlike in algol 68 in python whitespace is relevant,
>> we could get by with requiring whitespace:
>>         x= -q                       # okay
>>         a<b and -a<c and -b < -d    # okay
>>         8 ** -2                     # okay
> 
> This is actually quite thoroughly untrue.  In python, *indentation* is
> significant.  Whitespace (internal to a line) is not.
[snip]
Whitespace (internal to a line) _mostly_ is not. It's not allowed within
names, and it is needed in the second example above, before the 'and's.



More information about the Python-list mailing list