Python syntax wart

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Mon Sep 10 03:07:12 EDT 2007


On Mon, 10 Sep 2007 15:02:58 +1200, Lawrence D'Oliveiro wrote:

> In message <5ki2sdF3nr68U1 at mid.individual.net>, Bjoern Schliessmann wrote:
> 
>> Lawrence D'Oliveiro wrote:
>>> But then you can no longer use indentation to display the
>>> two-dimensional structure of the statement.
>> 
>> How can a statement be two-dimensional?
> 
> Like this (from C++ code, but the idea is the same):
> 
>     if
>       (
>             ThisCh >= 'A' and ThisCh <= 'Z'
>         or
>             ThisCh >= '0' and ThisCh <= '9'
>         or
>             ThisCh == '_'
>         or
>             ThisCh == '.'
>       )
>         ...

I still down see the second dimension.  If you say 2D I think of
something like a table with two columns and not a sequential condition
spread over several lines.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list