Compare source code

Ethan Furman ethan at stoneleaf.us
Fri Nov 5 09:46:56 EDT 2010


Grant Edwards wrote:
> On 2010-11-04, Emile van Sebille <emile at fenx.com> wrote:
>> On 11/3/2010 4:09 PM Seebs said...
>>
>>> What's the token that marks the end of a block, corresponding to the
>>> colon used to introduce it?
>>>
>>
>> My thoughts tend more towards 'can we get Guido to eliminate the colon 
>> requirements' -- The indent level of the next line ought to suffice.
> 
> But without the colon, how are people who write programming editors
> going to know when to increase the indentation level as I enter code?
> 
Hopefully by the keywords used to introduce the block: if, elif, else, 
for, while, with, etc. etc.  It is not legal to start a new indented 
block just by appending a colon to the previous line.

~Ethan~



More information about the Python-list mailing list